|
OOFEM 3.0
|
#include <smoothednodalintvarfield.h>
Public Member Functions | |
| SmoothedNodalInternalVariableField (InternalStateType ist, FieldType b, NodalRecoveryModel ::NodalRecoveryModelType st, Domain *d) | |
| virtual | ~SmoothedNodalInternalVariableField () |
| int | evaluateAt (FloatArray &answer, const FloatArray &coords, ValueModeType mode, TimeStep *tStep) override |
| int | evaluateAt (FloatArray &answer, DofManager *dman, ValueModeType mode, TimeStep *tStep) override |
| InternalStateType | giveInternalType () |
| 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 | |
| NodalRecoveryModel::NodalRecoveryModelType | stype |
| Smoother type. | |
| std::unique_ptr< NodalRecoveryModel > | smoother |
| Smoother. | |
| InternalStateType | istType |
| InternalStateType. | |
| Domain * | domain |
| Source domain. | |
| Set | elemSet |
| set of elements for recovery | |
| Protected Attributes inherited from oofem::Field | |
| FieldType | type |
| IntArray | regionSets |
Class representing a field of an internal variable smoothed from integration points into nodes. It is relying on NodalRecoveryModel to smooth the data.
Definition at line 48 of file smoothednodalintvarfield.h.
| oofem::SmoothedNodalInternalVariableField::SmoothedNodalInternalVariableField | ( | InternalStateType | ist, |
| FieldType | b, | ||
| NodalRecoveryModel ::NodalRecoveryModelType | st, | ||
| Domain * | d ) |
Constructor. Creates a internal variable field of given type associated to given domain.
| ist | Physical meaning of field. |
| b | Field type. |
| st | Determines the type of nodal recovery model used. |
| d | Domain which field belongs to. |
Definition at line 44 of file smoothednodalintvarfield.C.
References oofem::classFactory, domain, elemSet, oofem::Field::Field(), istType, smoother, and stype.
|
virtual |
Definition at line 53 of file smoothednodalintvarfield.C.
|
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,...). |
Implements oofem::Field.
Definition at line 56 of file smoothednodalintvarfield.C.
References oofem::FloatArray::add(), oofem::FloatArray::at(), domain, elemSet, oofem::FEInterpolation::evalN(), oofem::Element::giveDofManagerNumber(), oofem::Element::giveInterpolation(), oofem::FloatArray::giveSize(), oofem::FEInterpolation::global2local(), istType, and smoother.
|
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 92 of file smoothednodalintvarfield.C.
References elemSet, oofem::FEMComponent::giveNumber(), istType, and smoother.
|
inlineoverridevirtual |
Implements oofem::Field.
Definition at line 79 of file smoothednodalintvarfield.h.
|
inline |
Definition at line 76 of file smoothednodalintvarfield.h.
References istType.
|
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 109 of file smoothednodalintvarfield.C.
|
overridevirtual |
Stores receiver state to output stream.
| stream | Output stream. |
| Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 104 of file smoothednodalintvarfield.C.
|
protected |
Source domain.
Definition at line 58 of file smoothednodalintvarfield.h.
Referenced by evaluateAt(), and SmoothedNodalInternalVariableField().
|
protected |
set of elements for recovery
Definition at line 60 of file smoothednodalintvarfield.h.
Referenced by evaluateAt(), evaluateAt(), and SmoothedNodalInternalVariableField().
|
protected |
Definition at line 56 of file smoothednodalintvarfield.h.
Referenced by evaluateAt(), evaluateAt(), giveInternalType(), and SmoothedNodalInternalVariableField().
|
protected |
Smoother.
Definition at line 54 of file smoothednodalintvarfield.h.
Referenced by evaluateAt(), evaluateAt(), and SmoothedNodalInternalVariableField().
|
protected |
Smoother type.
Definition at line 52 of file smoothednodalintvarfield.h.
Referenced by SmoothedNodalInternalVariableField().