OOFEM 3.0
Loading...
Searching...
No Matches
oofem::MMAContainingElementProjection Class Reference

#include <mmacontainingelementprojection.h>

Inheritance diagram for oofem::MMAContainingElementProjection:
Collaboration diagram for oofem::MMAContainingElementProjection:

Public Member Functions

 MMAContainingElementProjection ()
 Constructor.
void __init (Domain *dold, IntArray &type, const FloatArray &coords, Set &sourceElemSet, TimeStep *tStep, bool iCohesiveZoneGP=false) override
void finish (TimeStep *tStep) override
int __mapVariable (FloatArray &answer, const FloatArray &coords, InternalStateType type, TimeStep *tStep) override
int mapStatus (MaterialStatus &oStatus) const override
const char * giveClassName () const override
 Returns class name of the receiver.
Public Member Functions inherited from oofem::MaterialMappingAlgorithm
 MaterialMappingAlgorithm ()
 Constructor.
virtual ~MaterialMappingAlgorithm ()
 Destructor.
void init (Domain *dold, IntArray &varTypes, GaussPoint *gp, Set &sourceElemSet, TimeStep *tStep, bool iCohesiveZoneGP=false)
virtual int mapVariable (FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
virtual void initializeFrom (InputRecord &ir)
virtual void giveInputRecord (DynamicInputRecord &input)
std::string errorInfo (const char *func) const
 Error printing helper.

Protected Attributes

GaussPointsource

Detailed Description

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.

Constructor & Destructor Documentation

◆ MMAContainingElementProjection()

oofem::MMAContainingElementProjection::MMAContainingElementProjection ( )

Member Function Documentation

◆ __init()

void oofem::MMAContainingElementProjection::__init ( Domain * dold,
IntArray & varTypes,
const FloatArray & coords,
Set & sourceElemSet,
TimeStep * tStep,
bool iCohesiveZoneGP = false )
overridevirtual

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.

Parameters
doldOld domain.
varTypesArray of InternalStateType values, identifying all vars to be mapped.
coordsCoordinates of the receiver point.
regionIf > 0 region id of receiver point, if < 0 ignore regions.
tStepTime step.

Implements oofem::MaterialMappingAlgorithm.

Definition at line 48 of file mmacontainingelementprojection.C.

References oofem::Element::computeGlobalCoordinates(), oofem::distance(), oofem::Element::giveDefaultIntegrationRulePtr(), oofem::SpatialLocalizer::giveElementContainingPoint(), oofem::Domain::giveSpatialLocalizer(), OOFEM_ERROR, and source.

◆ __mapVariable()

int oofem::MMAContainingElementProjection::__mapVariable ( FloatArray & answer,
const FloatArray & coords,
InternalStateType type,
TimeStep * tStep )
overridevirtual

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.

Parameters
answerContains result.
typeDetermines the type of internal variable.
coordsCoordinates of receiver point to which mapping occur.
tStepTime step.
Returns
Nonzero if o.k.

Implements oofem::MaterialMappingAlgorithm.

Definition at line 76 of file mmacontainingelementprojection.C.

References source.

◆ finish()

void oofem::MMAContainingElementProjection::finish ( TimeStep * tStep)
inlineoverridevirtual

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.

Parameters
tStepTime step.

Implements oofem::MaterialMappingAlgorithm.

Definition at line 61 of file mmacontainingelementprojection.h.

◆ giveClassName()

const char * oofem::MMAContainingElementProjection::giveClassName ( ) const
inlineoverridevirtual

Returns class name of the receiver.

Implements oofem::MaterialMappingAlgorithm.

Definition at line 67 of file mmacontainingelementprojection.h.

◆ mapStatus()

int oofem::MMAContainingElementProjection::mapStatus ( MaterialStatus & oStatus) const
overridevirtual

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.

Member Data Documentation

◆ source

GaussPoint* oofem::MMAContainingElementProjection::source
protected

Definition at line 53 of file mmacontainingelementprojection.h.

Referenced by __init(), and __mapVariable().


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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011