ESyS-Particle  2.3.4
FracFrame Class Reference

#include <fracframe.h>

Collaboration diagram for FracFrame:

Classes

struct  bdata
 
class  cmp
 
struct  fdata
 

Public Member Functions

 FracFrame ()
 
void readFile (const string &)
 
void readFileRot (const string &, bool)
 
void readFileTagged (const string &, int)
 
void readFileRotTagged (const string &, int)
 
vector< fdatagetFrac (FracFrame &)
 

Private Member Functions

int get_version (const string &)
 
vector< string > get_filenames (const string &, int)
 

Private Attributes

set< bdata, FracFrame::cmpm_bonds
 
map< int, Vec3posmap
 
map< int, float > radmap
 
map< int, int > tagmap
 

Constructor & Destructor Documentation

◆ FracFrame()

FracFrame::FracFrame ( )

Member Function Documentation

◆ get_filenames()

vector< string > FracFrame::get_filenames ( const string &  infilename,
int  version 
)
private

Referenced by readFile(), readFileRot(), readFileRotTagged(), and readFileTagged().

Here is the caller graph for this function:

◆ get_version()

int FracFrame::get_version ( const string &  infilename)
private

Referenced by readFile(), readFileRot(), readFileRotTagged(), and readFileTagged().

Here is the caller graph for this function:

◆ getFrac()

vector< FracFrame::fdata > FracFrame::getFrac ( FracFrame F2)

get the fracture as difference in the bonds between two frames

Parameters
F2the newer frame

References FracFrame::fdata::dist, FracFrame::fdata::id1, FracFrame::fdata::id2, esys::lsm::bpu::iter(), m_bonds, FracFrame::fdata::normal, FracFrame::fdata::pos, posmap, radmap, FracFrame::fdata::size, and FracFrame::fdata::tag.

Referenced by main().

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

◆ readFile()

void FracFrame::readFile ( const string &  infilename)

read connection data from file

Parameters
infilenamethe filename

References get_filenames(), get_version(), bond::id1, bond::id2, esys::lsm::bpu::iter(), m_bonds, posmap, radmap, and bond::tag.

Referenced by main().

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

◆ readFileRot()

void FracFrame::readFileRot ( const string &  infilename,
bool  init_pos 
)

read connection data from a file (rotational particles)

Parameters
infilenamethe filename
init_posif true, write fractures at initial particle positions

References get_filenames(), get_version(), bond::id1, bond::id2, esys::lsm::bpu::iter(), m_bonds, posmap, radmap, and bond::tag.

Referenced by main().

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

◆ readFileRotTagged()

void FracFrame::readFileRotTagged ( const string &  infilename,
int  rtag 
)

read connection data involving particles with a particular tag from a file (rotational particles)

Parameters
infilenamethe filename
rtagthe particle tag

References get_filenames(), get_version(), bond::id1, bond::id2, esys::lsm::bpu::iter(), m_bonds, posmap, radmap, and bond::tag.

Referenced by main().

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

◆ readFileTagged()

void FracFrame::readFileTagged ( const string &  infilename,
int  rtag 
)

read connection data involving particles with a particular tag from file

Parameters
infilenamethe filename
rtagthe particle tag

References get_filenames(), get_version(), bond::id1, bond::id2, esys::lsm::bpu::iter(), m_bonds, posmap, radmap, and bond::tag.

Referenced by main().

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

Member Data Documentation

◆ m_bonds

set<bdata,FracFrame::cmp> FracFrame::m_bonds
private

◆ posmap

map<int,Vec3> FracFrame::posmap
private

◆ radmap

map<int,float> FracFrame::radmap
private

◆ tagmap

map<int,int> FracFrame::tagmap
private

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