MercuryDPM  0.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeltaMaxsParticle Class Reference

#include <DeltaMaxsParticle.h>

+ Inheritance diagram for DeltaMaxsParticle:

Public Member Functions

 DeltaMaxsParticle ()
 Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1. More...
 
 DeltaMaxsParticle (const DeltaMaxsParticle &p)
 Particle copy contstructor, which accepts as input a reference to a Particle. It creates a copy of this Particle and all it's information. Usually it is better to use the copy() function for polymorfism. More...
 
 DeltaMaxsParticle (const TangentialSpringParticle &p)
 
virtual ~DeltaMaxsParticle ()
 Particle destructor, needs to be implemented and checked if it removes tangential spring information. More...
 
virtual DeltaMaxsParticlecopy () const
 Particle copy method. It calls to copy contrustor of this Particle, usefull for polymorfism. More...
 
void print (std::ostream &os) const
 Particle print function, which accepts an os std::stringstream as input. More...
 
void read (std::istream &is)
 Particle read function, which accepts an os std::stringstream as input. More...
 
CDeltaMaxsget_DeltaMaxs ()
 
- Public Member Functions inherited from TangentialSpringParticle
 TangentialSpringParticle ()
 Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1. More...
 
 TangentialSpringParticle (const TangentialSpringParticle &p)
 Particle copy contstructor, which accepts as input a reference to a Particle. It creates a copy of this Particle and all it's information. Usually it is better to use the copy() function for polymorfism. More...
 
virtual ~TangentialSpringParticle ()
 Particle destructor, needs to be implemented and checked if it removes tangential spring information. More...
 
void reverseTangentialSprings ()
 
CTangentialSpringsget_TangentialSprings ()
 
void print (std::ostream &os) const
 Particle print function, which accepts an os std::stringstream as input. More...
 
void read (std::istream &is)
 Particle read function, which accepts an os std::stringstream as input. More...
 
void moveInHandler (int newPos)
 
void oldRead (std::istream &is, std::string &x)
 
- Public Member Functions inherited from BaseParticle
 BaseParticle ()
 Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1. More...
 
 BaseParticle (const BaseParticle &p)
 Particle copy contstructor, which accepts as input a reference to a Particle. It creates a copy of this Particle and all it's information. Usually it is better to use the copy() function for polymorfism. More...
 
virtual ~BaseParticle ()
 Particle destructor, needs to be implemented and checked if it removes tangential spring information. More...
 
Mdouble get_Volume (std::vector< CSpecies > &Species) const
 Get Particle volume function, which required a reference to the Species vector. It returns the volume of the Particle. More...
 
void fixParticle ()
 Fix Particle function. It fixes a Particle by setting its inverse mass and inertia and velocities to zero. More...
 
bool isFixed ()
 Is fixed Particle function. It returns wether a Particle is fixed or not, by cheking its inverse Mass. More...
 
void unfix (std::vector< CSpecies > &Species)
 Unfix Particle function, which required a reference to the Species vector. It un fixes a Particle by compyting the Particles mass and inertia. More...
 
void compute_particle_mass (std::vector< CSpecies > &Species)
 Compute Particle mass function, which required a reference to the Species vector. It copmuters the Particles mass, Inertia and the inverses. More...
 
void print_HGRID (std::ostream &os)
 
int get_HGRID_Level () const
 
BaseParticleget_HGRID_NextObject () const
 
BaseParticleget_HGRID_PrevObject () const
 
int get_HGRID_x () const
 
int get_HGRID_y () const
 
int get_HGRID_z () const
 
int get_Index () const
 
Mdouble get_Inertia () const
 
Mdouble get_InvInertia () const
 
Mdouble get_InvMass () const
 
Mdouble get_KineticEnergy () const
 
Mdouble get_Mass () const
 
BaseParticleget_PeriodicFromParticle () const
 
const Vec3Dget_Position () const
 
Mdouble get_Radius () const
 
Mdouble get_InteractionRadius () const
 
Mdouble get_WallInteractionRadius () const
 
int get_Species () const
 
int get_IndSpecies () const
 
int get_Id () const
 
const Vec3Dget_Velocity () const
 
const Vec3Dget_Angle () const
 
const Vec3Dget_AngularVelocity () const
 
const Vec3Dget_Force () const
 
const Vec3Dget_Torque () const
 
const Vec3Dget_Displacement () const
 
const Vec3Dget_PreviousPosition () const
 
ParticleHandlergetHandler () const
 
const Vec3D get_Displacement2 (Mdouble xmin, Mdouble xmax, Mdouble ymin, Mdouble ymax, Mdouble zmin, Mdouble zmax, Mdouble t) const
 
void set_inertia (const Mdouble _new)
 
void set_infiniteInertia ()
 
void set_periodicFromParticle (BaseParticle *_new)
 
void set_species (const int _new)
 
void set_Index (const int _new)
 
void set_HGRID_x (const int _new)
 
void set_HGRID_y (const int _new)
 
void set_HGRID_z (const int _new)
 
void set_HGRID_Level (const int _new)
 
void set_HGRID_NextObject (BaseParticle *_new)
 
void set_HGRID_PrevObject (BaseParticle *_new)
 
void set_Radius (const Mdouble _new)
 
void set_IndSpecies (const int _new)
 
void set_Id (const int _new)
 
void set_Mass (const Mdouble _new)
 
void set_Velocity (const Vec3D &_new)
 
void set_Position (const Vec3D &_new)
 
void set_Displacement (const Vec3D &_new)
 
void set_PreviousPosition (const Vec3D &_new)
 
void set_Angle (const Vec3D &_new)
 
void set_AngularVelocity (const Vec3D &_new)
 
void set_Force (const Vec3D &_new)
 
void set_Torque (const Vec3D &_new)
 
void setHandler (ParticleHandler *handler)
 
void move (const Vec3D &_new)
 
void movePrevious (const Vec3D &_new)
 
void accelerate (const Vec3D &_new)
 
void rotate (const Vec3D &_new)
 
void angularAccelerate (const Vec3D &_new)
 
void add_Displacement (const Vec3D &_new)
 
void add_Force (const Vec3D &_new)
 
void add_Torque (const Vec3D &_new)
 

Private Attributes

CDeltaMaxs deltaMaxs
 

Detailed Description

Definition at line 32 of file DeltaMaxsParticle.h.

Constructor & Destructor Documentation

DeltaMaxsParticle::DeltaMaxsParticle ( )

Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1.

Definition at line 28 of file DeltaMaxsParticle.cc.

References deltaMaxs, and CDeltaMaxs::reset().

Referenced by copy().

29 {
30  deltaMaxs.reset();
31 }
TangentialSpringParticle()
Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1...
void reset()
Resets the tangential springs.
Definition: CDeltaMax.h:152
DeltaMaxsParticle::DeltaMaxsParticle ( const DeltaMaxsParticle p)

Particle copy contstructor, which accepts as input a reference to a Particle. It creates a copy of this Particle and all it's information. Usually it is better to use the copy() function for polymorfism.

Definition at line 33 of file DeltaMaxsParticle.cc.

References deltaMaxs.

34 {
35  deltaMaxs = p.deltaMaxs;
36 }
TangentialSpringParticle()
Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1...
DeltaMaxsParticle::DeltaMaxsParticle ( const TangentialSpringParticle p)

Definition at line 38 of file DeltaMaxsParticle.cc.

References deltaMaxs, and CDeltaMaxs::reset().

39 {
40  deltaMaxs.reset();
41 }
TangentialSpringParticle()
Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1...
void reset()
Resets the tangential springs.
Definition: CDeltaMax.h:152
DeltaMaxsParticle::~DeltaMaxsParticle ( )
virtual

Particle destructor, needs to be implemented and checked if it removes tangential spring information.

Definition at line 43 of file DeltaMaxsParticle.cc.

44 {
45 }

Member Function Documentation

DeltaMaxsParticle * DeltaMaxsParticle::copy ( ) const
virtual

Particle copy method. It calls to copy contrustor of this Particle, usefull for polymorfism.

Reimplemented from TangentialSpringParticle.

Definition at line 48 of file DeltaMaxsParticle.cc.

References DeltaMaxsParticle().

49 {
50  return new DeltaMaxsParticle(*this);
51 }
DeltaMaxsParticle()
Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1...
CDeltaMaxs & DeltaMaxsParticle::get_DeltaMaxs ( )

Definition at line 53 of file DeltaMaxsParticle.cc.

References deltaMaxs.

Referenced by MD::compute_plastic_internal_forces(), and MD::reset_DeltaMax().

53 {return deltaMaxs;}
void DeltaMaxsParticle::print ( std::ostream &  os) const
virtual

Particle print function, which accepts an os std::stringstream as input.

BaseParticle print function, which accepts an os std::stringstream as input. It prints human readable BaseParticle information to the std::stringstream.

Reimplemented from BaseParticle.

Definition at line 55 of file DeltaMaxsParticle.cc.

References deltaMaxs, and TangentialSpringParticle::print().

56 {
57  os<<"DMP ";
59  os<<" "<<deltaMaxs;
60 }
void print(std::ostream &os) const
Particle print function, which accepts an os std::stringstream as input.
void DeltaMaxsParticle::read ( std::istream &  is)
virtual

Particle read function, which accepts an os std::stringstream as input.

Reimplemented from BaseParticle.

Definition at line 62 of file DeltaMaxsParticle.cc.

References deltaMaxs, and TangentialSpringParticle::read().

63 {
64  std::string dummy;
65  is >> dummy;
67  is >> deltaMaxs;
68 }
void read(std::istream &is)
Particle read function, which accepts an os std::stringstream as input.

Member Data Documentation

CDeltaMaxs DeltaMaxsParticle::deltaMaxs
private

Definition at line 56 of file DeltaMaxsParticle.h.

Referenced by DeltaMaxsParticle(), get_DeltaMaxs(), print(), and read().


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