MercuryDPM  0.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaseWall Class Referenceabstract

#include <BaseWall.h>

+ Inheritance diagram for BaseWall:

Public Member Functions

 BaseWall ()
 
 BaseWall (const BaseWall &p)
 
virtual ~BaseWall ()
 
virtual BaseWallcopy () const =0
 
virtual void clear ()
 
virtual void move (Mdouble position_ UNUSED)
 Allows the wall to be moved to a new position. More...
 
virtual void move (Vec3D velocity_ UNUSED, Mdouble dt UNUSED)
 Allows the wall to be moved to a new position (also orthogonal to the normal), and setting the velocity. More...
 
virtual void move_time (Mdouble dt UNUSED)
 Allows the wall to be moved to a new position (also orthogonal to the normal), and setting the velocity. More...
 
virtual bool get_distance_and_normal (BaseParticle &P UNUSED, Mdouble &distance UNUSED, Vec3D &normal_return UNUSED)=0
 
void set_Velocity (Vec3D new_)
 access function for velocity More...
 
virtual Vec3D get_Velocity () const =0
 
virtual void read (std::istream &is UNUSED)=0
 
virtual void print (std::ostream &os UNUSED) const =0
 
virtual void moveInHandler (int newPos)
 
int getIndSpecies () const
 
void setIndSpecies (const int _new)
 
const Vec3Dget_Force () const
 
const Vec3Dget_Torque () const
 
void set_Force (Vec3D _new)
 
void set_Torque (Vec3D _new)
 
void set_Index (int index)
 
void set_Id (int id)
 
void add_Force (Vec3D _new)
 
void add_Torque (Vec3D _new)
 

Public Attributes

int indSpecies
 

Protected Attributes

Vec3D velocity
 velocity of the wall (used to calculate the relative velocity in the force calculation) More...
 

Private Attributes

Vec3D force
 
Vec3D torque
 
WallHandler_handler
 
int _index
 
int _id
 

Friends

std::ostream & operator<< (std::ostream &os, BaseWall &w)
 
std::istream & operator>> (std::istream &is, BaseWall &w)
 

Detailed Description

Definition at line 32 of file BaseWall.h.

Constructor & Destructor Documentation

BaseWall::BaseWall ( )
inline

Definition at line 38 of file BaseWall.h.

References _handler, _id, _index, force, indSpecies, Vec3D::set_zero(), torque, and velocity.

39  {
41  force.set_zero();
42  torque.set_zero();
43  indSpecies=0;
44  _handler=0;
45  _index=0;
46  _id=0;
47 
48  #ifdef CONSTUCTOR_OUTPUT
49  std::cout<<"BaseWall() finished"<<std::endl;
50  #endif
51  }
int _index
Definition: BaseWall.h:119
Vec3D velocity
velocity of the wall (used to calculate the relative velocity in the force calculation) ...
Definition: BaseWall.h:114
int _id
Definition: BaseWall.h:120
void set_zero()
Definition: Vector.h:55
int indSpecies
Definition: BaseWall.h:36
Vec3D torque
Definition: BaseWall.h:117
Vec3D force
Definition: BaseWall.h:116
WallHandler * _handler
Definition: BaseWall.h:118
BaseWall::BaseWall ( const BaseWall p)
inline

Definition at line 53 of file BaseWall.h.

References _handler, _id, _index, force, indSpecies, torque, and velocity.

54  {
56  force=p.force;
57  torque=p.torque;
60  _index=p._index;
61  _id=p._id;
62 
63  #ifdef CONSTUCTOR_OUTPUT
64  std::cout<<"BaseWall(const BaseWall &p) finished"<<std::endl;
65  #endif
66  }
int _index
Definition: BaseWall.h:119
Vec3D velocity
velocity of the wall (used to calculate the relative velocity in the force calculation) ...
Definition: BaseWall.h:114
int _id
Definition: BaseWall.h:120
int indSpecies
Definition: BaseWall.h:36
Vec3D torque
Definition: BaseWall.h:117
Vec3D force
Definition: BaseWall.h:116
WallHandler * _handler
Definition: BaseWall.h:118
virtual BaseWall::~BaseWall ( )
inlinevirtual

Definition at line 68 of file BaseWall.h.

68 {};

Member Function Documentation

void BaseWall::add_Force ( Vec3D  _new)
inline

Definition at line 110 of file BaseWall.h.

References force.

Referenced by MD::compute_walls().

110 {force+=_new;}
Vec3D force
Definition: BaseWall.h:116
void BaseWall::add_Torque ( Vec3D  _new)
inline

Definition at line 111 of file BaseWall.h.

References torque.

Referenced by MD::compute_walls().

111 {torque+=_new;}
Vec3D torque
Definition: BaseWall.h:117
virtual void BaseWall::clear ( )
inlinevirtual

Reimplemented in InfiniteWallWithHole, InfiniteWall, CylindricalWall, and FiniteWall.

Definition at line 72 of file BaseWall.h.

72 {std::cout<<"BaseWall::clear(), this function shouldn't be called"<<std::endl;}
virtual BaseWall* BaseWall::copy ( ) const
pure virtual
virtual bool BaseWall::get_distance_and_normal ( BaseParticle &P  UNUSED,
Mdouble &distance  UNUSED,
Vec3D &normal_return  UNUSED 
)
pure virtual

Referenced by MD::compute_walls().

const Vec3D& BaseWall::get_Force ( ) const
inline

Definition at line 104 of file BaseWall.h.

References force.

104 {return force;}
Vec3D force
Definition: BaseWall.h:116
const Vec3D& BaseWall::get_Torque ( ) const
inline

Definition at line 105 of file BaseWall.h.

References torque.

105 {return torque;}
Vec3D torque
Definition: BaseWall.h:117
virtual Vec3D BaseWall::get_Velocity ( ) const
pure virtual
int BaseWall::getIndSpecies ( ) const
inline

Definition at line 100 of file BaseWall.h.

References indSpecies.

100 {return indSpecies;}
int indSpecies
Definition: BaseWall.h:36
virtual void BaseWall::move ( Mdouble position_  UNUSED)
inlinevirtual

Allows the wall to be moved to a new position.

Reimplemented in InfiniteWallWithHole, and InfiniteWall.

Definition at line 75 of file BaseWall.h.

75 {std::cout<<"BaseWall:move(Mdouble position_ UNUSED), this function shouldn't be called"<<std::endl;}
virtual void BaseWall::move ( Vec3D velocity_  UNUSED,
Mdouble dt  UNUSED 
)
inlinevirtual

Allows the wall to be moved to a new position (also orthogonal to the normal), and setting the velocity.

Reimplemented in InfiniteWallWithHole, and InfiniteWall.

Definition at line 78 of file BaseWall.h.

78 {std::cout<<"BaseWall::move(Vec3D velocity_, Mdouble dt UNUSED), this function shouldn't be called"<<std::endl;}
virtual void BaseWall::move_time ( Mdouble dt  UNUSED)
inlinevirtual

Allows the wall to be moved to a new position (also orthogonal to the normal), and setting the velocity.

Reimplemented in Screw, Coil, InfiniteWallWithHole, and InfiniteWall.

Definition at line 81 of file BaseWall.h.

81 {std::cout<<"BaseWall::move_time(Mdouble dt UNUSED), this function shouldn't be called"<<std::endl;}
virtual void BaseWall::moveInHandler ( int  newPos)
inlinevirtual

Definition at line 98 of file BaseWall.h.

References _index.

98 {_index=newPos;}
int _index
Definition: BaseWall.h:119
virtual void BaseWall::print ( std::ostream &os  UNUSED) const
pure virtual

Referenced by operator<<(), and MD::print().

virtual void BaseWall::read ( std::istream &is  UNUSED)
pure virtual

Referenced by operator>>().

void BaseWall::set_Force ( Vec3D  _new)
inline

Definition at line 106 of file BaseWall.h.

References force.

106 {force=_new;}
Vec3D force
Definition: BaseWall.h:116
void BaseWall::set_Id ( int  id)
inline

Definition at line 109 of file BaseWall.h.

References _id.

109 {_id=id;}
int _id
Definition: BaseWall.h:120
void BaseWall::set_Index ( int  index)
inline

Definition at line 108 of file BaseWall.h.

References _index.

108 {_index=index;}
int _index
Definition: BaseWall.h:119
void BaseWall::set_Torque ( Vec3D  _new)
inline

Definition at line 107 of file BaseWall.h.

References torque.

107 {torque=_new;}
Vec3D torque
Definition: BaseWall.h:117
void BaseWall::set_Velocity ( Vec3D  new_)
inline

access function for velocity

Definition at line 86 of file BaseWall.h.

References velocity.

86 {velocity=new_;}
Vec3D velocity
velocity of the wall (used to calculate the relative velocity in the force calculation) ...
Definition: BaseWall.h:114
void BaseWall::setIndSpecies ( const int  _new)
inline

Definition at line 102 of file BaseWall.h.

References indSpecies.

102 {indSpecies=_new;}
int indSpecies
Definition: BaseWall.h:36

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
BaseWall w 
)
friend

Definition at line 124 of file BaseWall.h.

125 {
126  w.print(os);
127  return os;
128 }
virtual void print(std::ostream &os UNUSED) const =0
std::istream& operator>> ( std::istream &  is,
BaseWall w 
)
friend

Definition at line 130 of file BaseWall.h.

131 {
132  w.read(is);
133  return(is);
134 }
virtual void read(std::istream &is UNUSED)=0

Member Data Documentation

WallHandler* BaseWall::_handler
private

Definition at line 118 of file BaseWall.h.

Referenced by BaseWall().

int BaseWall::_id
private

Definition at line 120 of file BaseWall.h.

Referenced by BaseWall(), and set_Id().

int BaseWall::_index
private

Definition at line 119 of file BaseWall.h.

Referenced by BaseWall(), moveInHandler(), and set_Index().

Vec3D BaseWall::force
private

Definition at line 116 of file BaseWall.h.

Referenced by add_Force(), BaseWall(), get_Force(), and set_Force().

Vec3D BaseWall::torque
private

Definition at line 117 of file BaseWall.h.

Referenced by add_Torque(), BaseWall(), get_Torque(), and set_Torque().


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