OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::SmoothedNodalInternalVariableField Class Reference

Class representing a field of an internal variable smoothed from integration points into nodes. More...

#include <smoothednodalintvarfield.h>

+ Inheritance diagram for oofem::SmoothedNodalInternalVariableField:
+ Collaboration diagram for oofem::SmoothedNodalInternalVariableField:

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...
 
NodalRecoveryModelsmoother
 Smoother. More...
 
InternalStateType istType
 InternalStateType. More...
 
Domaindomain
 Source domain. More...
 
- Protected Attributes inherited from oofem::Field
FieldType type
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
istPhysical meaning of field.
bField type.
stDetermines the type of nodal recovery model used.
dDomain which field belongs to.

Definition at line 44 of file smoothednodalintvarfield.C.

References oofem::classFactory, oofem::ClassFactory::createNodalRecoveryModel(), domain, istType, smoother, and stype.

oofem::SmoothedNodalInternalVariableField::~SmoothedNodalInternalVariableField ( )
virtual

Definition at line 52 of file smoothednodalintvarfield.C.

References smoother.

Member Function Documentation

int oofem::SmoothedNodalInternalVariableField::evaluateAt ( FloatArray answer,
const FloatArray coords,
ValueModeType  mode,
TimeStep tStep 
)
virtual
int oofem::SmoothedNodalInternalVariableField::evaluateAt ( FloatArray answer,
DofManager dman,
ValueModeType  mode,
TimeStep tStep 
)
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.

Parameters
[out]answerEvaluated field for dman.
dmanReference to dofManager.
modeMode of value (total, velocity,...).
tStepTime step to evaluate for.
Returns
Zero if ok, nonzero Error code (0-ok, 1-failed)

Implements oofem::Field.

Definition at line 100 of file smoothednodalintvarfield.C.

References oofem::NodalRecoveryModel::giveNodalVector(), oofem::FEMComponent::giveNumber(), oofem::DofManager::hasCoordinates(), and smoother.

virtual const char* oofem::SmoothedNodalInternalVariableField::giveClassName ( ) const
inlinevirtual
Returns
Class name of the receiver.

Implements oofem::Field.

Definition at line 77 of file smoothednodalintvarfield.h.

InternalStateType oofem::SmoothedNodalInternalVariableField::giveInternalType ( )
inline

Definition at line 74 of file smoothednodalintvarfield.h.

contextIOResultType oofem::SmoothedNodalInternalVariableField::restoreContext ( DataStream stream,
ContextMode  mode 
)
virtual

Restores the receiver state previously written in stream.

Reads the FEMComponent class-id in order to allow test consistency.

Parameters
streamInput stream.
modeDetermines amount of info in stream (state, definition,...).
Returns
contextIOResultType.
Exceptions
Throwsan ContextIOERR exception if error encountered.

Implements oofem::Field.

Definition at line 119 of file smoothednodalintvarfield.C.

References oofem::CIO_OK.

contextIOResultType oofem::SmoothedNodalInternalVariableField::saveContext ( DataStream stream,
ContextMode  mode 
)
virtual

Stores receiver state to output stream.

Writes the FEMComponent class-id in order to allow test whether correct data are then restored.

Parameters
streamOutput stream.
modeDetermines amount of info in stream (state, definition,...).
Returns
contextIOResultType.
Exceptions
Throwsan ContextIOERR exception if error encountered.

Implements oofem::Field.

Definition at line 113 of file smoothednodalintvarfield.C.

References oofem::CIO_OK.

Member Data Documentation

Domain* oofem::SmoothedNodalInternalVariableField::domain
protected

Source domain.

Definition at line 58 of file smoothednodalintvarfield.h.

Referenced by evaluateAt(), and SmoothedNodalInternalVariableField().

InternalStateType oofem::SmoothedNodalInternalVariableField::istType
protected

InternalStateType.

Definition at line 56 of file smoothednodalintvarfield.h.

Referenced by evaluateAt(), and SmoothedNodalInternalVariableField().

NodalRecoveryModel* oofem::SmoothedNodalInternalVariableField::smoother
protected
NodalRecoveryModel :: NodalRecoveryModelType oofem::SmoothedNodalInternalVariableField::stype
protected

Smoother type.

Definition at line 52 of file smoothednodalintvarfield.h.

Referenced by SmoothedNodalInternalVariableField().


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:41 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011