50 if ( mode == VM_Incremental ) {
61 if ( (mode == VM_Total) || (mode == VM_TotalIntrinsic)) {
63 }
else if ( mode == VM_Velocity ) {
65 }
else if ( mode == VM_Acceleration ) {
68 OOFEM_ERROR(
"Should not be called for value mode type then total, velocity, or acceleration.");
74 double prescribedValue = this->
values.
at(index);
75 return prescribedValue * factor;
92 double prescribedValue;
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
REGISTER_BoundaryCondition(BoundaryCondition)
virtual double evaluateAccelerationAtTime(double t)=0
Returns the second time derivative of the function at given time.
virtual double give(Dof *dof, ValueModeType mode, TimeStep *tStep)
Returns the value of a prescribed unknown, respecting requested mode for given time.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
contextIOResultType storeYourself(DataStream &stream) const
double & at(int i)
Coefficient access function.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Function * giveTimeFunction()
void setPrescribedValue(double s)
Set prescribed value at the input record string of receiver.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
double giveTargetTime()
Returns target time.
virtual void scale(double s)
Scales the receiver according to given value.
#define _IFT_BoundaryCondition_values
[ra,optional] Vector of prescribed values for each respective DOF.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
double giveTimeIncrement()
Returns solution step associated time increment.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
#define _IFT_BoundaryCondition_PrescribedValue_d
[rn,optional] Alternative input field
contextIOResultType restoreYourself(DataStream &stream)
DofIDItem giveDofID() const
Returns DofID value of receiver, which determines type of of unknown connected to receiver (e...
IntArray dofs
Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s).
double giveIntrinsicTime()
Returns intrinsic time, e.g. time in which constitutive model is evaluated.
virtual double evaluateVelocityAtTime(double t)=0
Returns the first time derivative of the function at given time.
Initializes the variable VERBOSE, in order to get a few intermediate messages on screen: beginning an...
IRResultType
Type defining the return values of InputRecord reading operations.
void zero()
Zeroes all coefficients of receiver.
void times(double s)
Multiplies receiver with scalar.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
#define _IFT_BoundaryCondition_PrescribedValue
[rn,optional] Prescribed value of all DOFs
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
FloatArray values
Prescribed values for each resp. dof.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
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.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual double evaluateAtTime(double t)
Returns the value of the function at given time.
Class representing solution step.
void add(const FloatArray &src)
Adds array src to receiver.
int findFirstIndexOf(int value) const
Finds index of first occurrence of given value in array.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
void resize(int s)
Resizes receiver towards requested size.