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

The class implementing the primary unknown mapper using element interpolation functions. More...

#include <eleminterpunknownmapper.h>

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

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 &regList, 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...
 

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

oofem::EIPrimaryUnknownMapper::EIPrimaryUnknownMapper ( )

Constructor.

Definition at line 46 of file eleminterpunknownmapper.C.

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

Destructor.

Definition at line 56 of file eleminterpunknownmapper.h.

Member Function Documentation

int oofem::EIPrimaryUnknownMapper::evaluateAt ( FloatArray answer,
IntArray dofMask,
ValueModeType  mode,
Domain oldd,
FloatArray coords,
IntArray regList,
TimeStep tStep 
)
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.

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::FloatArray::distance_square(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::Element::giveElementDofIDMask(), oofem::IntArray::giveSize(), oofem::Domain::giveSpatialLocalizer(), oofem::IntArray::isEmpty(), and OOFEM_WARNING.

Referenced by mapAndUpdate().

int oofem::EIPrimaryUnknownMapper::mapAndUpdate ( FloatArray answer,
ValueModeType  mode,
Domain oldd,
Domain newd,
TimeStep tStep 
)
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.

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::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().


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:35 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011