73 for (
int i = 1; i <= countOfMasterNodes; i++ ) {
75 OOFEM_WARNING(
"Mismatch in parallel mode of HangingNode and master");
115 OOFEM_ERROR(
"Couldn't find closest element (automatically).");
131 for (
Dof *dof: *
this ) {
137 OOFEM_ERROR(
"Requested interpolation for dof id %d doesn't exist in element %d.",
140 #if 0 // This won't work (yet), as it requires some more general FEI classes, or something similar. 141 if ( fei->hasMultiField() ) {
143 IntArray masterDofIDs, masterNodesDup, dofids;
145 masterContribution.flatten(multiContribution);
146 masterDofIDs.
clear();
151 sdof->
initialize(masterNodesDup, & masterDofIDs, masterContribution);
The base class for all spatial localizers.
int giveNumberOfColumns() const
Returns number of columns of receiver.
virtual void evalN(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
Evaluates the array of interpolation functions (shape functions) at given point.
Domain * domain
Link to domain object, useful for communicating with other FEM components.
virtual void postInitialize()
Performs post-initialization such like checking if there are any slave dofs etc.
virtual int checkConsistency()
Allows programmer to test some internal data, before computation begins.
Abstract base class for all finite elements.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class implementing an array of integers.
virtual FEInterpolation * giveInterpolation() const
int masterRegion
Region of the master element (used for automatic detection).
bool hasSameLCS(Node *remote)
Returns true, if the local coordinate systems of receiver and given node are the same.
#define _IFT_HangingNode_masterElement
virtual int giveNumberOfNodes() const
Returns number of nodes of receiver.
Class representing a general abstraction for finite element interpolation class.
const IntArray & giveDofManArray() const
Element * giveElement(int n)
Service for accessing particular domain fe element.
REGISTER_DofManager(ElementSide)
void initialize(const IntArray &masterNodes, const IntArray &mstrDofID, const FloatArray &mstrContribution)
void clear()
Clears the array (zero size).
DofIDItem
Type representing particular dof type.
SpatialLocalizer * giveSpatialLocalizer()
Returns receiver's associated spatial localizer.
DofIDItem giveDofID() const
Returns DofID value of receiver, which determines type of of unknown connected to receiver (e...
Wrapper around element definition to provide FEICellGeometry interface.
virtual int global2local(FloatArray &answer, const FloatArray &gcoords, const FEICellGeometry &cellgeo)=0
Evaluates local coordinates from given global ones.
virtual void postInitialize()
Performs post-initialization such like checking if there are any slave dofs etc.
FloatArray coordinates
Array storing nodal coordinates.
Class representing vector of real numbers.
virtual int init(bool force=false)
Initialize receiver data structure if not done previously If force is set to true, the initialization is enforced (useful if domain geometry has changed)
dofManagerParallelMode parallel_mode
Implementation of matrix containing floating point numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual int checkConsistency()
Allows programmer to test some internal data, before computation begins.
virtual Element * giveElementClosestToPoint(FloatArray &lcoords, FloatArray &closest, const FloatArray &coords, int region=0)=0
Returns the element closest to a given point.
void followedBy(const IntArray &b, int allocChunk=0)
Appends array b at the end of receiver.
HangingNode(int n, Domain *aDomain)
Constructor.
#define _IFT_HangingNode_masterRegion
Domain * giveDomain() const
bool initialized
Flag whether node is fully initialized already.
int giveSize() const
Returns the size of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class implementing node in finite element mesh.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Node * giveNode(int i) const
Returns reference to the i-th node of element.
DofManager is local, there are no contribution from other domains to this DofManager.
#define OOFEM_WARNING(...)
Class representing "slave" degree of freedom.
dofManagerParallelMode giveParallelMode() const
Return dofManagerParallelMode of receiver.
int masterElement
Number of the master element.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.