48 double t, k, c, h, result;
57 for (
int i = 1; i <= coords.
giveSize(); i++ ) {
58 cd.
at(i) = coords.
at(i);
61 result = -1.e-5 - k *
macbra( atan ( c *t + cd.
at ( 2 ) - h ) );
63 if ( ( mode == VM_Incremental ) && ( !tStep->
isTheFirstStep() ) ) {
65 result -= -1.e-5 - k *
macbra( atan ( c *t + cd.
at ( 2 ) - h ) );
68 answer.
at(1) = result;
virtual void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode)
Computes components values of load at given point - global coordinates (coordinates given)...
REGISTER_BoundaryCondition(BoundaryCondition)
double & at(int i)
Coefficient access function.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
double macbra(double x)
Returns the positive part of given float.
double giveTargetTime()
Returns target time.
double giveTimeIncrement()
Returns solution step associated time increment.
bool isTheFirstStep()
Check if receiver is first step.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing vector of real numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
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 representing solution step.
void resize(int s)
Resizes receiver towards requested size.