|
OOFEM 3.0
|
#include <usrdeftempfield.h>
Public Member Functions | |
| UserDefinedTemperatureField (int n, Domain *d) | |
| virtual | ~UserDefinedTemperatureField () |
| Destructor. | |
| void | computeValueAt (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) override |
| const char * | giveInputRecordName () const override |
| const char * | giveClassName () const override |
| void | initializeFrom (InputRecord &ir) override |
| Public Member Functions inherited from oofem::StructuralTemperatureLoad | |
| StructuralTemperatureLoad (int n, Domain *d) | |
| bcValType | giveBCValType () const override |
| bcGeomType | giveBCGeoType () const override |
| Public Member Functions inherited from oofem::Load | |
| Load (int n, Domain *d) | |
| virtual | ~Load () |
| Destructor. | |
| virtual void | computeComponentArrayAt (FloatArray &answer, TimeStep *tStep, ValueModeType mode) |
| virtual void | computeValueAt (FloatArray &answer, TimeStep *tStep, GaussPoint *gp, ValueModeType mode) |
| virtual void | computeValues (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, const IntArray &dofids, ValueModeType mode) |
| int | isDofExcluded (int index) |
| void | scale (double s) override |
| virtual CoordSystType | giveCoordSystMode () |
| virtual FormulationType | giveFormulationType () |
| virtual int | giveApproxOrder () |
| virtual double | giveProperty (int aProperty, TimeStep *tStep) const override |
| void | giveInputRecord (DynamicInputRecord &input) override |
| const FloatArray & | giveComponentArray () const |
| void | setComponentArray (FloatArray &arry) |
| void | saveContext (DataStream &stream, ContextMode mode) override |
| void | restoreContext (DataStream &stream, ContextMode mode) override |
| Public Member Functions inherited from oofem::GeneralBoundaryCondition | |
| GeneralBoundaryCondition (int n, Domain *d) | |
| virtual | ~GeneralBoundaryCondition () |
| Destructor. | |
| int | giveSetNumber () const |
| virtual int | giveNumberOfInternalDofManagers () |
| Gives the number of internal dof managers. | |
| virtual DofManager * | giveInternalDofManager (int i) |
| Gives an internal dof manager from receiver. | |
| Function * | giveTimeFunction () |
| int | getIsImposedTimeFunctionNumber () const |
| void | setIsImposedTimeFunctionNumber (int funcIndx) |
| virtual bool | isImposed (TimeStep *tStep) |
| virtual const IntArray & | giveDofIDs () const |
| virtual bcType | giveType () const |
| virtual void | updateYourself (TimeStep *tStep) |
| 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 | |
| Parser | myParser |
| int | size |
| std::string | ftExpression [3] |
Additional Inherited Members | |
| Public Types inherited from oofem::Load | |
| enum | CoordSystType { CST_Global , CST_Local , CST_UpdatedGlobal } |
| enum | FormulationType { FT_Entity , FT_Global } |
| Public Attributes inherited from oofem::Load | |
| bool | reference |
| Protected Attributes inherited from oofem::Load | |
| FloatArray | componentArray |
| Components of boundary condition. | |
| IntArray | dofExcludeMask |
| Protected Attributes inherited from oofem::GeneralBoundaryCondition | |
| int | timeFunction |
| Associated load time function. | |
| bcValType | valType |
| Physical meaning of BC value. | |
| IntArray | dofs |
| Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s). | |
| int | isImposedTimeFunction |
| int | set |
| Set number for boundary condition to be applied to. | |
| Protected Attributes inherited from oofem::FEMComponent | |
| int | number |
| Component number. | |
| Domain * | domain |
| Link to domain object, useful for communicating with other FEM components. | |
Class representing user defined temperature field. User input is function expression, as a function of global x,y and z coordinates and time t.
The load time function is not used here, the function provided is supposed to be function of time and coordinates.
Uses Parser class to parse given expression. Slow but useful. Temperature load as body load is typically attribute of domain and is attribute of one or more elements.
Definition at line 62 of file usrdeftempfield.h.
|
inline |
Constructor. Creates temperature load function with given number, belonging to given domain.
Definition at line 75 of file usrdeftempfield.h.
References myParser, and oofem::StructuralTemperatureLoad::StructuralTemperatureLoad().
|
inlinevirtual |
Destructor.
Definition at line 77 of file usrdeftempfield.h.
|
overridevirtual |
Computes components values of temperature field at given point (coordinates given in Global c.s.). taking into account corresponding load time function value respecting load response mode.
| answer | Component values at given point and time. |
| tStep | Time step representing time. |
| coords | Global coordinates, which are used to evaluate components values. |
| mode | Determines response mode. |
Reimplemented from oofem::StructuralTemperatureLoad.
Definition at line 45 of file usrdeftempfield.C.
References oofem::FloatArray::at(), ftExpression, oofem::TimeStep::giveTargetTime(), oofem::TimeStep::giveTimeIncrement(), oofem::TimeStep::isTheFirstStep(), myParser, OOFEM_ERROR, oofem::FloatArray::resize(), and size.
|
inlineoverridevirtual |
Reimplemented from oofem::StructuralTemperatureLoad.
Definition at line 90 of file usrdeftempfield.h.
|
inlineoverridevirtual |
Reimplemented from oofem::StructuralTemperatureLoad.
Definition at line 89 of file usrdeftempfield.h.
References _IFT_UserDefinedTemperatureField_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::Load.
Definition at line 81 of file usrdeftempfield.C.
References _IFT_UserDefinedTemperatureField_size, _IFT_UserDefinedTemperatureField_t1, _IFT_UserDefinedTemperatureField_t2, _IFT_UserDefinedTemperatureField_t3, ftExpression, IR_GIVE_FIELD, and size.
|
private |
Definition at line 67 of file usrdeftempfield.h.
Referenced by computeValueAt(), and initializeFrom().
|
private |
Definition at line 65 of file usrdeftempfield.h.
Referenced by computeValueAt(), and UserDefinedTemperatureField().
|
private |
Definition at line 66 of file usrdeftempfield.h.
Referenced by computeValueAt(), and initializeFrom().