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

#include <elementside.h>

Inheritance diagram for oofem::ElementSide:
Collaboration diagram for oofem::ElementSide:

Public Member Functions

 ElementSide (int n, Domain *aDomain)
virtual ~ElementSide ()
 Destructor.
const char * giveClassName () const override
const char * giveInputRecordName () const override
void printYourself () override
 Prints receiver state on stdout. Useful for debugging.
virtual void computeTransformation (FloatMatrix &answer, const IntArray *dofIDArry)
bool requiresTransformation () 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 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).

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 element side having some DOFs in finite element mesh. ElementSide possess degrees of freedom (see base class DofManager). ElementSide id usually attribute of few elements and is managed by domain.

Tasks:

  • managing its degrees of freedom (giveDof).
  • calculating its load vector.
  • printing and updating at end of step.
  • managing its swapping to and from disk.

Definition at line 60 of file elementside.h.

Constructor & Destructor Documentation

◆ ElementSide()

oofem::ElementSide::ElementSide ( int n,
Domain * aDomain )

Constructor. Creates a element side belonging to domain.

Parameters
nSide number in domain aDomain
aDomainDomain to which side belongs

Definition at line 45 of file elementside.C.

References oofem::DofManager::DofManager().

◆ ~ElementSide()

oofem::ElementSide::~ElementSide ( )
virtual

Destructor.

Definition at line 50 of file elementside.C.

Member Function Documentation

◆ computeTransformation()

void oofem::ElementSide::computeTransformation ( FloatMatrix & answer,
const IntArray * dofIDArry )
virtual

Computes receiver transformation matrix from global cs. to dofManager specific coordinate system (in which governing equations are assembled, for example the local coordinate system in node).

Parameters
answerComputed transformation matrix. It has generally dofIDArry.size rows and if loc is obtained using giveLocationArray(dofIDArry, loc) call, loc.giveSize() columns. This is because this transformation should generally include not only transformation to dof manager local coordinate system, but receiver dofs can be expressed using dofs of another dofManager (In this case, square answer is produced only if all dof transformation is required).
dofIDArryArray containing DofIDItem values for which transformation matrix is assembled. If dofIDArry is NULL, then all receiver dofs are assumed.

Definition at line 66 of file elementside.C.

References oofem::FloatMatrix::beUnitMatrix(), oofem::DofManager::giveNumberOfDofs(), oofem::IntArray::giveSize(), oofem::FloatMatrix::resize(), and oofem::FloatMatrix::zero().

◆ giveClassName()

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

Reimplemented from oofem::DofManager.

Definition at line 72 of file elementside.h.

◆ giveInputRecordName()

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

Reimplemented from oofem::DofManager.

Definition at line 73 of file elementside.h.

References _IFT_ElementSide_Name.

◆ isDofTypeCompatible()

bool oofem::ElementSide::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 91 of file elementside.h.

◆ printYourself()

void oofem::ElementSide::printYourself ( )
overridevirtual

Prints receiver state on stdout. Useful for debugging.

Reimplemented from oofem::DofManager.

Definition at line 53 of file elementside.C.

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

◆ requiresTransformation()

bool oofem::ElementSide::requiresTransformation ( )
inlineoverridevirtual

Indicates, whether dofManager requires the transformation.

Returns
Nonzero if transformation is necessary, even for single dof.

Reimplemented from oofem::DofManager.

Definition at line 90 of file elementside.h.


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