ESyS-Particle  4.0.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
CWall Class Reference

base class for all walls More...

#include <Wall.h>

Collaboration diagram for CWall:
Collaboration graph
[legend]

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 Vec3getOrigin () const
const Vec3getNormal () const
void addForce (const Vec3 &force)
void zeroForce ()
const Vec3getForce ()
const Vec3getPos ()
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 &)

Detailed Description

base class for all walls

Author
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

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

Parameters
othe orgin/position of the wall
nthe wall normal

Member Function Documentation

VectorWallFieldSlave< CWall > * CWall::generateVectorFieldSlave ( TML_Comm comm,
const string &  name 
)

generate new vector field slave

Parameters
comm
name

References AWallFieldSlave::addWall(), and getVectorFieldFunction().

Here is the call graph for this function:

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...)

Parameters
fieldnamethe name of the field
Returns
1 if the field is to be summed, 0 if not and -1 if the name is invalid

References BasicCon::Error().

Here is the call graph for this function:

CWall::VectorFieldFunction CWall::getVectorFieldFunction ( const string &  name)
static

Get the wall member function which returns a vector field of a given name.

Parameters
namethe name of the field

References BasicCon::Error().

Referenced by generateVectorFieldSlave().

Here is the call graph for this function:

Here is the caller graph for this function:

void CWall::loadCheckPoint ( istream &  ist)
virtual

load wall data from a restartable checkpoint

Parameters
istthe 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

Parameters
ostthe output stream
delim

The documentation for this class was generated from the following files: