|
OOFEM 3.0
|
#include <periodicpiecewiselinfunction.h>
Public Member Functions | |
| PeriodicPiecewiseLinFunction (int i, Domain *d) | |
| virtual | ~PeriodicPiecewiseLinFunction () |
| void | initializeFrom (InputRecord &ir) override |
| void | giveInputRecord (DynamicInputRecord &input) override |
| const char * | giveClassName () const override |
| const char * | giveInputRecordName () const override |
| double | evaluateAtTime (double) override |
| double | evaluateVelocityAtTime (double) override |
| double | evaluateAccelerationAtTime (double) override |
| Public Member Functions inherited from oofem::PiecewiseLinFunction | |
| PiecewiseLinFunction (int i, Domain *d) | |
| virtual | ~PiecewiseLinFunction () |
| void | initializeFrom (InputRecord &ir) override |
| void | giveInputRecord (DynamicInputRecord &input) override |
| const char * | giveClassName () const override |
| const char * | giveInputRecordName () const override |
| void | saveContext (DataStream &stream, ContextMode mode) override |
| void | restoreContext (DataStream &stream, ContextMode mode) override |
| double | evaluateAtTime (double t) override |
| double | evaluateVelocityAtTime (double t) override |
| double | evaluateAccelerationAtTime (double t) override |
| Public Member Functions inherited from oofem::Function | |
| Function (int n, Domain *d) | |
| virtual | ~Function () |
| Destructor. | |
| virtual double | evaluate (TimeStep *tStep, ValueModeType mode) |
| virtual void | evaluate (FloatArray &answer, const std ::map< std ::string, FunctionArgument > &valDict, GaussPoint *gp=nullptr, double param=0.) |
| virtual double | evaluate (const std ::map< std ::string, FunctionArgument > &valDict) |
| double | giveFunctionParameter (int paramID) |
| Public Member Functions inherited from oofem::FEMComponent | |
| FEMComponent (int n, Domain *d) | |
| virtual | ~FEMComponent ()=default |
| Virtual destructor. | |
| Domain * | giveDomain () const |
| virtual void | setDomain (Domain *d) |
| int | giveNumber () const |
| void | setNumber (int num) |
| virtual void | updateLocalNumbering (EntityRenumberingFunctor &f) |
| virtual void | initializeFrom (InputRecord &ir, int priority) |
| virtual void | initializeFinish () |
| virtual void | postInitialize () |
| Performs post initialization steps. Called after all components are created and initialized. | |
| virtual int | checkConsistency () |
| virtual void | printOutputAt (FILE *file, TimeStep *tStep) |
| virtual void | printYourself () |
| Prints receiver state on stdout. Useful for debugging. | |
| virtual Interface * | giveInterface (InterfaceType t) |
| std::string | errorInfo (const char *func) const |
| Returns string for prepending output (used by error reporting macros). | |
Private Attributes | |
| int | addTF |
| If nonzero, the value of time function specified by addTF is added to computed value. | |
| double | period |
Additional Inherited Members | |
| Public Attributes inherited from oofem::Function | |
| Domain * | funcDomain |
| int | parameterType |
| Protected Attributes inherited from oofem::PiecewiseLinFunction | |
| FloatArray | dates |
| FloatArray | values |
| Protected Attributes inherited from oofem::FEMComponent | |
| int | number |
| Component number. | |
| Domain * | domain |
| Link to domain object, useful for communicating with other FEM components. | |
This class implements an enhanced piecewise linear function with periodicity. and possibility to add another arbitrary time function.
The function is defined by 'numberOfPoints' points. 'dates' and 'values' store respectively the abscissas (t) and the values (f(t)) of the points The values are repeated after 'period'. 'AddTF' parameter specifies number of function to add.
Definition at line 58 of file periodicpiecewiselinfunction.h.
|
inline |
Definition at line 71 of file periodicpiecewiselinfunction.h.
References addTF, period, and oofem::PiecewiseLinFunction::PiecewiseLinFunction().
|
inlinevirtual |
Definition at line 76 of file periodicpiecewiselinfunction.h.
|
inlineoverridevirtual |
Returns the second time derivative of the function at given time.
| t | Time. |
Implements oofem::Function.
Definition at line 85 of file periodicpiecewiselinfunction.h.
|
overridevirtual |
Returns the value of the function at given time.
| t | Time. |
Reimplemented from oofem::Function.
Definition at line 44 of file periodicpiecewiselinfunction.C.
References addTF, oofem::PiecewiseLinFunction::dates, oofem::FEMComponent::domain, OOFEM_ERROR, and period.
|
overridevirtual |
Returns the first time derivative of the function at given time.
| t | Time. |
Implements oofem::Function.
Definition at line 76 of file periodicpiecewiselinfunction.C.
References addTF, oofem::PiecewiseLinFunction::dates, oofem::FEMComponent::domain, OOFEM_ERROR, and period.
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Definition at line 80 of file periodicpiecewiselinfunction.h.
|
overridevirtual |
Setups the input record string of receiver.
| input | Dynamic input record to be filled by receiver. |
Reimplemented from oofem::FEMComponent.
Definition at line 118 of file periodicpiecewiselinfunction.C.
References _IFT_PeriodicPiecewiseLinFunction_addtf, _IFT_PeriodicPiecewiseLinFunction_period, addTF, period, and oofem::DynamicInputRecord::setField().
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Definition at line 81 of file periodicpiecewiselinfunction.h.
References _IFT_PeriodicPiecewiseLinFunction_Name.
|
overridevirtual |
Initializes receiver according to object description stored in input record. This function is called immediately after creating object using constructor. Input record can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record. Note that initializeFrom may be called mutiple times.
| ir | Input record to initialize from. |
| priority | Priority of the input record. This is used to determine the order of initialization |
Reimplemented from oofem::FEMComponent.
Definition at line 108 of file periodicpiecewiselinfunction.C.
References _IFT_PeriodicPiecewiseLinFunction_addtf, _IFT_PeriodicPiecewiseLinFunction_period, addTF, IR_GIVE_OPTIONAL_FIELD, and period.
|
private |
If nonzero, the value of time function specified by addTF is added to computed value.
Definition at line 62 of file periodicpiecewiselinfunction.h.
Referenced by evaluateAtTime(), evaluateVelocityAtTime(), giveInputRecord(), initializeFrom(), and PeriodicPiecewiseLinFunction().
|
private |
If less than zero no periodicity, if >=0 date time is computed as given timeperiod. If points span more than period, span of LAST period is repeated
Definition at line 68 of file periodicpiecewiselinfunction.h.
Referenced by evaluateAtTime(), evaluateVelocityAtTime(), giveInputRecord(), initializeFrom(), and PeriodicPiecewiseLinFunction().