OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::PrimaryUnknownMapper Class Referenceabstract

The base class for all primary unknowns mappers. More...

#include <primaryunknownmapper.h>

+ Inheritance diagram for oofem::PrimaryUnknownMapper:

Public Member Functions

 PrimaryUnknownMapper ()
 Constructor. More...
 
virtual ~PrimaryUnknownMapper ()
 Destructor. More...
 
virtual int mapAndUpdate (FloatArray &answer, ValueModeType mode, Domain *oldd, Domain *newd, TimeStep *tStep)=0
 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)=0
 Evaluates the vector of primary unknowns, determined by domain, at given point. More...
 

Protected Member Functions

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

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

oofem::PrimaryUnknownMapper::PrimaryUnknownMapper ( )
inline

Constructor.

Definition at line 61 of file primaryunknownmapper.h.

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

Destructor.

Definition at line 63 of file primaryunknownmapper.h.

References oofem::errorInfo().

Member Function Documentation

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.

virtual int oofem::PrimaryUnknownMapper::evaluateAt ( FloatArray answer,
IntArray dofMask,
ValueModeType  mode,
Domain oldd,
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.

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 documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011