|
|
| FieldFuncHDF5 () |
| | Default constructor.
|
| |
| | FieldFuncHDF5 (const std::string &fileName) |
| | The constructor opens the provided HDF5-file.
|
| |
|
| FieldFuncHDF5 (const FieldFuncHDF5 &)=delete |
| | No copying of this class.
|
| |
|
virtual | ~FieldFuncHDF5 () |
| | The destructor closes the HDF5-file.
|
| |
| bool | load (const std::vector< std::string > &fieldNames, const std::string &basisName, int level, bool isScalar=false) |
| | Loads field values for the specified time level.
|
| |
|
int | findClosestLevel (double time) const |
| | Finds the level whose time is closest to the specified time.
|
| |
| virtual void | addPatchField (ASMbase *pch, const std::vector< Real > &coefs, int nf, int basis)=0 |
| | Adds a patch-wise field with the given coefficient values.
|
| |
| virtual void | clearField ()=0 |
| | Clears the field container.
|
| |
|
| FieldFuncBase () |
| | Default constructor.
|
| |
|
| FieldFuncBase (const FieldFuncBase &)=delete |
| | No copying of this class.
|
| |
|
virtual | ~FieldFuncBase () |
| | The destructor deletes the patches.
|
| |
|
bool | setPatch (size_t pIdx) |
| | Sets the active patch.
|
| |
Base class for spatial functions, defined from a HDF5-file.
| bool FieldFuncHDF5::load |
( |
const std::vector< std::string > & |
fieldNames, |
|
|
const std::string & |
basisName, |
|
|
int |
level, |
|
|
bool |
isScalar = false |
|
) |
| |
|
protected |
Loads field values for the specified time level.
- Parameters
-
| [in] | fieldNames | Name of the field components in the HDF5-file |
| [in] | basisName | Name of the basis which the field values refer to |
| [in] | level | Time level to read for |
| [in] | isScalar | If true, assume this is a scalar field |
References addPatchField(), clearField(), ASM3D::create(), ASM2D::create(), FieldFuncBase::FIXED_LEVEL, HDF5Reader::getFieldSize(), hasMultipleLevels, hdf5, lastLevel, FieldFuncBase::patch, HDF5Reader::readString(), and HDF5Reader::readVector().
Referenced by FieldFunction::evaluate(), FieldFuncScalarBase::FieldFuncScalarBase(), FieldsFuncBase::getGradient(), FieldsFuncBase::getHessian(), FieldsFuncBase::getValues(), FieldFunction::gradient(), and FieldFunction::hessian().