MercuryDPM
0.10
|
#include <TangentialSpringParticle.h>
Public Member Functions | |
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... | |
virtual TangentialSpringParticle * | copy () const |
Particle copy method. It calls to copy contrustor of this Particle, usefull for polymorfism. More... | |
void | reverseTangentialSprings () |
CTangentialSprings & | get_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) |
![]() | |
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 |
BaseParticle * | get_HGRID_NextObject () const |
BaseParticle * | get_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 |
BaseParticle * | get_PeriodicFromParticle () const |
const Vec3D & | get_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 Vec3D & | get_Velocity () const |
const Vec3D & | get_Angle () const |
const Vec3D & | get_AngularVelocity () const |
const Vec3D & | get_Force () const |
const Vec3D & | get_Torque () const |
const Vec3D & | get_Displacement () const |
const Vec3D & | get_PreviousPosition () const |
ParticleHandler * | getHandler () 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 | |
CTangentialSprings | tangentialSprings |
Definition at line 34 of file TangentialSpringParticle.h.
TangentialSpringParticle::TangentialSpringParticle | ( | ) |
Basic Particle contructors, creates an Particle at (0,0,0) with radius, mass and inertia equal to 1.
Definition at line 29 of file TangentialSpringParticle.cc.
References CTangentialSprings::reset(), and tangentialSprings.
Referenced by copy().
TangentialSpringParticle::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.
Definition at line 34 of file TangentialSpringParticle.cc.
References tangentialSprings.
|
virtual |
Particle destructor, needs to be implemented and checked if it removes tangential spring information.
Definition at line 40 of file TangentialSpringParticle.cc.
|
virtual |
Particle copy method. It calls to copy contrustor of this Particle, usefull for polymorfism.
Reimplemented from BaseParticle.
Reimplemented in DeltaMaxsParticle.
Definition at line 45 of file TangentialSpringParticle.cc.
References TangentialSpringParticle().
CTangentialSprings & TangentialSpringParticle::get_TangentialSprings | ( | ) |
Definition at line 59 of file TangentialSpringParticle.cc.
References tangentialSprings.
Referenced by MD::computeShortRangeForceWithParticle(), MD::computeShortRangeForceWithWall(), AngledPeriodicBoundary::createPeriodicParticles(), MD::getTangentialSpring(), MD::getTangentialSpringWall(), moveInHandler(), and MD::reset_TangentialSprings().
|
virtual |
Reimplemented from BaseParticle.
Definition at line 76 of file TangentialSpringParticle.cc.
References get_TangentialSprings(), BaseParticle::getHandler(), BaseHandler< T >::getObject(), BaseParticle::moveInHandler(), CTangentialSpring::pParticle, and CTangentialSpring::reverse().
void TangentialSpringParticle::oldRead | ( | std::istream & | is, |
std::string & | x | ||
) |
Definition at line 104 of file TangentialSpringParticle.cc.
References BaseParticle::angle, BaseParticle::angularVelocity, BaseParticle::invInertia, BaseParticle::invMass, BaseParticle::position, BaseParticle::radius, BaseParticle::set_Angle(), BaseParticle::set_AngularVelocity(), BaseParticle::set_inertia(), BaseParticle::set_Mass(), BaseParticle::set_Position(), BaseParticle::set_Radius(), BaseParticle::set_Velocity(), tangentialSprings, BaseParticle::velocity, Vec3D::X, Vec3D::Y, and Vec3D::Z.
Referenced by ParticleHandler::readObject().
|
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 61 of file TangentialSpringParticle.cc.
References BaseParticle::print(), and tangentialSprings.
Referenced by DeltaMaxsParticle::print().
|
virtual |
Particle read function, which accepts an os std::stringstream as input.
Reimplemented from BaseParticle.
Definition at line 68 of file TangentialSpringParticle.cc.
References BaseParticle::read(), and tangentialSprings.
Referenced by DeltaMaxsParticle::read().
void TangentialSpringParticle::reverseTangentialSprings | ( | ) |
Definition at line 51 of file TangentialSpringParticle.cc.
References tangentialSprings.
Referenced by PeriodicBoundary::createPeriodicParticles(), and AngledPeriodicBoundary::createPeriodicParticles().
|
private |
Definition at line 62 of file TangentialSpringParticle.h.
Referenced by get_TangentialSprings(), oldRead(), print(), read(), reverseTangentialSprings(), and TangentialSpringParticle().