#include <interaction.hpp>
|
| AngleTriples (vector< AngleGrouping > triples=vector< AngleGrouping >()) |
|
bool | add (AngleGrouping b, bool replace=true) |
| Add a triple of atoms. More...
|
|
bool | add (flt k, flt x0, AtomID a1, AtomID a2, AtomID a3, bool replace=true) |
|
bool | add (flt k, AtomID a1, AtomID a2, AtomID a3, bool replace=true) |
| Add a triple of atoms with the current angle. More...
|
|
void | add_forced (AngleGrouping b) |
|
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) |
|
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...
|
|
uint | size () const |
|
flt | mean_dists () const |
|
flt | std_dists () const |
|
virtual Matrix | stress (Box &box) |
| The force-moment tensor for the current simulation: More...
|
|
virtual | ~Interaction () |
|
Add a triple of atoms.
If "replace", a previous triple found will be replaced by the new triple. If not "replace" and that triple of atoms is already inserted, an error will be thrown.
Add a triple of atoms with the current angle.
static Vec AngleTriples::diff |
( |
Vec |
r1, |
|
|
Vec |
r2 |
|
) |
| |
|
inlinestaticprotected |
flt AngleTriples::energy |
( |
Box & |
box | ) |
|
|
virtual |
flt AngleTriples::mean_dists |
( |
| ) |
const |
flt AngleTriples::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 AngleTriples::set_forces |
( |
Box & |
box | ) |
|
|
virtual |
flt AngleTriples::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 AngleTriples::size |
( |
| ) |
const |
|
inline |
flt AngleTriples::std_dists |
( |
| ) |
const |
The documentation for this class was generated from the following files: