21.06.2015 Views

this user's guide - Lammps

this user's guide - Lammps

this user's guide - Lammps

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SPH-USER Documentation Implementation of SPH in LAMMPS 12<br />

4.7. Accessing SPH variables for initialisation and output<br />

4.7.1. Initialisation<br />

Internal energy E, heat capacity C V , and local density ρ can be set using the following commands:<br />

• set style ID meso_e d<br />

• set style ID meso_cv d<br />

• set style ID meso_rho d<br />

style, ID are documented in the LAMMPS users’ <strong>guide</strong>. d is the value of E, C V , or ρ respectively.<br />

Alternatively, these variables can be read from a LAMMPS data file. The required line<br />

format for atom_style meso in the Atoms section of the data file is:<br />

atomID atom-type ρ E C V<br />

x y z<br />

If used in conjunction with atom_style hybrid, the required information is ρ E C V .<br />

4.7.2. Output<br />

The per-particle SPH variables internal energy E, local density ρ, and local temperature<br />

T = E/C V can be accessed using the following compute commands:<br />

• compute compute_ID group_ID meso_e/atom<br />

• compute compute_ID group_ID meso_rho/atom<br />

• compute compute_ID group_ID meso_t/atom<br />

These computes return a vector of length N, with N being the number of particles present in<br />

the system. These vectors can then be output via the usual LAMMPS mechanisms, e.g. via the<br />

dump custom command.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!