|
OOFEM 3.0
|
#include <intvarfield.h>
Public Member Functions | |
| InternalVariableField (InternalStateType ist, FieldType b, MaterialMappingAlgorithmType mma_type, Domain *d) | |
| virtual | ~InternalVariableField () |
| int | evaluateAt (FloatArray &answer, const FloatArray &coords, ValueModeType mode, TimeStep *tStep) override |
| int | evaluateAt (FloatArray &answer, DofManager *dman, ValueModeType mode, TimeStep *tStep) override |
| void | saveContext (DataStream &stream) override |
| void | restoreContext (DataStream &stream) override |
| const char * | giveClassName () const override |
| Public Member Functions inherited from oofem::Field | |
| Field (FieldType b=FieldType::FT_Unknown) | |
| virtual | ~Field () |
| virtual int | evaluateAt (FloatArray &answer, Element *elem, ValueModeType mode, TimeStep *tStep) |
| 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). | |
| virtual void | initializeFrom (InputRecord &ir) |
Protected Attributes | |
| std::unique_ptr< MaterialMappingAlgorithm > | mma |
| Material mapping algorithm used. | |
| InternalStateType | type |
| InternalStateType. | |
| Domain * | domain |
| Source domain. | |
| Protected Attributes inherited from oofem::Field | |
| FieldType | type |
| IntArray | regionSets |
Abstract class representing a field of an internal variable. Field represent the spatial distribution of certain variable and is able to evaluate its value at any point of interest. The field is usually associated to the specific domain.
It uses MaterialMappingAlgorithm interface to perform interpolation. Note, that some classes implementing MaterialMappingAlgorithm may require that elements implement corresponding interface.
Definition at line 57 of file intvarfield.h.
| oofem::InternalVariableField::InternalVariableField | ( | InternalStateType | ist, |
| FieldType | b, | ||
| MaterialMappingAlgorithmType | mma_type, | ||
| Domain * | d ) |
Constructor. Creates a internal variable field of given type associated to given domain.
| ist | Physical meaning of field. |
| b | Field type. |
| mma_type | Algorithm used to map materials. |
| d | Domain which field belongs to. |
Definition at line 41 of file intvarfield.C.
References oofem::classFactory, domain, oofem::Field::Field(), mma, and type.
|
inlinevirtual |
Definition at line 76 of file intvarfield.h.
|
overridevirtual |
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,...). |
Use MaterialMappingAlgorithm classes to do the job
Implements oofem::Field.
Definition at line 49 of file intvarfield.C.
References oofem::Set::addAllElements(), oofem::IntArray::at(), domain, mma, and type.
Referenced by evaluateAt().
|
overridevirtual |
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 63 of file intvarfield.C.
References evaluateAt(), and oofem::DofManager::giveCoordinates().
|
inlineoverridevirtual |
Implements oofem::Field.
Definition at line 83 of file intvarfield.h.
|
overridevirtual |
Restores the receiver state previously written in stream.
| stream | Input stream. |
| Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 73 of file intvarfield.C.
|
overridevirtual |
Stores receiver state to output stream.
| stream | Output stream. |
| Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 69 of file intvarfield.C.
|
protected |
Source domain.
Definition at line 65 of file intvarfield.h.
Referenced by evaluateAt(), and InternalVariableField().
|
protected |
Material mapping algorithm used.
Definition at line 61 of file intvarfield.h.
Referenced by evaluateAt(), and InternalVariableField().
|
protected |
Definition at line 63 of file intvarfield.h.
Referenced by evaluateAt(), and InternalVariableField().