144 primaryMasterContribs.
copySubVector(subPrimaryMasterContribs, k);
145 k += subPrimaryMasterContribs.
giveSize();
156 masterEqNumbers.
clear();
172 masterDofIDs.
clear();
243 if ( !stream.
write(_idofmanNum) ) {
contextIOResultType storeYourself(DataStream &stream) const
Stores array to output stream.
void copySubVector(const FloatArray &src, int si)
Copy the given vector as sub-vector to receiver.
IntArray dofIDs
Array of master dofIDs.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Abstract class representing field of primary variables (those, which are unknown and are typically as...
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
bool isEmpty() const
Checks if receiver is empty (i.e., zero sized).
contextIOResultType storeYourself(DataStream &stream) const
double & at(int i)
Coefficient access function.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
virtual int __givePrescribedEquationNumber()
Returns equation number corresponding to receiver.
FloatArray masterContribution
Vector of master contribution coefficients.
virtual Dictionary * giveUnknowns()
Receives the dictionary of unknowns in receiver.
virtual void giveEquationNumbers(IntArray &masterEqNumbers, const UnknownNumberingScheme &s)
Returns equation number of receiver.
virtual int giveNumberOfPrimaryMasterDofs()
SlaveDof(DofManager *aNode, DofIDItem id=Undef)
Constructor.
Base class for dof managers.
virtual void giveEquationNumbers(IntArray &masterEqNumbers, const UnknownNumberingScheme &s)
Returns equation number of receiver.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
virtual int read(int *data, int count)=0
Reads count integer values into array pointed by data.
virtual int __giveEquationNumber() const
Returns equation number corresponding to receiver.
virtual void giveUnknowns(FloatArray &masterUnknowns, ValueModeType mode, TimeStep *tStep)
The key method of class Dof.
int countOfPrimaryMasterDofs
Count of master DofManagers.
virtual int write(const int *data, int count)=0
Writes count integer values from array pointed by data.
virtual void updateLocalNumbering(EntityRenumberingFunctor &f)
Local renumbering support.
double dotProduct(const FloatArray &x) const
Computes the dot product (or inner product) of receiver and argument.
void initialize(const IntArray &masterNodes, const IntArray &mstrDofID, const FloatArray &mstrContribution)
void clear()
Clears the array (zero size).
DofIDItem
Type representing particular dof type.
DofManager * dofManager
Link to related DofManager.
virtual void computeDofTransformation(FloatArray &primaryMasterContribs)
Computes dof transformation array, which describes the dependence of receiver value on values of mast...
virtual double giveUnknown(ValueModeType mode, TimeStep *tStep)
Returns the value of the unknown associated with the receiver at given time step. ...
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
contextIOResultType restoreYourself(DataStream &stream)
virtual void giveMasterDofManArray(IntArray &answer)
void resize(int n)
Checks size of receiver towards requested bounds.
contextIOResultType restoreYourself(DataStream &stream)
Restores array from image on stream.
Class representing vector of real numbers.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
virtual void giveMasterDofManArray(IntArray &answer)
IntArray masterDofMans
Array of master DofManagers.
DofIDItem dofID
Physical meaning of DOF.
#define CM_DefinitionGlobal
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
void followedBy(const IntArray &b, int allocChunk=0)
Appends array b at the end of receiver.
void times(double s)
Multiplies receiver with scalar.
virtual void computeDofTransformation(FloatArray &masterContribs)
Computes dof transformation array, which describes the dependence of receiver value on values of mast...
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Domain * giveDomain() const
virtual void giveDofIDs(IntArray &masterDofIDs)
As giveEquationNumbers but for dof IDs.
virtual int giveNumberOfPrimaryMasterDofs()
int giveSize() const
Returns the size of receiver.
void preallocate(int futureSize)
Preallocates receiver to given futureSize if larger then allocatedSize.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
DofManager * giveDofManager(int n)
Service for accessing particular domain dof manager.
virtual void giveDofIDs(IntArray &masterDofIDs)
As giveEquationNumbers but for dof IDs.
int countOfMasterDofs
Count of master DofManagers.
Class representing solution step.
Dof * giveMasterDof(int i)
void resize(int s)
Resizes receiver towards requested size.