|
OOFEM 3.0
|
#include <voxelvoffield.h>
Public Member Functions | |
| VoxelVOFField (VoxelGrid *vg=nullptr) | |
| void | setGrid (VoxelGrid *vg) |
| int | evaluateAt (FloatArray &answer, const FloatArray &coords, ValueModeType mode, TimeStep *tStep) override |
| int | evaluateAt (FloatArray &answer, DofManager *dman, ValueModeType mode, TimeStep *tStep) override |
| int | evaluateAt (FloatArray &answer, Element *el, ValueModeType mode, TimeStep *tStep) override |
| void | saveContext (DataStream &stream) override |
| void | restoreContext (DataStream &stream) override |
| virtual const char * | giveClassName () const override |
| virtual void | initializeFrom (InputRecord &ir) override |
| Public Member Functions inherited from oofem::Field | |
| Field (FieldType b=FieldType::FT_Unknown) | |
| virtual | ~Field () |
| FieldType | giveType () |
| Returns the type of receiver. | |
| void | setType (FieldType b) |
| Sets the type of receiver. | |
| void | setSetsNumbers (const IntArray sets) |
| Defines a list of sets used to impose a field on specific elements. | |
| virtual bool | hasElementInSets (int nElem, Domain *d) |
| Searches if element number exist in IntArray regionSets for given domain. | |
| std::string | errorInfo (const char *func) const |
| Returns string for prepending output (used by error reporting macros). | |
Protected Attributes | |
| VoxelGrid * | voxelGrid |
| Protected Attributes inherited from oofem::Field | |
| FieldType | type |
| IntArray | regionSets |
Definition at line 47 of file voxelvoffield.h.
|
inline |
Definition at line 52 of file voxelvoffield.h.
References oofem::Field::Field(), and voxelGrid.
|
inlineoverridevirtual |
Evaluates the field at given point.
| coords | Coordinates of the point of interest |
| answer | Field evaluated at coordinate. |
| tStep | Time step to evaluate for. |
| mode | Mode of value (total, velocity,...). |
Implements oofem::Field.
Definition at line 54 of file voxelvoffield.h.
References oofem::TimeStep::giveIntrinsicTime(), oofem::FloatArray::resize(), and voxelGrid.
|
inlineoverridevirtual |
Evaluates the field at given DofManager. This potentially can be resolved quickly, as receiver data may be described using values at dofManagers. Here an additional issue exists: one needs to make sure, that passed dman is from the same domain, so that its number can be used to perform suggested quick evaluation.
If this is not the case (the field is described differently), the response can be evaluated using dofman coordinates in a standard way.
| [out] | answer | Evaluated field for dman. |
| dman | Reference to dofManager. | |
| mode | Mode of value (total, velocity,...). | |
| tStep | Time step to evaluate for. |
Implements oofem::Field.
Definition at line 68 of file voxelvoffield.h.
References oofem::FloatArray::resize().
|
inlineoverridevirtual |
Reimplemented from oofem::Field.
Definition at line 75 of file voxelvoffield.h.
References oofem::FloatArray::add(), oofem::DofManager::giveCoordinates(), oofem::TimeStep::giveIntrinsicTime(), oofem::Element::giveNode(), oofem::Element::giveNumberOfNodes(), and voxelGrid.
|
inlineoverridevirtual |
Implements oofem::Field.
Definition at line 102 of file voxelvoffield.h.
|
inlineoverridevirtual |
Reimplemented from oofem::Field.
Definition at line 107 of file voxelvoffield.h.
|
inlineoverridevirtual |
Restores the receiver state previously written in stream.
| stream | Input stream. |
| Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 98 of file voxelvoffield.h.
|
inlineoverridevirtual |
Stores receiver state to output stream.
| stream | Output stream. |
| Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 97 of file voxelvoffield.h.
|
inline |
Definition at line 53 of file voxelvoffield.h.
References voxelGrid.
|
protected |
Definition at line 50 of file voxelvoffield.h.
Referenced by evaluateAt(), evaluateAt(), setGrid(), and VoxelVOFField().