OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
The class implements the transfer of internal variables based on containing element The element containing the receiving Gauss point is localized and its closest Gauss point is used as a source Gauss point that determines the values of receiver. More...
#include <mmacontainingelementprojection.h>
Public Member Functions | |
MMAContainingElementProjection () | |
Constructor. More... | |
virtual void | __init (Domain *dold, IntArray &type, const FloatArray &coords, Set &sourceElemSet, TimeStep *tStep, bool iCohesiveZoneGP=false) |
Initializes the receiver state before mapping. More... | |
virtual void | finish (TimeStep *tStep) |
Finishes the mapping for given time step. More... | |
virtual int | __mapVariable (FloatArray &answer, const FloatArray &coords, InternalStateType type, TimeStep *tStep) |
Maps and update the unknown of given type from old mesh oldd to new mesh to which gp belongs to. More... | |
virtual int | mapStatus (MaterialStatus &oStatus) const |
Initializes receiver according to object description stored in input record. More... | |
virtual const char * | giveClassName () const |
Returns class name of the receiver. More... | |
Public Member Functions inherited from oofem::MaterialMappingAlgorithm | |
MaterialMappingAlgorithm () | |
Constructor. More... | |
virtual | ~MaterialMappingAlgorithm () |
Destructor. More... | |
void | init (Domain *dold, IntArray &varTypes, GaussPoint *gp, Set &sourceElemSet, TimeStep *tStep, bool iCohesiveZoneGP=false) |
Initializes the receiver state before mapping. More... | |
virtual int | mapVariable (FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) |
Maps and update the unknown of given type from old mesh oldd to new mesh to which gp belongs to. More... | |
virtual IRResultType | initializeFrom (InputRecord *ir) |
virtual void | giveInputRecord (DynamicInputRecord &input) |
Setups the input record of receiver. More... | |
std::string | errorInfo (const char *func) const |
Error printing helper. More... | |
Protected Attributes | |
GaussPoint * | source |
The class implements the transfer of internal variables based on containing element The element containing the receiving Gauss point is localized and its closest Gauss point is used as a source Gauss point that determines the values of receiver.
Definition at line 50 of file mmacontainingelementprojection.h.
oofem::MMAContainingElementProjection::MMAContainingElementProjection | ( | ) |
Constructor.
Definition at line 44 of file mmacontainingelementprojection.C.
|
virtual |
Initializes the receiver state before mapping.
The idea is to place some common global operations before mapping particular IP's if necessary. Stores Times stamp of last initialization, so multiple calls for same step do not initialize receiver again.
dold | Old domain. |
varTypes | Array of InternalStateType values, identifying all vars to be mapped. |
coords | Coordinates of the receiver point. |
region | If > 0 region id of receiver point, if < 0 ignore regions. |
tStep | Time step. |
Implements oofem::MaterialMappingAlgorithm.
Definition at line 48 of file mmacontainingelementprojection.C.
References oofem::Element::computeGlobalCoordinates(), oofem::FloatArray::distance(), oofem::Element::giveDefaultIntegrationRulePtr(), oofem::SpatialLocalizer::giveElementContainingPoint(), oofem::Domain::giveSpatialLocalizer(), OOFEM_ERROR, and source.
|
virtual |
Maps and update the unknown of given type from old mesh oldd to new mesh to which gp belongs to.
The result is stored in answer array.
answer | Contains result. |
type | Determines the type of internal variable. |
coords | Coordinates of receiver point to which mapping occur. |
tStep | Time step. |
Implements oofem::MaterialMappingAlgorithm.
Definition at line 76 of file mmacontainingelementprojection.C.
References oofem::Material::giveIPValue(), oofem::GaussPoint::giveMaterial(), and source.
|
inlinevirtual |
Finishes the mapping for given time step.
Used to perform cleanup. Typically some mappers require to compute some global mesh data related to current step, which are valid for all IPs - so they are computed only once for all IPs.
tStep | Time step. |
Implements oofem::MaterialMappingAlgorithm.
Definition at line 61 of file mmacontainingelementprojection.h.
Referenced by oofem::IsotropicDamageMaterial1::MMI_finish().
|
inlinevirtual |
Returns class name of the receiver.
Implements oofem::MaterialMappingAlgorithm.
Definition at line 67 of file mmacontainingelementprojection.h.
|
virtual |
Initializes receiver according to object description stored in input record.
InitString can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record. Map all internal state variables in one stroke.
Implements oofem::MaterialMappingAlgorithm.
Definition at line 88 of file mmacontainingelementprojection.C.
References OOFEM_ERROR.
|
protected |
Definition at line 53 of file mmacontainingelementprojection.h.
Referenced by __init(), and __mapVariable().