ESyS-Particle  2.3.4
DataExtractor Class Reference

class for the extraction of data from snapshots More...

#include <DataExtractor.h>

Collaboration diagram for DataExtractor:

Public Member Functions

 DataExtractor (int, int, int, double, const Vec3 &)
 
void read (const string &)
 
void writeTensorDataVtk (const string &, const string &)
 
void writeScalarDataVtk (const string &, const string &)
 
void StrainToTensorData (double)
 
void MaxShearToScalarData ()
 

Private Attributes

NeighborTable< DataParticlem_data
 

Detailed Description

class for the extraction of data from snapshots

Constructor & Destructor Documentation

◆ DataExtractor()

DataExtractor::DataExtractor ( int  x,
int  y,
int  z,
double  range,
const Vec3 p0_global 
)

constructor

Parameters
xnr. of grid points in x-direction
ynr. of grid points in y-direction
znr. of grid points in z-direction
rangegrid spacing
p0_globalminimal corner (origin) of the global search space

Member Function Documentation

◆ MaxShearToScalarData()

void DataExtractor::MaxShearToScalarData ( )

write maximum shear strain to scalar data member. Needs strain tensor calculation done before

References NeighborTable< T >::begin(), NeighborTable< T >::end(), 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:

◆ read()

void DataExtractor::read ( const string &  infilename)

read snapshot

Parameters
filenamethe name of the "metadata" file, usually *_0.txt

References get_filenames(), get_version(), NeighborTable< T >::insert(), esys::lsm::bpu::iter(), m_data, and NeighborTable< T >::size().

Referenced by main().

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

◆ StrainToTensorData()

void DataExtractor::StrainToTensorData ( double  rad)

extract best fit strain tensors from the data and write the result into the tensor data member of the particles

Parameters
radthe search radius for the neighbour particles

References NeighborTable< T >::begin(), NeighborTable< T >::end(), NeighborTable< T >::getParticlesNearPoint(), esys::lsm::bpu::iter(), m_data, Matrix3::solve(), Matrix3::trans(), Vec3::X(), Vec3::Y(), and Vec3::Z().

Referenced by main().

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

◆ writeScalarDataVtk()

void DataExtractor::writeScalarDataVtk ( const string &  filename,
const string &  dataname 
)

write scalar data as unstructured grid VTK-XML file

Parameters
filenamethe name of the output file
datanamethe name of the data in the VTK file

References NeighborTable< T >::begin(), NeighborTable< T >::end(), esys::lsm::bpu::iter(), m_data, and NeighborTable< T >::size().

Referenced by main().

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

◆ writeTensorDataVtk()

void DataExtractor::writeTensorDataVtk ( const string &  filename,
const string &  dataname 
)

write tensor data as unstructured grid VTK-XML file

Parameters
filenamethe name of the output file
datanamethe name of the data in the VTK file

Member Data Documentation

◆ m_data


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