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

#include <Contact.h>

Collaboration diagram for esys::lsm::Contact:

Public Member Functions

 Contact ()
 
 Contact (const ParticleData &pd1, const ParticleData &pd2, const Vec3 &forcePos, const Vec3 &force)
 
 Contact (const Contact &data)
 
const ParticleDatagetParticle1 () const
 
const ParticleDatagetParticle2 () const
 
const Vec3getCentrePos1 () const
 
double getVolume1 () const
 
const Vec3getCentrePos2 () const
 
double getVolume2 () const
 
const Vec3getForcePos () const
 
const Vec3getForce () const
 
bool operator== (const Contact &data) const
 
void write (std::ostream &oStream) const
 
void read (std::istream &iStream)
 

Private Attributes

ParticleData m_pd1
 
ParticleData m_pd2
 
Vec3 m_forcePos
 
Vec3 m_force
 

Constructor & Destructor Documentation

◆ Contact() [1/3]

esys::lsm::Contact::Contact ( )
inline

◆ Contact() [2/3]

esys::lsm::Contact::Contact ( const ParticleData pd1,
const ParticleData pd2,
const Vec3 forcePos,
const Vec3 force 
)
inline

◆ Contact() [3/3]

esys::lsm::Contact::Contact ( const Contact data)
inline

Member Function Documentation

◆ getCentrePos1()

const Vec3& esys::lsm::Contact::getCentrePos1 ( ) const
inline

References getParticle1(), and esys::lsm::ParticleData::getPos().

Referenced by esys::lsm::ContactCollection::addContact().

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

◆ getCentrePos2()

const Vec3& esys::lsm::Contact::getCentrePos2 ( ) const
inline

References getParticle2(), and esys::lsm::ParticleData::getPos().

Here is the call graph for this function:

◆ getForce()

const Vec3& esys::lsm::Contact::getForce ( ) const
inline

References m_force.

Referenced by esys::lsm::ContactCollection::addContactWithReverse().

Here is the caller graph for this function:

◆ getForcePos()

const Vec3& esys::lsm::Contact::getForcePos ( ) const
inline

References m_forcePos.

Referenced by esys::lsm::ContactCollection::addContactWithReverse().

Here is the caller graph for this function:

◆ getParticle1()

const ParticleData& esys::lsm::Contact::getParticle1 ( ) const
inline

References m_pd1.

Referenced by esys::lsm::ContactCollection::addContactWithReverse(), getCentrePos1(), and getVolume1().

Here is the caller graph for this function:

◆ getParticle2()

const ParticleData& esys::lsm::Contact::getParticle2 ( ) const
inline

References m_pd2.

Referenced by esys::lsm::ContactCollection::addContactWithReverse(), getCentrePos2(), and getVolume2().

Here is the caller graph for this function:

◆ getVolume1()

double esys::lsm::Contact::getVolume1 ( ) const
inline

References getParticle1(), and esys::lsm::ParticleData::getVolume().

Here is the call graph for this function:

◆ getVolume2()

double esys::lsm::Contact::getVolume2 ( ) const
inline

References getParticle2(), and esys::lsm::ParticleData::getVolume().

Here is the call graph for this function:

◆ operator==()

bool esys::lsm::Contact::operator== ( const Contact data) const
inline

References m_force, m_forcePos, m_pd1, and m_pd2.

◆ read()

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

References m_force, m_forcePos, m_pd1, and m_pd2.

Referenced by esys::lsm::Raw2InteractionReader::next(), and operator>>().

Here is the caller graph for this function:

◆ write()

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

References m_force, m_forcePos, m_pd1, and m_pd2.

Referenced by operator<<().

Here is the caller graph for this function:

Member Data Documentation

◆ m_force

Vec3 esys::lsm::Contact::m_force
private

Referenced by getForce(), operator==(), read(), and write().

◆ m_forcePos

Vec3 esys::lsm::Contact::m_forcePos
private

Referenced by getForcePos(), operator==(), read(), and write().

◆ m_pd1

ParticleData esys::lsm::Contact::m_pd1
private

Referenced by getParticle1(), operator==(), read(), and write().

◆ m_pd2

ParticleData esys::lsm::Contact::m_pd2
private

Referenced by getParticle2(), operator==(), read(), and write().


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