MAIA bb96820c
Multiphysics at AIA
|
Class to handle sampling of volume data. More...
#include <samplingdata.h>
Public Types | |
using | Base = SamplingData< nDim, SolverType > |
Public Member Functions | |
VolumeData (SolverType &solver_) | |
virtual | ~VolumeData () |
MString | getBaseName () const override |
Return base name of derived class, e.g. used for naming properties and output file names. More... | |
void | indexXD (const MInt index, const MInt *const nPoints, MInt *indexXD) |
Convert 1D index into 2D/3D index. More... | |
MBool | isMpiRoot () const |
MPI_Comm | mpiComm () const |
SolverType & | solver () |
Return reference to solver. More... | |
const SolverType & | solver () const |
MInt | solverId () const |
Public Member Functions inherited from SamplingData< nDim, SolverType > | |
SamplingData (SolverType &solver) | |
void | init () |
void | save (MBool finalTimestep) |
void | setInputOutputProperties () |
MBool | enabled () const |
virtual MInt | loadInputFile (const MString NotUsed(inputFileName), const MInt NotUsed(fileNo), std::vector< MFloat > &NotUsed(coordinates)) |
virtual MString | getBaseName () const |
Return base name of derived class, e.g. used for naming properties and output file names. More... | |
Public Attributes | |
MBool | m_enabled |
std::vector< SamplingDataSeries > | m_timeSeries |
Holds all properties and buffers for each input file. More... | |
Protected Member Functions | |
MBool | generatePoints () const override |
Always generate points. More... | |
MBool | hasInputDataFile (const MInt fileNo) const override |
Points are generated not read from file, just check for property 'volumeDataShape_*'. More... | |
MString | getInputDataFile (const MInt NotUsed(fileNo)) const |
void | readAdditionalProperties (const MInt fileNo) override |
Read additional properties for volume sampling. More... | |
MInt | noSamplingPoints (const MInt fileNo) override |
Return number of volume sampling points. More... | |
void | getSamplingPoint (const MInt fileNo, const MInt pointId, MFloat *const coordinates) override |
Return sampling point coordinates. More... | |
Protected Member Functions inherited from SamplingData< nDim, SolverType > | |
void | init (SamplingDataSeries &timeSeries) |
void | save (SamplingDataSeries &timeSeries, MBool finalTimeStep) |
Saves sampling data Saves all states of conservative variables at specified points. Also writes sampling data files in specified intervals. More... | |
virtual MBool | hasInputDataFile (const MInt fileNo) const |
Check if an input file exists, might be overwritten in derived class if points are generated. More... | |
virtual MBool | generatePoints () const |
Default behaviour for point generation which can be overwritten in derived class. More... | |
virtual MInt | noSamplingPoints (const MInt NotUsed(fileNo)) |
Return the number of sampling points which are generated by the derived class (no input file) More... | |
virtual void | getSamplingPoint (const MInt NotUsed(fileNo), const MInt NotUsed(pointId), MFloat *const NotUsed(coordinates)) |
Return the coordinates of the sampling point with the given id when generating points. More... | |
void | indexXD (const MInt index, const MInt *const nPoints, MInt *indexXD) |
Convert 1D index into 2D/3D index. More... | |
void | saveSamplingPointCoordinates (SamplingDataSeries &timeSeries) |
Save point coordinates of time series. More... | |
virtual void | readAdditionalProperties (const MInt NotUsed(fileNo)) |
Read additional properties which are required by the derived class. More... | |
MInt | solverId () const |
MBool | isMpiRoot () const |
MPI_Comm | mpiComm () const |
MInt | noVars () const |
Return total number of sampling variables. More... | |
MString | getFileBaseName () const |
Return base name of files for used sampling feature. More... | |
SolverType & | solver () |
Return reference to solver. More... | |
const SolverType & | solver () const |
Private Attributes | |
std::vector< MString > | m_volumeShape {} |
std::vector< std::vector< MFloat > > | m_volumeParameterFloat {} |
std::vector< std::vector< MInt > > | m_volumeParameterInt {} |
Additional Inherited Members | |
Protected Attributes inherited from SamplingData< nDim, SolverType > | |
MBool | m_enabled = false |
MBool | m_interpolatePointData |
std::vector< SamplingDataSeries > | m_timeSeries {} |
Holds all properties and buffers for each input file. More... | |
std::vector< MInt > | m_solverSamplingVarIds {} |
List of sampling variables. More... | |
std::vector< MInt > | m_noSolverSamplingVars {} |
Number of variables for each sampling variable. More... | |
std::vector< std::vector< MString > > | m_solverSamplingVarNames {} |
List of variable names for each sampling variable. More... | |
Definition at line 220 of file samplingdata.h.
using VolumeData< nDim, SolverType >::Base = SamplingData<nDim, SolverType> |
Definition at line 222 of file samplingdata.h.
|
inline |
Definition at line 233 of file samplingdata.h.
|
inlinevirtual |
Definition at line 234 of file samplingdata.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from SamplingData< nDim, SolverType >.
Definition at line 240 of file samplingdata.h.
|
inlineoverridevirtual |
Reimplemented from SamplingData< nDim, SolverType >.
Definition at line 236 of file samplingdata.h.
|
inlineprotected |
Definition at line 253 of file samplingdata.h.
|
overrideprotected |
Definition at line 1390 of file samplingdata.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from SamplingData< nDim, SolverType >.
Definition at line 243 of file samplingdata.h.
void SamplingData< nDim, SolverType >::indexXD | ( | const MInt | index, |
const MInt *const | nPoints, | ||
MInt * | indexXD | ||
) |
Convert a one dimensional index into a 2D/3D index with the given number of points per direction (index of last dimension varies the fastest)
Definition at line 109 of file samplingdata.h.
|
inline |
Definition at line 119 of file samplingdata.h.
|
inline |
Definition at line 120 of file samplingdata.h.
|
overrideprotected |
Definition at line 1367 of file samplingdata.h.
|
overrideprotected |
Definition at line 1309 of file samplingdata.h.
|
inline |
Definition at line 129 of file samplingdata.h.
|
inline |
Definition at line 130 of file samplingdata.h.
|
inline |
Definition at line 118 of file samplingdata.h.
MBool SamplingData< nDim, SolverType >::m_enabled |
Definition at line 134 of file samplingdata.h.
std::vector<SamplingDataSeries> SamplingData< nDim, SolverType >::m_timeSeries |
Definition at line 138 of file samplingdata.h.
|
private |
Definition at line 266 of file samplingdata.h.
|
private |
Definition at line 267 of file samplingdata.h.
|
private |
Storage for volume parameters (shape; floating point values, e.g. coordinates; integer parameters, i.e. number of points)
Definition at line 265 of file samplingdata.h.