ParM
parm
A molecular dynamics library
|
#include <interaction.hpp>
Public Member Functions | |
Charges (flt screenlength, flt k=1, vector< Charged > atms=vector< Charged >()) | |
void | add (Charged a) |
void | add (AtomID a, flt q) |
void | ignore (AtomID a, AtomID b) |
void | ignore (Atom *a, Atom *b) |
uint | ignore_size () const |
uint | size () const |
flt | energy (Box &box) |
Potential energy due to this Interaction. More... | |
flt | pressure (Box &box) |
Partial pressure due to this Interaction. More... | |
void | set_forces (Box &box) |
Public Member Functions inherited from Interaction | |
virtual flt | set_forces_get_pressure (Box &box) |
Set forces (Atom.f ) and return \(P = \sum_{\left<i,j \right>} \vec r_{ij} \cdot \vec F_{ij}\) at the same time (see pressure() ). More... | |
virtual Matrix | stress (Box &box) |
The force-moment tensor for the current simulation: More... | |
virtual | ~Interaction () |
Protected Member Functions | |
AtomID | get_id (Atom *a) |
Protected Attributes | |
vector< Charged > | atoms |
PairList | ignorepairs |
flt | screen |
flt | k |
|
inline |
Potential energy due to this Interaction.
Implements Interaction.
|
inline |
Partial pressure due to this Interaction.
\(P = \sum_{\left<i,j \right>} \vec r_{ij} \cdot \vec F_{ij}\), or equivalently \(P = \sum_i \vec r_i \cdot \vec F_i\)
Note that the full pressure involves all interactions and temperature, and needs to be normalized by \( \frac{1}{dV} \) where \(d\) is the number of dimensions and \(V\) is the volume.
Implements Interaction.
|
virtual |
Implements Interaction.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |