|
OOFEM 3.0
|
#include <constantfunction.h>
Public Member Functions | |
| ConstantFunction (int i, Domain *d) | |
| virtual | ~ConstantFunction () |
| Destructor. | |
| double | giveValue () |
| void | evaluate (FloatArray &answer, const std ::map< std ::string, FunctionArgument > &valDict, GaussPoint *gp=nullptr, double param=0.) override |
| double | evaluateAtTime (double t) override |
| double | evaluateVelocityAtTime (double t) override |
| double | evaluateAccelerationAtTime (double t) override |
| 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 |
| Public Member Functions inherited from oofem::Function | |
| Function (int n, Domain *d) | |
| virtual | ~Function () |
| Destructor. | |
| virtual double | evaluate (TimeStep *tStep, ValueModeType mode) |
| virtual double | evaluate (const std ::map< std ::string, FunctionArgument > &valDict) |
| double | giveFunctionParameter (int paramID) |
| void | saveContext (DataStream &stream, ContextMode mode) override |
| void | restoreContext (DataStream &stream, ContextMode mode) override |
| 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 | |
| double | value |
| Value of receiver. | |
Additional Inherited Members | |
| Public Attributes inherited from oofem::Function | |
| Domain * | funcDomain |
| int | parameterType |
| Protected Attributes inherited from oofem::FEMComponent | |
| int | number |
| Component number. | |
| Domain * | domain |
| Link to domain object, useful for communicating with other FEM components. | |
Class implementing time function that is constant in time; \( f(t) = C \).
Definition at line 47 of file constantfunction.h.
|
inline |
Constructor. Creates constant load time function with given number, belonging to given domain.
Definition at line 59 of file constantfunction.h.
References oofem::Function::Function(), and value.
|
inlinevirtual |
Destructor.
Definition at line 63 of file constantfunction.h.
|
inlineoverridevirtual |
Returns the value of the function for given input.
| valDict | Map with inputs. |
| answer | Function value. |
Reimplemented from oofem::Function.
Definition at line 68 of file constantfunction.h.
References giveValue().
|
inlineoverridevirtual |
Returns the second time derivative of the function at given time.
| t | Time. |
Implements oofem::Function.
Definition at line 71 of file constantfunction.h.
|
inlineoverridevirtual |
Returns the value of the function at given time.
| t | Time. |
Reimplemented from oofem::Function.
Definition at line 69 of file constantfunction.h.
References giveValue().
|
inlineoverridevirtual |
Returns the first time derivative of the function at given time.
| t | Time. |
Implements oofem::Function.
Definition at line 70 of file constantfunction.h.
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Definition at line 76 of file constantfunction.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 54 of file constantfunction.C.
References _IFT_ConstantFunction_f, oofem::DynamicInputRecord::setField(), and value.
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Definition at line 77 of file constantfunction.h.
References _IFT_ConstantFunction_Name.
|
inline |
Definition at line 66 of file constantfunction.h.
References value.
Referenced by evaluate(), and evaluateAtTime().
|
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 45 of file constantfunction.C.
References _IFT_ConstantFunction_f, IR_GIVE_FIELD, and value.
|
overridevirtual |
Restores the receiver state previously written in stream.
| stream | Input stream. |
| mode | Determines amount of info available in stream (state, definition, ...). |
| throws | an ContextIOERR exception if error encountered. |
Reimplemented from oofem::FEMComponent.
Definition at line 74 of file constantfunction.C.
References oofem::CIO_IOERR, CM_Definition, oofem::DataStream::read(), THROW_CIOERR, and value.
|
overridevirtual |
Stores receiver state to output stream.
| stream | Output stream. |
| mode | Determines amount of info required in stream (state, definition, ...). |
| throws | an ContextIOERR exception if error encountered. |
Reimplemented from oofem::FEMComponent.
Definition at line 61 of file constantfunction.C.
References oofem::CIO_IOERR, CM_Definition, THROW_CIOERR, value, and oofem::DataStream::write().
|
private |
Value of receiver.
Definition at line 51 of file constantfunction.h.
Referenced by ConstantFunction(), giveInputRecord(), giveValue(), initializeFrom(), restoreContext(), and saveContext().