|
ESyS-Particle
2.3.4
|
class for the extraction of data from snapshots More...
#include <DataExtractor.h>

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< DataParticle > | m_data |
class for the extraction of data from snapshots
| DataExtractor::DataExtractor | ( | int | x, |
| int | y, | ||
| int | z, | ||
| double | range, | ||
| const Vec3 & | p0_global | ||
| ) |
constructor
| x | nr. of grid points in x-direction |
| y | nr. of grid points in y-direction |
| z | nr. of grid points in z-direction |
| range | grid spacing |
| p0_global | minimal corner (origin) of the global search space |
| 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().


| void DataExtractor::read | ( | const string & | infilename | ) |
read snapshot
| filename | the 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().


| 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
| rad | the 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().


| void DataExtractor::writeScalarDataVtk | ( | const string & | filename, |
| const string & | dataname | ||
| ) |
write scalar data as unstructured grid VTK-XML file
| filename | the name of the output file |
| dataname | the 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().


| void DataExtractor::writeTensorDataVtk | ( | const string & | filename, |
| const string & | dataname | ||
| ) |
write tensor data as unstructured grid VTK-XML file
| filename | the name of the output file |
| dataname | the name of the data in the VTK file |
|
private |
Referenced by MaxShearToScalarData(), read(), StrainToTensorData(), and writeScalarDataVtk().