ParM  parm
A molecular dynamics library
Public Member Functions | Protected Attributes | List of all members
SoftWallCylinder Class Reference

#include <interaction.hpp>

Inheritance diagram for SoftWallCylinder:
Interaction

Public Member Functions

 SoftWallCylinder (Vec loc, Vec axis, flt radius, flt expt=2.0)
 
void add (WallAtom a)
 
flt energy (Box &box)
 Potential energy 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...
 
flt pressure (Box &box)
 Partial pressure due to this Interaction. More...
 
void set_location (Vec new_loc)
 
Vec get_location ()
 
void set_axis (Vec new_axis)
 
Vec get_axis ()
 
flt get_last_f ()
 
- Public Member Functions inherited from Interaction
virtual Matrix stress (Box &box)
 The force-moment tensor for the current simulation: More...
 
virtual ~Interaction ()
 

Protected Attributes

Vec loc
 
Vec axis
 
flt radius
 
flt expt
 
flt lastf
 
vector< WallAtomgroup
 

Constructor & Destructor Documentation

SoftWallCylinder::SoftWallCylinder ( Vec  loc,
Vec  axis,
flt  radius,
flt  expt = 2.0 
)
inline

Member Function Documentation

void SoftWallCylinder::add ( WallAtom  a)
inline
flt SoftWallCylinder::energy ( Box box)
virtual

Potential energy due to this Interaction.

Implements Interaction.

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

Implements Interaction.

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

Member Data Documentation

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: