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

#include <Contact.h>

Collaboration diagram for esys::lsm::ParticleData:

Public Member Functions

 ParticleData ()
 
 ParticleData (const Vec3 &pos, double rad)
 
bool operator== (const ParticleData &pd) const
 
const Vec3getPos () const
 
const double & getRad () const
 
double getVolume () const
 
void read (std::istream &iStream)
 
void write (std::ostream &oStream) const
 

Static Public Member Functions

static bool is3d ()
 
static bool is2d ()
 
static bool is3d (bool is3d)
 

Static Public Attributes

static const double FOUR_THIRDS_PI = ((4.0/3.0)*M_PIl)
 

Private Attributes

Vec3 m_pos
 
double m_rad
 

Static Private Attributes

static bool s_is3d = true
 

Constructor & Destructor Documentation

◆ ParticleData() [1/2]

esys::lsm::ParticleData::ParticleData ( )
inline

◆ ParticleData() [2/2]

esys::lsm::ParticleData::ParticleData ( const Vec3 pos,
double  rad 
)
inline

Member Function Documentation

◆ getPos()

const Vec3& esys::lsm::ParticleData::getPos ( ) const
inline

◆ getRad()

const double& esys::lsm::ParticleData::getRad ( ) const
inline

References m_rad.

Referenced by getVolume(), and operator==().

Here is the caller graph for this function:

◆ getVolume()

double esys::lsm::ParticleData::getVolume ( ) const
inline

References FOUR_THIRDS_PI, getRad(), and is3d().

Referenced by esys::lsm::Contact::getVolume1(), and esys::lsm::Contact::getVolume2().

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

◆ is2d()

static bool esys::lsm::ParticleData::is2d ( )
inlinestatic

References s_is3d.

◆ is3d() [1/2]

static bool esys::lsm::ParticleData::is3d ( )
inlinestatic

References s_is3d.

Referenced by getVolume(), esys::lsm::InteractionToStressConverter::is3d(), is3d(), and main().

Here is the caller graph for this function:

◆ is3d() [2/2]

static bool esys::lsm::ParticleData::is3d ( bool  is3d)
inlinestatic

References is3d(), and s_is3d.

Here is the call graph for this function:

◆ operator==()

bool esys::lsm::ParticleData::operator== ( const ParticleData pd) const
inline

References getPos(), and getRad().

Here is the call graph for this function:

◆ read()

void esys::lsm::ParticleData::read ( std::istream &  iStream)
inline

References m_pos, and m_rad.

Referenced by std::operator>>().

Here is the caller graph for this function:

◆ write()

void esys::lsm::ParticleData::write ( std::ostream &  oStream) const
inline

References m_pos, and m_rad.

Referenced by std::operator<<().

Here is the caller graph for this function:

Member Data Documentation

◆ FOUR_THIRDS_PI

const double ParticleData::FOUR_THIRDS_PI = ((4.0/3.0)*M_PIl)
static

Referenced by getVolume().

◆ m_pos

Vec3 esys::lsm::ParticleData::m_pos
private

Referenced by getPos(), read(), and write().

◆ m_rad

double esys::lsm::ParticleData::m_rad
private

Referenced by getRad(), read(), and write().

◆ s_is3d

bool ParticleData::s_is3d = true
staticprivate

Referenced by is2d(), and is3d().


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