#include <interaction.hpp>
void FixedSpring::add |
( |
AtomID |
a, |
|
|
Vec |
loc, |
|
|
flt |
k, |
|
|
bool |
usex = true , |
|
|
bool |
usey = true , |
|
|
bool |
usez = true |
|
) |
| |
|
inline |
flt FixedSpring::energy |
( |
Box & |
box | ) |
|
|
inlinevirtual |
flt FixedSpring::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 FixedSpring::set_forces |
( |
Box & |
box | ) |
|
|
inlinevirtual |
uint FixedSpring::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: