67 if ( (
period >= 0.0 ) && ( time > last ) ) {
68 double d = ( time - last ) /
period;
69 time = last + ( d - floor(d) - 1. ) *
period;
99 if ( (
period >= 0.0 ) && ( time > last ) ) {
100 double d = ( time - last ) /
period;
101 time = last + ( d - floor(d) - 1. ) *
period;
double period
If less than zero no periodicity, if >=0 date time is computed as given timeperiod.
Domain * domain
Link to domain object, useful for communicating with other FEM components.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual double evaluateVelocityAtTime(double)
Returns the first time derivative of the function at given time.
double & at(int i)
Coefficient access function.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
REGISTER_Function(CalculatorFunction)
#define _IFT_PeriodicPiecewiseLinFunction_addtf
int addTF
If nonzero, the value of time function specified by addTF is added to computed value.
virtual double evaluateAtTime(double)
Returns the value of the function at given time.
#define _IFT_PeriodicPiecewiseLinFunction_period
Function * giveFunction(int n)
Service for accessing particular domain load time function.
virtual double evaluateVelocityAtTime(double t)=0
Returns the first time derivative of the function at given time.
virtual double evaluateVelocityAtTime(double t)
Returns the first time derivative of the function at given time.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
int giveSize() const
Returns the size of receiver.
virtual double evaluateAtTime(double t)
Returns the value of the function at given time.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
virtual double evaluateAtTime(double t)
Returns the value of the function at given time.