OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
The class implementing the primary unknown mapper using element interpolation functions. More...
#include <eleminterpunknownmapper.h>
Public Member Functions | |
EIPrimaryUnknownMapper () | |
Constructor. More... | |
virtual | ~EIPrimaryUnknownMapper () |
Destructor. More... | |
virtual int | mapAndUpdate (FloatArray &answer, ValueModeType mode, Domain *oldd, Domain *newd, TimeStep *tStep) |
Maps and updates the vector(s) of primary unknowns from old mesh oldd to new mesh newd. More... | |
virtual int | evaluateAt (FloatArray &answer, IntArray &dofMask, ValueModeType mode, Domain *oldd, FloatArray &coords, IntArray ®List, TimeStep *tStep) |
Evaluates the vector of primary unknowns, determined by domain, at given point. More... | |
Public Member Functions inherited from oofem::PrimaryUnknownMapper | |
PrimaryUnknownMapper () | |
Constructor. More... | |
virtual | ~PrimaryUnknownMapper () |
Destructor. More... | |
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). More... | |
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.
oofem::EIPrimaryUnknownMapper::EIPrimaryUnknownMapper | ( | ) |
Constructor.
Definition at line 46 of file eleminterpunknownmapper.C.
|
inlinevirtual |
Destructor.
Definition at line 56 of file eleminterpunknownmapper.h.
|
virtual |
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.
answer | Contains evaluated unknown vector. |
dofMask | Parameter containing dofIDs of mapped values. |
mode | Determines the type of mode of unknown. |
oldd | Old mesh reference (mesh with unknown field). |
coords | Coordinates of point of interest. |
regList | List of regions where to search, if empty all region search performed. |
tStep | Solution step. |
Implements oofem::PrimaryUnknownMapper.
Definition at line 111 of file eleminterpunknownmapper.C.
References oofem::IntArray::at(), oofem::Element::computeField(), oofem::FloatArray::distance_square(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::Element::giveElementDofIDMask(), oofem::IntArray::giveSize(), oofem::Domain::giveSpatialLocalizer(), oofem::IntArray::isEmpty(), and OOFEM_WARNING.
Referenced by mapAndUpdate().
|
virtual |
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.
answer | Resulting array with primary unknowns. |
mode | Determines the mode of unknown. |
oldd | Old mesh reference. |
newd | New mesh reference. |
tStep | Time step. |
Implements oofem::PrimaryUnknownMapper.
Definition at line 52 of file eleminterpunknownmapper.C.
References oofem::IntArray::at(), oofem::FloatArray::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::IntArray::giveSize(), oofem::IntArray::insertSortedOnce(), oofem::Dof::isPrimaryDof(), OOFEM_ERROR, oofem::IntArray::resize(), oofem::FloatArray::resize(), and oofem::FloatArray::zero().
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), and oofem::HuertaErrorEstimator::solveRefinedWholeProblem().