ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
The Site class is the basis for the implementation of physical interactions. More...
#include <Site.h>
Public Member Functions | |
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) |
virtual void | readXML (XMLfileUnits &xmlconfig) |
Read in XML configuration for a site and all its included objects. More... | |
virtual void | write (std::ostream &ostrm) const |
Protected Member Functions | |
Site (double x=0., double y=0., double z=0., double m=0.) | |
Constructor. More... | |
Protected Attributes | |
std::array< double, 3 > | _r |
double | _m |
The Site class is the basis for the implementation of physical interactions.
A site in ls1-MarDyn is the center of an interaction. Depending on the interaction type there are specialised derived classes of this basic site class. All sites provide as common propery the site position and site mass.
|
inlineprotected |
Constructor.
x | elative x-coordinate |
y | elative y-coordinate |
z | elative z-coordinate |
m | mass |
|
inline |
get mass
|
inline |
get position vector
|
inlinevirtual |
Read in XML configuration for a site and all its included objects.
The following xml object structure is handled by this method:
Reimplemented in LJcenter, Charge, Dipole, and Quadrupole.
|
inline |
get x-coordinate of position vector
|
inline |
get y-coordinate of position vector
|
inline |
get z-coordinate of position vector
|
inline |
set the site mass
|
inline |
set the d-th component of the position
|
inlinevirtual |
Reimplemented in LJcenter, Charge, and OrientedSite.
|
protected |
mass
|
protected |
position coordinates