Initialize the atom configuration. More...
#include "mytype.h"

Go to the source code of this file.
Data Structures | |
| struct | AtomsSt |
| Atom data. More... | |
Typedefs | |
| typedef struct AtomsSt | Atoms |
| Atom data. More... | |
Functions | |
| Atoms * | initAtoms (struct LinkCellSt *boxes) |
| Allocates memory to store atom data. More... | |
| void | destroyAtoms (struct AtomsSt *atoms) |
| void | createFccLattice (int nx, int ny, int nz, real_t lat, struct SimFlatSt *s) |
| Creates atom positions on a face centered cubic (FCC) lattice with nx * ny * nz unit cells and lattice constant lat. More... | |
| void | setVcm (struct SimFlatSt *s, real_t vcm[3]) |
| Sets the center of mass velocity of the system. More... | |
| void | setTemperature (struct SimFlatSt *s, real_t temperature) |
| Sets the temperature of system. More... | |
| void | randomDisplacements (struct SimFlatSt *s, real_t delta) |
| Add a random displacement to the atom positions. More... | |
Initialize the atom configuration.
Definition in file initAtoms.h.
Creates atom positions on a face centered cubic (FCC) lattice with nx * ny * nz unit cells and lattice constant lat.
Set momenta to zero.
Definition at line 64 of file initAtoms.c.


| void destroyAtoms | ( | struct AtomsSt * | atoms | ) |
Allocates memory to store atom data.
Call functions such as createFccLattice and setTemperature to set up initial atom positions and momenta.
Definition at line 23 of file initAtoms.c.


Add a random displacement to the atom positions.
Atoms are displaced by a random distance in the range [-delta, +delta] along each axis.
| [in] | delta | The maximum displacement (along each axis). |
Definition at line 187 of file initAtoms.c.


Sets the temperature of system.
Selects atom velocities randomly from a boltzmann (equilibrium) distribution that corresponds to the specified temperature. This random process will typically result in a small, but non zero center of mass velocity and a small difference from the specified temperature. For typical MD runs these small differences are unimportant, However, to avoid possible confusion, we set the center of mass velocity to zero and scale the velocities to exactly match the input temperature.
Definition at line 145 of file initAtoms.c.


Sets the center of mass velocity of the system.
| [in] | newVcm | The desired center of mass velocity. |
Definition at line 111 of file initAtoms.c.

