ESyS-Particle  2.3.4
BTriMeshInteractionCpData Class Reference

#include <BTriMeshInteractionCpData.h>

Inheritance diagram for BTriMeshInteractionCpData:
Collaboration diagram for BTriMeshInteractionCpData:

Public Member Functions

 BTriMeshInteractionCpData ()
 
virtual ~BTriMeshInteractionCpData ()
 
 BTriMeshInteractionCpData (const BTriangleInteraction &)
 
void set (const BTriangleInteraction &)
 
virtual void saveSnapShotData (std::ostream &)
 
virtual void saveCheckPointData (std::ostream &)
 
virtual void loadCheckPointData (std::istream &)
 
- Public Member Functions inherited from esys::lsm::CheckPointable
 CheckPointable ()
 
virtual ~CheckPointable ()
 

Private Attributes

Vec3 m_ap
 
int m_tid
 
int m_pid
 

Detailed Description

Helper class for checkpointing BTriangleInteraction data.

Constructor & Destructor Documentation

◆ BTriMeshInteractionCpData() [1/2]

BTriMeshInteractionCpData::BTriMeshInteractionCpData ( )

Default constructor. Particle and Triangle ID are set to -1, anchor vector to (0,0,0) -> the resulting data mark an invalid Interaction

◆ ~BTriMeshInteractionCpData()

virtual BTriMeshInteractionCpData::~BTriMeshInteractionCpData ( )
inlinevirtual

◆ BTriMeshInteractionCpData() [2/2]

BTriMeshInteractionCpData::BTriMeshInteractionCpData ( const BTriangleInteraction BTI)

Construct CpData from bonded triangle interaction - takes particle and triangle ID and particle anchor point

Parameters
BTIthe bonded triangle interaction (reference)

References BTriangleInteraction::getAP(), BTriangleInteraction::getPid(), BTriangleInteraction::getTid(), m_ap, m_pid, and m_tid.

Here is the call graph for this function:

Member Function Documentation

◆ loadCheckPointData()

void BTriMeshInteractionCpData::loadCheckPointData ( std::istream &  ist)
virtual

Load CpData for bonded triangle interaction from input stream

Implements esys::lsm::CheckPointable.

◆ saveCheckPointData()

void BTriMeshInteractionCpData::saveCheckPointData ( std::ostream &  ost)
virtual

Write restartable CpData to output stream. The format is tid pid ap_x ap_y ap_z where ap_? are the vector components of the anchor point

Warning
The format isn't set in stone - don't rely on this for reading functions at the moment

Implements esys::lsm::CheckPointable.

References m_ap, m_pid, and m_tid.

◆ saveSnapShotData()

void BTriMeshInteractionCpData::saveSnapShotData ( std::ostream &  ost)
virtual

Reimplemented from esys::lsm::CheckPointable.

References m_ap, m_pid, and m_tid.

◆ set()

void BTriMeshInteractionCpData::set ( const BTriangleInteraction BTI)

Set the data of an existing CpData object to those of a given bonded triangle interaction.

Parameters
BTIthe bonded triangle interaction (reference)

References BTriangleInteraction::getAP(), BTriangleInteraction::getPid(), BTriangleInteraction::getTid(), m_ap, m_pid, and m_tid.

Here is the call graph for this function:

Member Data Documentation

◆ m_ap

Vec3 BTriMeshInteractionCpData::m_ap
private

◆ m_pid

int BTriMeshInteractionCpData::m_pid
private

◆ m_tid

int BTriMeshInteractionCpData::m_tid
private

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