ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
#include <Site.h>
Public Member Functions | |
Charge (double x, double y, double z, double m, double q) | |
Constructor. More... | |
void | readXML (XMLfileUnits &xmlconfig) |
Read in XML configuration for a Charge and all its included objects. More... | |
void | write (std::ostream &ostrm) const |
write to stream More... | |
double | q () const |
void | setQ (double q) |
![]() | |
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 | |
![]() | |
Site (double x=0., double y=0., double z=0., double m=0.) | |
Constructor. More... | |
![]() | |
std::array< double, 3 > | _r |
double | _m |
Charge center.
Electrical charge interaction site. The potential between two charge centers is given by the coulomb interaction
where is the distance between the two coulomb centers,
and
are the charges of the two centers and
is the vacuum permittivity. 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] | q | charge |
|
inline |
get charge
|
inlinevirtual |
|
inline |
set the charge
|
inlinevirtual |
write to stream
Reimplemented from Site.