#include <interaction.hpp>
| SoftWall::SoftWall |
( |
Vec |
loc, |
|
|
Vec |
norm, |
|
|
flt |
expt = 2.0 |
|
) |
| |
|
inline |
| flt SoftWall::energy |
( |
Box & |
box | ) |
|
|
virtual |
| flt SoftWall::get_last_f |
( |
| ) |
|
|
inline |
| Vec SoftWall::get_location |
( |
| ) |
|
|
inline |
| Vec SoftWall::get_normal |
( |
| ) |
|
|
inline |
| flt SoftWall::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 SoftWall::set_forces |
( |
Box & |
box | ) |
|
|
virtual |
| flt SoftWall::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 SoftWall::set_location |
( |
Vec |
newloc | ) |
|
|
inline |
| void SoftWall::set_normal |
( |
Vec |
newNorm | ) |
|
|
inline |
The documentation for this class was generated from the following files: