ESyS-Particle  2.3.4
esys::lsm::RotParticleViPy Class Reference

#include <RotParticleViPy.h>

Inheritance diagram for esys::lsm::RotParticleViPy:
Collaboration diagram for esys::lsm::RotParticleViPy:

Classes

class  PickleSuite
 

Public Member Functions

 RotParticleViPy ()
 
 RotParticleViPy (const RotParticleViPy &p)
 
 RotParticleViPy (const CRotParticleVi &p)
 
 RotParticleViPy (int id, const Vec3Py &posn, double radius, double mass)
 
Vec3Py getPosn () const
 
void setPosn (const Vec3Py &posn)
 
Vec3Py getInitialPosn () const
 
Vec3Py getLinearVelocity () const
 
Vec3Py getVelocity () const
 
void setLinearVelocity (const Vec3Py &vel)
 
Vec3Py getLinearForce () const
 
void setLinearForce (const Vec3Py &force)
 
Vec3Py getLinearAcceleration () const
 
Vec3Py getAcceleration () const
 
void setLinearAcceleration (const Vec3Py &accel)
 
Vec3Py getAngularVelocity () const
 
void setAngularVelocity (const Vec3Py &vel)
 
Vec3Py getAngularVelocityT () const
 
void setAngularVelocityT (const Vec3Py &vel)
 
Vec3Py getAngularForce () const
 
void setAngularForce (const Vec3Py &force)
 
Vec3Py getAngularAcceleration () const
 
void setAngularAcceleration (const Vec3Py &accel)
 
QuaternionPy getOrientation () const
 
void setOrientation (const QuaternionPy &quat)
 
- Public Member Functions inherited from CRotParticleVi
 CRotParticleVi ()
 
 CRotParticleVi (const esys::lsm::SimpleParticleData &particleData)
 
 CRotParticleVi (double rad, double mass, const Vec3 &pos, const Vec3 &vel, const Vec3 &force, int id, bool is_dyn)
 
 CRotParticleVi (double rad, double mass, const Vec3 &pos, const Vec3 &vel, const Vec3 &force, int id, Quaternion &quat, double inertRot, const Vec3 &moment, const Vec3 &angvel, const Vec3 &angvel_t)
 
 CRotParticleVi (double rad, double mass, const Vec3 &pos, const Vec3 &oldpos, const Vec3 &initpos, const Vec3 &vel, const Vec3 &force, int id, const Quaternion &quat, const Quaternion &initquat, double inertRot, const Vec3 &moment, const Vec3 &angvel, const Vec3 &angvel_t)
 
 CRotParticleVi (const CParticle &p)
 
virtual ~CRotParticleVi ()
 
Vec3 getDisplacement () const
 
void resetDisplacement ()
 
const Vec3getAngVel () const
 
const Vec3 getAngVel_t () const
 
void setAngVel_t (const Vec3 &v)
 
Vec3 getAngVelNR () const
 
void setAngVel (const Vec3 &V)
 
Quaternion getInitQuat () const
 
Quaternion getQuat () const
 
void setQuat (const Quaternion &q)
 
double getInertRot () const
 
void setInertRot (double inertRot)
 
double getInvInertRot () const
 
Vec3 getMoment () const
 
void setMoment (const Vec3 &moment)
 
Vec3 getAngVector () const
 
void applyMoment (const Vec3 &)
 
void integrate (double)
 
void zeroForce ()
 
virtual void zeroHeat ()
 
virtual void integrateTherm (double)
 
virtual void setTemperature (double)
 
virtual void setCp (double)
 
virtual void setThermExpansion0 (double)
 
virtual void setThermExpansion1 (double)
 
virtual void setThermExpansion2 (double)
 
virtual void thermExpansion ()
 
virtual double get_y ()
 
void rescale ()
 
void setCircular (const Vec3 &cv)
 
double getAngularKineticEnergy () const
 
double getLinearKineticEnergy () const
 
double getKineticEnergy () const
 
void writeAsDXLine (ostream &, int slid=0)
 
virtual void setNonRot ()
 
Quaternion getQuatFromRotVec (const Vec3 &vec) const
 
void rotateBy (const Vec3 &vec)
 
void rotateTo (const Vec3 &vec)
 
void print ()
 
virtual void saveSnapShotData (std::ostream &oStream)
 
virtual void saveCheckPointData (std::ostream &oStream)
 
virtual void loadCheckPointData (std::istream &iStream)
 
CRotParticleVi::exchangeType getExchangeValues ()
 
void setExchangeValues (const CRotParticleVi::exchangeType &e)
 
double sigma_xx_2D () const
 
double sigma_xy_2D () const
 
double sigma_yy_2D () const
 
template<typename TmplVisitor >
void visit (TmplVisitor &visitor)
 
- Public Member Functions inherited from CParticle
 CParticle ()
 
 CParticle (double, double, const Vec3 &, const Vec3 &, const Vec3 &, int, bool)
 
 CParticle (double, double, const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, int, bool)
 
 CParticle (const esys::lsm::SimpleParticleData &particleData)
 
virtual ~CParticle ()
 
const Vec3getInitPos () const
 
void setInitPos (const Vec3 &initPos)
 
Vec3 getDisplacement () const
 
Vec3 getTotalDisplacement () const
 
const Vec3getOldPos () const
 
Vec3 getVel () const
 
double getAbsVel () const
 
void setVel (const Vec3 &V)
 
void setMass (double mass)
 
double getMass () const
 
double getInvMass () const
 
Vec3 getForce () const
 
virtual void setDensity (double)
 
void resetDisplacement ()
 
double getIDField () const
 
double getTagField () const
 
void applyForce (const Vec3 &, const Vec3 &)
 
void moveToRel (const Vec3 &v)
 
double getKineticEnergy () const
 move relative to initial position More...
 
virtual void setNonDynamic ()
 
virtual void setNonDynamicLinear ()
 
virtual void setNonDynamicRot ()
 
void setFlag (bool b=true)
 
bool isFlagged () const
 
void writeAsDXLine (ostream &, int slid=0)
 
void print ()
 
void rescale ()
 
exchangeType getExchangeValues ()
 
void setExchangeValues (const exchangeType &)
 
void setCircular (const Vec3 &)
 
double sigma_xx_2D () const
 
double sigma_xy_2D () const
 
double sigma_yy_2D () const
 
double sigma_d () const
 
template<typename TmplVisitor >
void visit (TmplVisitor &visitor)
 
- Public Member Functions inherited from CBasicParticle
 CBasicParticle ()
 
 CBasicParticle (const Vec3 &pos, double radius, int id=-1, int tag=-1)
 
 CBasicParticle (const esys::lsm::SimpleParticleData &data)
 
virtual ~CBasicParticle ()
 
Vec3getPPos ()
 
Vec3 getPos () const
 
void setPos (const Vec3 &pos)
 
double getRad () const
 
int getID () const
 
void setID (int id)
 
void moveBy (Vec3 v)
 move relative to current position More...
 
void moveTo (Vec3 v)
 move absolute More...
 
void setRad (double r)
 
void setTag (int t)
 particle tag handling More...
 
int getTag () const
 
bool isValid () const
 
 CBasicParticle ()
 
 CBasicParticle (int, const Vec3 &, double)
 
Vec3getPPos ()
 
Vec3 getPos () const
 
double getRad () const
 
int getID () const
 
void moveBy (Vec3 v)
 
void moveTo (Vec3 v)
 move relative to current position More...
 
void setRad (double r)
 move absolute More...
 
- Public Member Functions inherited from esys::lsm::CheckPointable
 CheckPointable ()
 
virtual ~CheckPointable ()
 

Additional Inherited Members

- Public Types inherited from CRotParticleVi
typedef double(CRotParticleVi::* ScalarFieldFunction) () const
 
typedef Vec3(CRotParticleVi::* VectorFieldFunction) () const
 
- Public Types inherited from CParticle
typedef double(CParticle::* ScalarFieldFunction) () const
 
typedef Vec3(CParticle::* VectorFieldFunction) () const
 
- Static Public Member Functions inherited from CRotParticleVi
static int getPackSize ()
 
static ScalarFieldFunction getScalarFieldFunction (const string &)
 
static VectorFieldFunction getVectorFieldFunction (const string &)
 
static map< string, AField * > generateFields (ParallelParticleArray< CRotParticleVi > *)
 
static void get_type ()
 
- Static Public Member Functions inherited from CParticle
static ScalarFieldFunction getScalarFieldFunction (const string &)
 
static VectorFieldFunction getVectorFieldFunction (const string &)
 
static void get_type ()
 
static void setDo2dCalculations (bool do2dCalculations)
 
static bool getDo2dCalculations ()
 
- Static Public Attributes inherited from CBasicParticle
static const CBasicParticle INVALID = CBasicParticle(Vec3::ZERO, 0.0, -1, -1)
 
- Protected Member Functions inherited from CParticle
void setForce (const Vec3 &force)
 
- Protected Attributes inherited from CRotParticleVi
Quaternion m_quat
 
Quaternion m_initquat
 
Vec3 m_angVel
 
Vec3 m_angVel_t
 
Vec3 m_moment
 Angular velocity at time t. More...
 
double m_inertRot
 
double m_div_inertRot
 
bool m_is_dynamic
 
- Protected Attributes inherited from CParticle
Matrix3 m_sigma
 stress tensor. More...
 
Vec3 m_vel
 
Vec3 m_force
 
Vec3 m_oldpos
 position at the time of last neighbor search More...
 
Vec3 m_initpos
 position at time of construction More...
 
Vec3 m_circular_shift
 shift vector if particle is circular image More...
 
double m_mass
 
double m_div_mass
 
bool flag
 
bool m_is_dynamic
 
- Protected Attributes inherited from CBasicParticle
Vec3 m_pos
 position More...
 
double m_rad
 radius More...
 
int m_global_id
 
int m_tag
 
int m_id
 

Constructor & Destructor Documentation

◆ RotParticleViPy() [1/4]

esys::lsm::RotParticleViPy::RotParticleViPy ( )

◆ RotParticleViPy() [2/4]

esys::lsm::RotParticleViPy::RotParticleViPy ( const RotParticleViPy p)

◆ RotParticleViPy() [3/4]

esys::lsm::RotParticleViPy::RotParticleViPy ( const CRotParticleVi p)

◆ RotParticleViPy() [4/4]

esys::lsm::RotParticleViPy::RotParticleViPy ( int  id,
const Vec3Py posn,
double  radius,
double  mass 
)

Member Function Documentation

◆ getAcceleration()

Vec3Py esys::lsm::RotParticleViPy::getAcceleration ( ) const

References CParticle::getForce(), and CParticle::getInvMass().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAngularAcceleration()

Vec3Py esys::lsm::RotParticleViPy::getAngularAcceleration ( ) const

References CRotParticleVi::getInvInertRot(), and CRotParticleVi::getMoment().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAngularForce()

Vec3Py esys::lsm::RotParticleViPy::getAngularForce ( ) const

References CRotParticleVi::m_moment.

Referenced by esys::lsm::RotParticleViPy::PickleSuite::getstate().

Here is the caller graph for this function:

◆ getAngularVelocity()

Vec3Py esys::lsm::RotParticleViPy::getAngularVelocity ( ) const

References CRotParticleVi::getAngVel().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::getstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAngularVelocityT()

Vec3Py esys::lsm::RotParticleViPy::getAngularVelocityT ( ) const

References CRotParticleVi::getAngVel_t().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getInitialPosn()

Vec3Py esys::lsm::RotParticleViPy::getInitialPosn ( ) const

References CParticle::getInitPos().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::getstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLinearAcceleration()

Vec3Py esys::lsm::RotParticleViPy::getLinearAcceleration ( ) const

References CParticle::getForce(), and CParticle::getInvMass().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLinearForce()

Vec3Py esys::lsm::RotParticleViPy::getLinearForce ( ) const

References CParticle::m_force.

Referenced by esys::lsm::RotParticleViPy::PickleSuite::getstate().

Here is the caller graph for this function:

◆ getLinearVelocity()

Vec3Py esys::lsm::RotParticleViPy::getLinearVelocity ( ) const

References CParticle::getVel().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::getstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOrientation()

QuaternionPy esys::lsm::RotParticleViPy::getOrientation ( ) const

References CRotParticleVi::getQuat().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::getstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPosn()

Vec3Py esys::lsm::RotParticleViPy::getPosn ( ) const

References CBasicParticle::getPos().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::getstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVelocity()

Vec3Py esys::lsm::RotParticleViPy::getVelocity ( ) const

References CParticle::getVel().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAngularAcceleration()

void esys::lsm::RotParticleViPy::setAngularAcceleration ( const Vec3Py accel)

References CRotParticleVi::getInertRot(), and CRotParticleVi::setMoment().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAngularForce()

void esys::lsm::RotParticleViPy::setAngularForce ( const Vec3Py force)

References CRotParticleVi::setMoment().

Referenced by esys::lsm::RotParticleViPy::PickleSuite::setstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAngularVelocity()

void esys::lsm::RotParticleViPy::setAngularVelocity ( const Vec3Py vel)

References CRotParticleVi::setAngVel().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::setstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAngularVelocityT()

void esys::lsm::RotParticleViPy::setAngularVelocityT ( const Vec3Py vel)

References CRotParticleVi::setAngVel_t().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLinearAcceleration()

void esys::lsm::RotParticleViPy::setLinearAcceleration ( const Vec3Py accel)

References CParticle::getMass(), and CParticle::setForce().

Referenced by esys::lsm::exportRotParticleVi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLinearForce()

void esys::lsm::RotParticleViPy::setLinearForce ( const Vec3Py force)

References CParticle::setForce().

Referenced by esys::lsm::RotParticleViPy::PickleSuite::setstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLinearVelocity()

void esys::lsm::RotParticleViPy::setLinearVelocity ( const Vec3Py vel)

References CParticle::setVel().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::setstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOrientation()

void esys::lsm::RotParticleViPy::setOrientation ( const QuaternionPy quat)

References CRotParticleVi::setQuat().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::setstate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPosn()

void esys::lsm::RotParticleViPy::setPosn ( const Vec3Py posn)

References CBasicParticle::setPos().

Referenced by esys::lsm::exportRotParticleVi(), and esys::lsm::RotParticleViPy::PickleSuite::setstate().

Here is the call graph for this function:
Here is the caller graph for this function:

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