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

#include <latticedirichletcouplingnode.h>

Inheritance diagram for oofem::LatticeDirichletCouplingNode:
Collaboration diagram for oofem::LatticeDirichletCouplingNode:

Public Member Functions

 LatticeDirichletCouplingNode (int n, Domain *aDomain)
 ~LatticeDirichletCouplingNode ()
const char * giveClassName () const override
void initializeFrom (InputRecord &ir, int priority) override
void postInitialize () override
 Performs post initialization steps. Called after all components are created and initialized.
IntArraygiveCouplingNodes ()
IntArraygiveCouplingElements ()
virtual void giveUnknownVector (FloatArray &answer, const IntArray &dofMask, ValueModeType mode, TimeStep *stepN, bool padding=false)
double giveUnknown (ValueModeType mode, TimeStep *stepN)
double computeUnknownCouplingContribution (TimeStep *stepN)
void printOutputAt (FILE *stream, TimeStep *stepN) override
void printYourself () override
 Prints receiver state on stdout. Useful for debugging.
Public Member Functions inherited from oofem::Node
 Node (int n, Domain *aDomain)
void setCoordinates (FloatArray coords)
virtual double giveUpdatedCoordinate (int ic, TimeStep *tStep, double scale=1.)
virtual void giveUpdatedCoordinates (FloatArray &answer, TimeStep *tStep, double scale=1.)
bool hasLocalCS ()
 Returns nonzero if node has prescribed local coordinate system.
FloatMatrixgiveLocalCoordinateTriplet ()
bool hasSameLCS (Node *remote)
bool computeL2GTransformation (FloatMatrix &answer, const IntArray &dofIDArry) override
bool requiresTransformation () override
void computeLoadVector (FloatArray &answer, Load *load, CharType type, TimeStep *tStep, ValueModeType mode) override
void updateYourself (TimeStep *tStep) override
const char * giveClassName () const override
const char * giveInputRecordName () const override
void initializeFrom (InputRecord &ir) override
void initializeFrom (InputRecord &ir, int priority) override
void initializeFinish () override
 Performs post initialization steps.
void giveInputRecord (DynamicInputRecord &input) override
void printYourself () override
 Prints receiver state on stdout. Useful for debugging.
int checkConsistency () override
bool isDofTypeCompatible (dofType type) const override
 Returns true if dof of given type is allowed to be associated to receiver.
virtual int giveQcNodeType ()
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
void drawYourself (oofegGraphicContext &gc, TimeStep *tStep) override
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 computeM2LTransformation (FloatMatrix &answer, const IntArray &dofIDArry)
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 ()
bool isBoundary ()
void setBoundaryFlag (bool isBoundary)
virtual bool hasAnySlaveDofs ()
virtual bool giveMasterDofMans (IntArray &masters)
void updateLocalNumbering (EntityRenumberingFunctor &f) override
void setNumberOfDofs (int _ndofs)
void appendDof (Dof *dof)
void removeDof (DofIDItem id)
bool hasDofID (DofIDItem id) const
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 InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Protected Attributes

IntArray couplingElements
 Array storing nodal coordinates.
int couplingType
double activedirichletbc
Protected Attributes inherited from oofem::Node
std::unique_ptr< FloatMatrixlocalCoordinateSystem
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.

Static Protected Attributes

static ParamKey IPK_LatticeDirichletCouplingNode_couplingelements
Static Protected Attributes inherited from oofem::Node
static ParamKey IPK_Node_lcs
static ParamKey IPK_Node_coords

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

Detailed Description

Class implementing lattice coupling node This DOF manager is based on the standard node but allows to read in associated DOFs and elements which are used to calculated coupling forces

Definition at line 63 of file latticedirichletcouplingnode.h.

Constructor & Destructor Documentation

◆ LatticeDirichletCouplingNode()

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

Definition at line 69 of file latticedirichletcouplingnode.C.

References oofem::Node::Node().

◆ ~LatticeDirichletCouplingNode()

oofem::LatticeDirichletCouplingNode::~LatticeDirichletCouplingNode ( )

Definition at line 73 of file latticedirichletcouplingnode.C.

Member Function Documentation

◆ computeUnknownCouplingContribution()

◆ giveClassName()

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

Reimplemented from oofem::DofManager.

Definition at line 79 of file latticedirichletcouplingnode.h.

Referenced by printOutputAt().

◆ giveCouplingElements()

IntArray * oofem::LatticeDirichletCouplingNode::giveCouplingElements ( )

◆ giveCouplingNodes()

IntArray * oofem::LatticeDirichletCouplingNode::giveCouplingNodes ( )

◆ giveUnknown()

double oofem::LatticeDirichletCouplingNode::giveUnknown ( ValueModeType mode,
TimeStep * stepN )

◆ giveUnknownVector()

◆ initializeFrom()

void oofem::LatticeDirichletCouplingNode::initializeFrom ( InputRecord & ir,
int priority )
overridevirtual

◆ postInitialize()

void oofem::LatticeDirichletCouplingNode::postInitialize ( )
overridevirtual

Performs post initialization steps. Called after all components are created and initialized.

Reimplemented from oofem::DofManager.

Definition at line 89 of file latticedirichletcouplingnode.C.

References oofem::FEMComponent::giveDomain(), IPK_LatticeDirichletCouplingNode_couplingelements, oofem::FEMComponent::number, and PM_ELEMENT_ERROR_IFNOTSET.

◆ printOutputAt()

void oofem::LatticeDirichletCouplingNode::printOutputAt ( FILE * file,
TimeStep * tStep )
overridevirtual

Prints output of receiver to stream, for given time step. This is used for output into the standard output file.

Parameters
fileFile pointer to print to.
tStepTime step to write for.

Reimplemented from oofem::DofManager.

Definition at line 233 of file latticedirichletcouplingnode.C.

References activedirichletbc, giveClassName(), oofem::DofManager::giveGlobalNumber(), oofem::DofManager::giveLabel(), oofem::FEMComponent::giveNumber(), and oofem::DofManager::giveNumberOfDofs().

◆ printYourself()

void oofem::LatticeDirichletCouplingNode::printYourself ( )
overridevirtual

Member Data Documentation

◆ activedirichletbc

double oofem::LatticeDirichletCouplingNode::activedirichletbc
protected

Definition at line 69 of file latticedirichletcouplingnode.h.

Referenced by giveUnknownVector(), and printOutputAt().

◆ couplingElements

IntArray oofem::LatticeDirichletCouplingNode::couplingElements
protected

Array storing nodal coordinates.

Definition at line 67 of file latticedirichletcouplingnode.h.

Referenced by computeUnknownCouplingContribution(), and initializeFrom().

◆ couplingType

int oofem::LatticeDirichletCouplingNode::couplingType
protected

Definition at line 68 of file latticedirichletcouplingnode.h.

◆ IPK_LatticeDirichletCouplingNode_couplingelements

ParamKey oofem::LatticeDirichletCouplingNode::IPK_LatticeDirichletCouplingNode_couplingelements
staticprotected

Definition at line 72 of file latticedirichletcouplingnode.h.

Referenced by initializeFrom(), and postInitialize().


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