#include <interaction.hpp>
void FixedForceRegion::add |
( |
AtomID |
a, |
|
|
Vec |
dir, |
|
|
vector< flt > |
bound, |
|
|
vector< flt > |
F |
|
) |
| |
|
inline |
flt FixedForceRegion::energy |
( |
Box & |
box | ) |
|
|
inlinevirtual |
flt FixedForceRegion::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 FixedForceRegion::set_forces |
( |
Box & |
box | ) |
|
|
inlinevirtual |
uint FixedForceRegion::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: