MAIA bb96820c
Multiphysics at AIA
|
This class is responsible for the point data feature. It records the state of all sampling variables at specified intervals at specified points. More...
#include <samplingdata.h>
Public Types | |
using | Base = SamplingData< nDim, SolverType > |
Public Member Functions | |
PointData (SolverType &solver_) | |
virtual | ~PointData () |
MInt | loadInputFile (const MString inputFileName, const MInt NotUsed(fileNo), std::vector< MFloat > &coordinates) override |
Loads an input file with points for the point data feature. More... | |
MString | getBaseName () const override |
Return base name of derived class, e.g. used for naming properties and output file names. 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... | |
Additional Inherited Members | |
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 |
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... | |
Currently the only way to specify the points is via a input file.
Definition at line 164 of file samplingdata.h.
using PointData< nDim, SolverType >::Base = SamplingData<nDim, SolverType> |
Definition at line 166 of file samplingdata.h.
|
inline |
Definition at line 176 of file samplingdata.h.
|
inlinevirtual |
Definition at line 177 of file samplingdata.h.
|
inlineoverridevirtual |
Reimplemented from SamplingData< nDim, SolverType >.
Definition at line 182 of file samplingdata.h.
|
inline |
Definition at line 119 of file samplingdata.h.
|
override |
Definition at line 1077 of file samplingdata.h.
|
inline |
Definition at line 120 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.