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

#include <eleminterpunknownmapper.h>

Inheritance diagram for oofem::EIPrimaryUnknownMapper:
Collaboration diagram for oofem::EIPrimaryUnknownMapper:

Public Member Functions

 EIPrimaryUnknownMapper ()
 Constructor.
virtual ~EIPrimaryUnknownMapper ()
 Destructor.
int mapAndUpdate (FloatArray &answer, ValueModeType mode, Domain *oldd, Domain *newd, TimeStep *tStep) override
int evaluateAt (FloatArray &answer, IntArray &dofMask, ValueModeType mode, Domain *oldd, const FloatArray &coords, IntArray &regList, TimeStep *tStep) override
Public Member Functions inherited from oofem::PrimaryUnknownMapper
 PrimaryUnknownMapper ()
 Constructor.
virtual ~PrimaryUnknownMapper ()
 Destructor.

Additional Inherited Members

Protected Member Functions inherited from oofem::PrimaryUnknownMapper
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Detailed Description

The class implementing the primary unknown mapper using element interpolation functions. The basic task is to map the primary unknowns from one (old) mesh to the new one. This task requires the special element algorithms, these are to be included using interface concept.

Definition at line 50 of file eleminterpunknownmapper.h.

Constructor & Destructor Documentation

◆ EIPrimaryUnknownMapper()

oofem::EIPrimaryUnknownMapper::EIPrimaryUnknownMapper ( )

Constructor.

Definition at line 46 of file eleminterpunknownmapper.C.

References oofem::PrimaryUnknownMapper::PrimaryUnknownMapper().

◆ ~EIPrimaryUnknownMapper()

virtual oofem::EIPrimaryUnknownMapper::~EIPrimaryUnknownMapper ( )
inlinevirtual

Destructor.

Definition at line 56 of file eleminterpunknownmapper.h.

Member Function Documentation

◆ evaluateAt()

int oofem::EIPrimaryUnknownMapper::evaluateAt ( FloatArray & answer,
IntArray & dofMask,
ValueModeType mode,
Domain * oldd,
const FloatArray & coords,
IntArray & regList,
TimeStep * tStep )
overridevirtual

Evaluates the vector of primary unknowns, determined by domain, at given point. The physical meaning of primary unknowns mapped is determined by background. element containing given point.

Parameters
answerContains evaluated unknown vector.
dofMaskParameter containing dofIDs of mapped values.
modeDetermines the type of mode of unknown.
olddOld mesh reference (mesh with unknown field).
coordsCoordinates of point of interest.
regListList of regions where to search, if empty all region search performed.
tStepSolution step.
Returns
Nonzero if o.k.

Implements oofem::PrimaryUnknownMapper.

Definition at line 111 of file eleminterpunknownmapper.C.

References oofem::IntArray::at(), oofem::Element::computeField(), oofem::distance(), oofem::distance_square(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::Element::giveElementDofIDMask(), oofem::IntArray::giveSize(), oofem::Domain::giveSpatialLocalizer(), oofem::IntArray::isEmpty(), and OOFEM_WARNING.

Referenced by mapAndUpdate().

◆ mapAndUpdate()

int oofem::EIPrimaryUnknownMapper::mapAndUpdate ( FloatArray & answer,
ValueModeType mode,
Domain * oldd,
Domain * newd,
TimeStep * tStep )
overridevirtual

Maps and updates the vector(s) of primary unknowns from old mesh oldd to new mesh newd. The result is stored in answer array. The interpolation of the primary unknowns is determined by element interpolation. The physical meaning of primary unknowns is determined by DofManagers. The ordering of unknowns in answer is determined by code numbers of new mesh dofmanagers.

Parameters
answerResulting array with primary unknowns.
modeDetermines the mode of unknown.
olddOld mesh reference.
newdNew mesh reference.
tStepTime step.
Returns
Nonzero if o.k.
Todo
Shouldn't we pass a primary field or something to this function?
Todo
This doesn't respect local coordinate systems in nodes. Supporting that would require major reworking.

Implements oofem::PrimaryUnknownMapper.

Definition at line 52 of file eleminterpunknownmapper.C.

References oofem::FloatArray::at(), oofem::IntArray::at(), oofem::IntArray::clear(), oofem::DofManager_local, oofem::DofManager_shared, oofem::DofManager::end(), evaluateAt(), oofem::DofManager::findDofWithDofId(), oofem::Domain::giveConnectivityTable(), oofem::DofManager::giveCoordinates(), oofem::ConnectivityTable::giveDofManConnectivityArray(), oofem::Domain::giveElement(), oofem::Domain::giveEngngModel(), oofem::Dof::giveEquationNumber(), oofem::Domain::giveNode(), oofem::Domain::giveNumber(), oofem::Domain::giveNumberOfDofManagers(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::DofManager::giveParallelMode(), oofem::Element::giveRegionNumber(), oofem::IntArray::giveSize(), oofem::IntArray::insertSortedOnce(), oofem::Dof::isPrimaryDof(), OOFEM_ERROR, oofem::FloatArray::resize(), oofem::IntArray::resize(), and oofem::FloatArray::zero().

Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), and oofem::HuertaErrorEstimator::solveRefinedWholeProblem().


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