OOFEM 3.0
Loading...
Searching...
No Matches
oofem::PrimaryUnknownMapper Class Referenceabstract

#include <primaryunknownmapper.h>

Inheritance diagram for oofem::PrimaryUnknownMapper:

Public Member Functions

 PrimaryUnknownMapper ()
 Constructor.
virtual ~PrimaryUnknownMapper ()
 Destructor.
virtual int mapAndUpdate (FloatArray &answer, ValueModeType mode, Domain *oldd, Domain *newd, TimeStep *tStep)=0
virtual int evaluateAt (FloatArray &answer, IntArray &dofMask, ValueModeType mode, Domain *oldd, const FloatArray &coords, IntArray &regList, TimeStep *tStep)=0

Protected Member Functions

std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Detailed Description

The base class for all primary unknowns mappers. The basic task is to map the primary unknowns from one (old) mesh to the new one. If this task requires the special element algorithms, these should be included using interface concept.

Definition at line 57 of file primaryunknownmapper.h.

Constructor & Destructor Documentation

◆ PrimaryUnknownMapper()

oofem::PrimaryUnknownMapper::PrimaryUnknownMapper ( )
inline

Constructor.

Definition at line 61 of file primaryunknownmapper.h.

Referenced by oofem::EIPrimaryUnknownMapper::EIPrimaryUnknownMapper().

◆ ~PrimaryUnknownMapper()

virtual oofem::PrimaryUnknownMapper::~PrimaryUnknownMapper ( )
inlinevirtual

Destructor.

Definition at line 63 of file primaryunknownmapper.h.

Member Function Documentation

◆ errorInfo()

std::string oofem::PrimaryUnknownMapper::errorInfo ( const char * func) const
protected

Returns string for prepending output (used by error reporting macros).

Definition at line 41 of file primaryunknownmapper.C.

Referenced by evaluateAt().

◆ evaluateAt()

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

Implemented in oofem::EIPrimaryUnknownMapper.

References errorInfo().

◆ mapAndUpdate()

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

Implemented in oofem::EIPrimaryUnknownMapper.


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