|
ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
Lennard-Jones 12-6 center. More...
#include <Site.h>
Public Member Functions | |
| LJcenter () | |
| Constructor. | |
| LJcenter (double x, double y, double z, double m, double epsilon, double sigma, double shift) | |
| Constructor. More... | |
| void | readXML (XMLfileUnits &xmlconfig) |
| Read in XML configuration for a LJcenter and all its included objects. More... | |
| void | write (std::ostream &ostrm) const |
| write to stream More... | |
| double | eps () const |
| double | sigma () const |
| double | shift6 () const |
| void | setEps (double epsilon) |
| void | setSigma (double sigma) |
| void | setULJShift6 (double uLJshift6) |
Public Member Functions inherited from Site | |
| double | rx () const |
| double | ry () const |
| double | rz () const |
| std::array< double, 3 > | r () const |
| double | m () const |
| void | setR (int d, double r) |
| void | setM (double m) |
Additional Inherited Members | |
Protected Member Functions inherited from Site | |
| Site (double x=0., double y=0., double z=0., double m=0.) | |
| Constructor. More... | |
Protected Attributes inherited from Site | |
| std::array< double, 3 > | _r |
| double | _m |
Lennard-Jones 12-6 center.
Lennard-Jones 12-6 interaction site. The potential between two LJ centers of the same type is given by
where
is the distance between the two LJ centers. See potforce.h for the detailed implementation.
|
inline |
Constructor.
| [in] | x | relative x coordinate |
| [in] | y | relative y coordinate |
| [in] | z | relative z coordinate |
| [in] | m | mass |
| [in] | epsilon | interaction strength |
| [in] | sigma | interaction diameter |
| [in] | shift | 0. for full LJ potential |
|
inline |
get interaction strength
|
inlinevirtual |
|
inline |
set the interaction strength
|
inline |
set the interaction diameter
|
inline |
set the energy shift of the interaction potential
|
inline |
get energy shift of interaction potential
|
inline |
get interaction diameter
|
inlinevirtual |
write to stream
Reimplemented from Site.