#include <interaction.hpp>
SoftWallCylinder::SoftWallCylinder |
( |
Vec |
loc, |
|
|
Vec |
axis, |
|
|
flt |
radius, |
|
|
flt |
expt = 2.0 |
|
) |
| |
|
inline |
void SoftWallCylinder::add |
( |
WallAtom |
a | ) |
|
|
inline |
flt SoftWallCylinder::energy |
( |
Box & |
box | ) |
|
|
virtual |
Vec SoftWallCylinder::get_axis |
( |
| ) |
|
|
inline |
flt SoftWallCylinder::get_last_f |
( |
| ) |
|
|
inline |
Vec SoftWallCylinder::get_location |
( |
| ) |
|
|
inline |
flt SoftWallCylinder::pressure |
( |
Box & |
box | ) |
|
|
virtual |
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 SoftWallCylinder::set_axis |
( |
Vec |
new_axis | ) |
|
|
inline |
void SoftWallCylinder::set_forces |
( |
Box & |
box | ) |
|
|
virtual |
flt SoftWallCylinder::set_forces_get_pressure |
( |
Box & |
box | ) |
|
|
virtual |
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.
void SoftWallCylinder::set_location |
( |
Vec |
new_loc | ) |
|
|
inline |
Vec SoftWallCylinder::axis |
|
protected |
flt SoftWallCylinder::expt |
|
protected |
vector<WallAtom> SoftWallCylinder::group |
|
protected |
flt SoftWallCylinder::lastf |
|
protected |
Vec SoftWallCylinder::loc |
|
protected |
flt SoftWallCylinder::radius |
|
protected |
The documentation for this class was generated from the following files: