#include <interaction.hpp>
RandomForce::RandomForce |
( |
| ) |
|
|
inline |
If "replace", a previous pair found will be replaced by the new pair.
If not "replace" and that pair of atoms is already inserted, an error will be thrown.
flt RandomForce::energy |
( |
Box & |
box | ) |
|
|
inlinevirtual |
flt RandomForce::pressure |
( |
Box & |
box | ) |
|
|
inlinevirtual |
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.
void RandomForce::set_forces |
( |
Box & |
box | ) |
|
|
virtual |
flt RandomForce::set_forces_get_pressure |
( |
Box & |
box | ) |
|
|
inlinevirtual |
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()
).
Reimplemented from Interaction.
uint RandomForce::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: