48double BoundaryCondition :: give(
Dof *dof, ValueModeType mode,
TimeStep *tStep)
50 if ( mode == VM_Incremental ) {
58double BoundaryCondition :: give(
Dof *dof, ValueModeType mode,
double time)
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;
82 GeneralBoundaryCondition :: initializeFrom(ir);
87 double prescribedValue;
94 if ( this->
dofs.giveSize() ) {
100 values.add(prescribedValue);
108 GeneralBoundaryCondition :: giveInputRecord(input);
114BoundaryCondition :: setPrescribedValue(
double s)
122BoundaryCondition :: scale(
double s)
131 GeneralBoundaryCondition :: saveContext(stream, mode);
135 if ( (iores =
values.storeYourself(stream) ) !=
CIO_OK ) {
145 GeneralBoundaryCondition :: restoreContext(stream, mode);
149 if ( (iores =
values.restoreYourself(stream) ) !=
CIO_OK ) {
#define _IFT_BoundaryCondition_PrescribedValue
[rn,optional] Prescribed value of all DOFs
#define _IFT_BoundaryCondition_values
[ra,optional] Vector of prescribed values for each respective DOF.
#define _IFT_BoundaryCondition_PrescribedValue_d
[rn,optional] Alternative input field
#define REGISTER_BoundaryCondition(class)
FloatArray values
Prescribed values for each resp. dof.
virtual double give(Dof *dof, ValueModeType mode, TimeStep *tStep)
DofIDItem giveDofID() const
Function * giveTimeFunction()
IntArray dofs
Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s).
double giveTimeIncrement()
Returns solution step associated time increment.
double giveTargetTime()
Returns target time.
double giveIntrinsicTime()
Returns intrinsic time, e.g. time in which constitutive model is evaluated.
@ CIO_IOERR
General IO error.