78 OOFEM_ERROR(
"Incompatible BC (%d) applied as Dirichlet/Primary BC",
bc);
120 if ( this->
hasBc(tStep) ) {
136 OOFEM_ERROR(
"does not know yet if has InitCond or not");
157 }
else if ( this->
hasBc(tStep) ) {
208 if ( this->
hasBc(tStep) ) {
226 OOFEM_ERROR(
"does not know yet if has InitCond or not");
242 OOFEM_ERROR(
"does not know yet if has InitCond or not");
253 if ( this->
hasIc() ) {
virtual bool isImposed(TimeStep *tStep)
Returns nonzero if receiver representing BC is imposed at given time, otherwise returns zero...
virtual void printYourself()
Prints the receiver state on stdout.
DofManager in active domain is shared only by remote elements (these are only introduced for nonlocal...
int ic
Initial condition number associated to dof.
InitialCondition * giveIc()
Returns initial condition of dof if it is prescribed.
Class implementing general initial condition.
virtual int __giveEquationNumber() const
Returns equation number of receiver, usually assigned by emodel.
InitialCondition * giveIc(int n)
Service for accessing particular domain ic.
virtual int __givePrescribedEquationNumber()
Returns prescribed equation number of receiver.
virtual int giveBcId()
Returns the id of associated boundary condition, if there is any.
virtual double giveUnknownsDictionaryValue(TimeStep *tStep, ValueModeType mode)
Access dictionary value, if not present zero is returned.
Abstract class representing field of primary variables (those, which are unknown and are typically as...
double & at(int aKey)
Returns the value of the pair which key is aKey.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
virtual int requiresUnknownsDictionaryUpdate()
Indicates if EngngModel requires Dofs dictionaries to be updated.
Dictionary unknowns
Unknowns dictionary to support changes of static system.
EngngModel * giveEngngModel()
Returns engineering model to which receiver is associated.
contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Saves the receiver contends (state) to given stream.
Base class for dof managers.
int giveNumber()
Returns domain number.
virtual int giveNewPrescribedEquationNumber(int domain, DofIDItem)
Increases number of prescribed equations of receiver's domain and returns newly created equation numb...
virtual int askNewEquationNumber(TimeStep *tStep)
Asks EngngModel for new equation number.
virtual int read(int *data, int count)=0
Reads count integer values into array pointed by data.
virtual bcType giveType() const
GeneralBoundaryCondition * giveBc(int n)
Service for accessing particular domain bc.
virtual int write(const int *data, int count)=0
Writes count integer values from array pointed by data.
virtual int giveNewEquationNumber(int domain, DofIDItem)
Increases number of equations of receiver's domain and returns newly created equation number...
virtual double giveUnknown(ValueModeType mode, TimeStep *tStep)
The key method of class Dof.
Class implementing Dirichlet boundary condition on DOF (primary boundary condition).
int giveNumber()
Returns receiver's number.
DofIDItem
Type representing particular dof type.
int hasConditionOn(int u)
Tests if receiver has initial condition for specific unknown-mode.
DofManager * dofManager
Link to related DofManager.
virtual ~MasterDof()
Destructor.
virtual void updateUnknownsDictionary(TimeStep *tStep, ValueModeType mode, double dofValue)
Abstract function, allowing Dof to store its unknowns in its own private dictionary.
Abstract base class for all boundary conditions of problem.
MasterDof(DofManager *aNode, int nbc, int nic, DofIDItem id)
Constructor.
virtual bool hasIcOn(ValueModeType)
Test if Dof has initial condition of required ValueModeType.
double give(ValueModeType mode)
Returns value of initial condition for given unknown mode (determines whether total or velocity or ac...
int equationNumber
Corresponding equation number (positive value) or prescribed equation number (negative value)...
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
int bc
Boundary condition number associated to dof.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
virtual const char * giveClassName() const =0
int giveNumberOfTimeStepWhenIcApply()
Returns the time step number, when initial conditions should apply.
DofIDItem dofID
Physical meaning of DOF.
virtual int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep)
This method is responsible for computing unique dictionary id (ie hash value) from given valueModeTyp...
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
virtual double giveBcValue(ValueModeType mode, TimeStep *tStep)
Returns value of boundary condition of dof if it is prescribed.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
virtual void updateYourself(TimeStep *tStep)
Updates receiver after finishing time step.
virtual bool hasBc(TimeStep *tStep)
Test if Dof has active boundary condition.
Domain * giveDomain() const
Abstract base class representing the "problem" under consideration.
virtual void updateYourself(TimeStep *tStep)
Updates receiver after finishing time step.
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.
contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver contents (state) from given stream.
#define CM_UnknownDictState
Class representing solution step.
virtual double giveUnknownValue(Dof *dof, ValueModeType mode, TimeStep *tStep)
dofManagerParallelMode giveParallelMode() const
Return dofManagerParallelMode of receiver.
BoundaryCondition * giveBc()
Returns boundary condition of dof if it is prescribed.
virtual int giveIcId()
Returns the id of associated initial condition, if there is any.
virtual bool hasIc()
Test if Dof has initial condition.