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

#include <elementinternaldofman.h>

Inheritance diagram for oofem::ElementDofManager:
Collaboration diagram for oofem::ElementDofManager:

Public Member Functions

 ElementDofManager (int n, Domain *aDomain, Element *elem)
virtual ~ElementDofManager ()
 Destructor.
void printYourself () override
 Prints receiver state on stdout. Useful for debugging.
const char * giveClassName () const override
const char * giveInputRecordName () const override
bool isDofTypeCompatible (dofType type) const override
 Returns true if dof of given type is allowed to be associated to receiver.
Public Member Functions inherited from oofem::DofManager
std::vector< Dof * >::iterator begin ()
std::vector< Dof * >::iterator end ()
std::vector< Dof * >::const_iterator begin () const
std::vector< Dof * >::const_iterator end () const
 DofManager (int n, Domain *aDomain)
virtual ~DofManager ()
 Destructor.
DofgiveDofWithID (int dofID) const
int giveNumberOfDofs () const
void askNewEquationNumbers (TimeStep *tStep)
 Renumbers all contained DOFs.
int giveNumberOfPrimaryMasterDofs (const IntArray &dofIDArray) const
void giveLocationArray (const IntArray &dofIDArry, IntArray &locationArray, const UnknownNumberingScheme &s) const
void giveMasterDofIDArray (const IntArray &dofIDArry, IntArray &masterDofIDs) const
void giveCompleteLocationArray (IntArray &locationArray, const UnknownNumberingScheme &s) const
void giveCompleteMasterDofIDArray (IntArray &dofIDArray) const
std::vector< Dof * >::const_iterator findDofWithDofId (DofIDItem dofID) const
void giveUnknownVector (FloatArray &answer, const IntArray &dofMask, ValueModeType mode, TimeStep *tStep, bool padding=false)
void giveUnknownVector (FloatArray &answer, const IntArray &dofMask, PrimaryField &field, ValueModeType mode, TimeStep *tStep, bool padding=false)
void giveCompleteUnknownVector (FloatArray &answer, ValueModeType mode, TimeStep *tStep)
void giveUnknownVectorOfType (FloatArray &answer, UnknownType ut, ValueModeType mode, TimeStep *tStep)
virtual void givePrescribedUnknownVector (FloatArray &answer, const IntArray &dofMask, ValueModeType mode, TimeStep *tStep)
bool computeM2GTransformation (FloatMatrix &answer, const IntArray &dofIDArry)
virtual bool computeL2GTransformation (FloatMatrix &answer, const IntArray &dofIDArry)
virtual bool computeM2LTransformation (FloatMatrix &answer, const IntArray &dofIDArry)
virtual bool requiresTransformation ()
virtual void computeLoadVector (FloatArray &answer, Load *load, CharType type, TimeStep *tStep, ValueModeType mode)
IntArraygiveLoadArray ()
void setLoadArray (IntArray &load)
double giveCoordinate (int i) const
const FloatArraygiveCoordinates () const
void setCoordinates (const FloatArray &coords)
 Set coordinates.
const IntArraygiveForcedDofIDs ()
std ::map< int, int > * giveDofTypeMap ()
std ::map< int, int > * giveMasterMap ()
std ::map< int, int > * giveBcMap ()
std ::map< int, int > * giveIcMap ()
void printOutputAt (FILE *file, TimeStep *tStep) override
virtual void updateYourself (TimeStep *tStep)
bool isBoundary ()
void setBoundaryFlag (bool isBoundary)
virtual bool hasAnySlaveDofs ()
virtual bool giveMasterDofMans (IntArray &masters)
void initializeFrom (InputRecord &ir) override
void initializeFrom (InputRecord &ir, int priority) override
void initializeFinish () override
void postInitialize () override
 Performs post initialization steps. Called after all components are created and initialized.
void giveInputRecord (DynamicInputRecord &input) override
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
void updateLocalNumbering (EntityRenumberingFunctor &f) override
void setNumberOfDofs (int _ndofs)
void appendDof (Dof *dof)
void removeDof (DofIDItem id)
bool hasDofID (DofIDItem id) const
virtual void drawYourself (oofegGraphicContext &gc, TimeStep *tStep)
int giveGlobalNumber () const
int giveLabel () const
void setGlobalNumber (int newNumber)
dofManagerParallelMode giveParallelMode () const
void setParallelMode (dofManagerParallelMode _mode)
const IntArraygivePartitionList ()
void setPartitionList (const IntArray *_p)
void removePartitionFromList (int _part)
 Removes given partition from receiver list.
void mergePartitionList (IntArray &_p)
 Merges receiver partition list with given lists.
int givePartitionsConnectivitySize ()
bool isLocal ()
 Returns true if receiver is locally maintained.
bool isShared ()
 Returns true if receiver is shared.
bool isNull ()
 Returns true if receiver is shared.
Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
virtual ~FEMComponent ()=default
 Virtual destructor.
DomaingiveDomain () const
virtual void setDomain (Domain *d)
int giveNumber () const
void setNumber (int num)
virtual int checkConsistency ()
virtual InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Private Attributes

Elementelement

Additional Inherited Members

Static Public Attributes inherited from oofem::DofManager
static ParamKey IPK_DofManager_dofidmask
static ParamKey IPK_DofManager_load
static ParamKey IPK_DofManager_bc
static ParamKey IPK_DofManager_ic
static ParamKey IPK_DofManager_mastermask
static ParamKey IPK_DofManager_doftypemask
static ParamKey IPK_DofManager_boundaryflag
static ParamKey IPK_DofManager_globnum
static ParamKey IPK_DofManager_partitions
static ParamKey IPK_DofManager_sharedflag
static ParamKey IPK_DofManager_remoteflag
static ParamKey IPK_DofManager_nullflag
Protected Attributes inherited from oofem::DofManager
FloatArray coordinates
 Array storing nodal coordinates.
std::vector< Dof * > dofArray
 Array of DOFs.
IntArray loadArray
 List of applied loads.
bool isBoundaryFlag
bool hasSlaveDofs
 Flag indicating whether receiver has slave DOFs.
int globalNumber
dofManagerParallelMode parallel_mode
IntArray partitions
IntArray dofidmask
 List of additional dof ids to include.
std ::map< int, int > dofTypemap
 Map from DofIDItem to dofType.
std ::map< int, int > dofMastermap
 Map from DofIDItem to master node.
std ::map< int, int > dofBCmap
 Map from DofIDItem to bc (to be removed).
std ::map< int, int > dofICmap
 Map from DofIDItem to ic (to be removed).
IntArray mBC
Protected Attributes inherited from oofem::FEMComponent
int number
 Component number.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Detailed Description

Class implementing internal element dof manager having some DOFs. It possess degrees of freedom (see base class DofManager). This class is usually attribute only of a single element, as its DOFs are internal element degrees of freedom.

Definition at line 54 of file elementinternaldofman.h.

Constructor & Destructor Documentation

◆ ElementDofManager()

oofem::ElementDofManager::ElementDofManager ( int n,
Domain * aDomain,
Element * elem )

Constructor.

Parameters
nElement dof manager number.
aDomainDomain which receiver belongs to.
elemElement to which receiver belongs.

Definition at line 41 of file elementinternaldofman.C.

References oofem::DofManager::DofManager(), and element.

◆ ~ElementDofManager()

oofem::ElementDofManager::~ElementDofManager ( )
virtual

Destructor.

Definition at line 48 of file elementinternaldofman.C.

Member Function Documentation

◆ giveClassName()

const char * oofem::ElementDofManager::giveClassName ( ) const
inlineoverridevirtual
Returns
Class name of the receiver.

Reimplemented from oofem::DofManager.

Definition at line 71 of file elementinternaldofman.h.

◆ giveInputRecordName()

const char * oofem::ElementDofManager::giveInputRecordName ( ) const
inlineoverridevirtual
Returns
Input record name of the receiver.

Reimplemented from oofem::DofManager.

Definition at line 72 of file elementinternaldofman.h.

◆ isDofTypeCompatible()

bool oofem::ElementDofManager::isDofTypeCompatible ( dofType type) const
inlineoverridevirtual

Returns true if dof of given type is allowed to be associated to receiver.

Reimplemented from oofem::DofManager.

Definition at line 74 of file elementinternaldofman.h.

◆ printYourself()

void oofem::ElementDofManager::printYourself ( )
overridevirtual

Prints receiver state on stdout. Useful for debugging.

Reimplemented from oofem::DofManager.

Definition at line 52 of file elementinternaldofman.C.

References oofem::DofManager::loadArray, oofem::FEMComponent::number, and oofem::Dof::printYourself().

Member Data Documentation

◆ element

Element* oofem::ElementDofManager::element
private

Definition at line 57 of file elementinternaldofman.h.

Referenced by ElementDofManager().


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