ESyS-Particle  2.3.4
FracWriter Class Reference

#include <fracwriter.h>

Collaboration diagram for FracWriter:

Public Member Functions

 FracWriter ()
 
void addData (const vector< FracFrame::fdata > &, int)
 
void addPlane (const Plane3D &)
 
void write (const string &)
 
void writeText (const string &)
 
void writeProfile (double, double, int, const string &)
 
void writeParticleList (const string &)
 

Private Member Functions

void writePlane (const string &)
 

Private Attributes

vector< fwdatam_data
 
map< int, int > m_nbrk_map
 
Vec3 m_c1
 
Vec3 m_c2
 
Vec3 m_c3
 
Vec3 m_c4
 
bool with_plane
 

Constructor & Destructor Documentation

◆ FracWriter()

FracWriter::FracWriter ( )

constructor

References with_plane.

Member Function Documentation

◆ addData()

void FracWriter::addData ( const vector< FracFrame::fdata > &  newdata,
int  t 
)

add point data to the writer

References esys::lsm::bpu::iter(), m_data, and m_nbrk_map.

Referenced by main().

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

◆ addPlane()

void FracWriter::addPlane ( const Plane3D P)

add a plane to the data writer

References Plane3D::getPos(), Plane3D::GetU(), Plane3D::GetV(), esys::lsm::bpu::iter(), m_c1, m_c2, m_c3, m_c4, m_data, Vec3::norm(), and with_plane.

Referenced by main().

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

◆ write()

void FracWriter::write ( const string &  filename)

write data int VTK-XML file

Parameters
filenamethe filename

References esys::lsm::bpu::iter(), m_data, with_plane, and writePlane().

Referenced by main().

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

◆ writeParticleList()

void FracWriter::writeParticleList ( const string &  filename)

write data as text file

Parameters
filenamethe filename

References esys::lsm::bpu::iter(), and m_nbrk_map.

Referenced by main().

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

◆ writePlane()

void FracWriter::writePlane ( const string &  filename)
private

write plane data int VTK-XML file

References m_c1, m_c2, m_c3, and m_c4.

Referenced by write().

Here is the caller graph for this function:

◆ writeProfile()

void FracWriter::writeProfile ( double  ymin,
double  ymax,
int  nbin,
const string &  filename 
)

write fracture distribution profile (y-direction)

Parameters
yminminimum y-coordinate
ymaxmaximum y-coordinate \nbin number of bins in the distribution
filenamethe filename

References esys::lsm::bpu::iter(), and m_data.

Referenced by main().

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

◆ writeText()

void FracWriter::writeText ( const string &  filename)

write data as text file

Parameters
filenamethe filename

References esys::lsm::bpu::iter(), and m_data.

Referenced by main().

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

Member Data Documentation

◆ m_c1

Vec3 FracWriter::m_c1
private

Referenced by addPlane(), and writePlane().

◆ m_c2

Vec3 FracWriter::m_c2
private

Referenced by addPlane(), and writePlane().

◆ m_c3

Vec3 FracWriter::m_c3
private

Referenced by addPlane(), and writePlane().

◆ m_c4

Vec3 FracWriter::m_c4
private

Referenced by addPlane(), and writePlane().

◆ m_data

vector<fwdata> FracWriter::m_data
private

◆ m_nbrk_map

map<int,int> FracWriter::m_nbrk_map
private

Referenced by addData(), and writeParticleList().

◆ with_plane

bool FracWriter::with_plane
private

Referenced by addPlane(), FracWriter(), and write().


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