ESyS-Particle
4.0.1
|
base class for all walls More...
#include <Wall.h>
Public Types | |
typedef Vec3(CWall::* | VectorFieldFunction )() const |
Public Member Functions | |
CWall () | |
CWall (const Vec3 &, const Vec3 &) | |
void | moveBy (const Vec3 &v) |
void | moveTo (const Vec3 &v) |
void | setNormal (const Vec3 &v) |
void | setVel (const Vec3 &v) |
Vec3 | getVel () |
const Vec3 & | getOrigin () const |
const Vec3 & | getNormal () const |
void | addForce (const Vec3 &force) |
void | zeroForce () |
const Vec3 & | getForce () |
const Vec3 & | getPos () |
Vec3 | getPos () const |
Vec3 | getForce () const |
double | getDisplacement () |
Vec3 | getTotalDisplacement () |
void | resetDisplacement () |
VectorWallFieldSlave< CWall > * | generateVectorFieldSlave (TML_Comm *, const string &) |
int | getFieldSummationFlag (const string &) |
virtual void | writeCheckPoint (ostream &, const string &) const |
virtual void | loadCheckPoint (istream &) |
Static Public Member Functions | |
static VectorFieldFunction | getVectorFieldFunction (const string &) |
Protected Attributes | |
Vec3 | m_origin |
Vec3 | m_normal |
Vec3 | m_force |
Vec3 | m_oldpos |
Vec3 | m_vel |
Friends | |
ostream & | operator<< (ostream &, const CWall &) |
base class for all walls
CWall::CWall | ( | ) |
Default constructor. Zeroes all variables. Does _not_ construct a useable wall (normal=(0,0,0)) !
CWall::CWall | ( | const Vec3 & | o, |
const Vec3 & | n | ||
) |
constructor
o | the orgin/position of the wall |
n | the wall normal |
VectorWallFieldSlave< CWall > * CWall::generateVectorFieldSlave | ( | TML_Comm * | comm, |
const string & | name | ||
) |
generate new vector field slave
comm | |
name |
References AWallFieldSlave::addWall(), and getVectorFieldFunction().
int CWall::getFieldSummationFlag | ( | const string & | fieldname | ) |
Get a flag how the field with a given name is to be treated when received by the master, i.e. summed over all nodes (Force...) or not (Position...)
fieldname | the name of the field |
References BasicCon::Error().
CWall::VectorFieldFunction CWall::getVectorFieldFunction | ( | const string & | name | ) | [static] |
Get the wall member function which returns a vector field of a given name.
name | the name of the field |
References BasicCon::Error().
Referenced by generateVectorFieldSlave().
void CWall::loadCheckPoint | ( | istream & | ist | ) | [virtual] |
load wall data from a restartable checkpoint
ist | the input stream from which the checkpoint is read |
void CWall::writeCheckPoint | ( | ostream & | ost, |
const string & | delim | ||
) | const [virtual] |
write restartable checkpoint data to an output stream
ost | the output stream |
delim |