OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Class representing a field of an internal variable smoothed from integration points into nodes. More...
#include <smoothednodalintvarfield.h>
Public Member Functions | |
SmoothedNodalInternalVariableField (InternalStateType ist, FieldType b, NodalRecoveryModel::NodalRecoveryModelType st, Domain *d) | |
Constructor. More... | |
virtual | ~SmoothedNodalInternalVariableField () |
virtual int | evaluateAt (FloatArray &answer, const FloatArray &coords, ValueModeType mode, TimeStep *tStep) |
Evaluates the field at given point. More... | |
virtual int | evaluateAt (FloatArray &answer, DofManager *dman, ValueModeType mode, TimeStep *tStep) |
Evaluates the field at given DofManager. More... | |
InternalStateType | giveInternalType () |
virtual contextIOResultType | saveContext (DataStream &stream, ContextMode mode) |
Stores receiver state to output stream. More... | |
virtual contextIOResultType | restoreContext (DataStream &stream, ContextMode mode) |
Restores the receiver state previously written in stream. More... | |
virtual const char * | giveClassName () const |
Public Member Functions inherited from oofem::Field | |
Field (FieldType b) | |
Constructor. More... | |
virtual | ~Field () |
FieldType | giveType () |
Returns the type of receiver. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
NodalRecoveryModel::NodalRecoveryModelType | stype |
Smoother type. More... | |
NodalRecoveryModel * | smoother |
Smoother. More... | |
InternalStateType | istType |
InternalStateType. More... | |
Domain * | domain |
Source domain. More... | |
Protected Attributes inherited from oofem::Field | |
FieldType | type |
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, oofem::ClassFactory::createNodalRecoveryModel(), domain, istType, smoother, and stype.
|
virtual |
Definition at line 52 of file smoothednodalintvarfield.C.
References smoother.
|
virtual |
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 60 of file smoothednodalintvarfield.C.
References oofem::FloatArray::add(), oofem::Set::addAllElements(), oofem::FloatArray::at(), domain, oofem::FEInterpolation::evalN(), oofem::Element::giveDofManagerNumber(), oofem::SpatialLocalizer::giveElementContainingPoint(), oofem::Element::giveInterpolation(), oofem::NodalRecoveryModel::giveNodalVector(), oofem::FloatArray::giveSize(), oofem::Domain::giveSpatialLocalizer(), oofem::FEInterpolation::global2local(), istType, oofem::NodalRecoveryModel::recoverValues(), and smoother.
|
virtual |
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 100 of file smoothednodalintvarfield.C.
References oofem::NodalRecoveryModel::giveNodalVector(), oofem::FEMComponent::giveNumber(), oofem::DofManager::hasCoordinates(), and smoother.
|
inlinevirtual |
Implements oofem::Field.
Definition at line 77 of file smoothednodalintvarfield.h.
|
inline |
Definition at line 74 of file smoothednodalintvarfield.h.
|
virtual |
Restores the receiver state previously written in stream.
Reads the FEMComponent class-id in order to allow test consistency.
stream | Input stream. |
mode | Determines amount of info in stream (state, definition,...). |
Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 119 of file smoothednodalintvarfield.C.
References oofem::CIO_OK.
|
virtual |
Stores receiver state to output stream.
Writes the FEMComponent class-id in order to allow test whether correct data are then restored.
stream | Output stream. |
mode | Determines amount of info in stream (state, definition,...). |
Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 113 of file smoothednodalintvarfield.C.
References oofem::CIO_OK.
|
protected |
Source domain.
Definition at line 58 of file smoothednodalintvarfield.h.
Referenced by evaluateAt(), and SmoothedNodalInternalVariableField().
|
protected |
InternalStateType.
Definition at line 56 of file smoothednodalintvarfield.h.
Referenced by evaluateAt(), and SmoothedNodalInternalVariableField().
|
protected |
Smoother.
Definition at line 54 of file smoothednodalintvarfield.h.
Referenced by evaluateAt(), SmoothedNodalInternalVariableField(), and ~SmoothedNodalInternalVariableField().
|
protected |
Smoother type.
Definition at line 52 of file smoothednodalintvarfield.h.
Referenced by SmoothedNodalInternalVariableField().