OOFEM 3.0
Loading...
Searching...
No Matches
oofem::ExternalTemperatureFieldLoad Class Reference

#include <externaltempfieldload.h>

Inheritance diagram for oofem::ExternalTemperatureFieldLoad:
Collaboration diagram for oofem::ExternalTemperatureFieldLoad:

Public Member Functions

 ExternalTemperatureFieldLoad (int n, Domain *d)
virtual ~ExternalTemperatureFieldLoad ()
 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)
void computeValueAt (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) override
bcValType giveBCValType () const override
bcGeomType giveBCGeoType () const override
const char * giveInputRecordName () const override
const char * giveClassName () 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 initializeFrom (InputRecord &ir) override
void giveInputRecord (DynamicInputRecord &input) override
const FloatArraygiveComponentArray () 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 DofManagergiveInternalDofManager (int i)
 Gives an internal dof manager from receiver.
FunctiongiveTimeFunction ()
int getIsImposedTimeFunctionNumber () const
void setIsImposedTimeFunctionNumber (int funcIndx)
virtual bool isImposed (TimeStep *tStep)
virtual const IntArraygiveDofIDs () 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.
DomaingiveDomain () 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 InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Public Attributes

std::shared_ptr< FieldforeignField
Public Attributes inherited from oofem::Load
bool reference

Protected Attributes

VTKHDF5Reader vtkReader
StateCounterType readerStateCounter
bool vtkhdffielddefined = false
std::string vtkhdfFilename
std::string vtkhdfFieldname
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.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Additional Inherited Members

Public Types inherited from oofem::Load
enum  CoordSystType { CST_Global , CST_Local , CST_UpdatedGlobal }
enum  FormulationType { FT_Entity , FT_Global }

Detailed Description

Class representing foreign, external temperature field, which asks a field object to return temperature at given point.

The load time function is not used here, the field has to be updated by the user if it is non-constant in time.

The field (stored in foreignField) cannot be set in the input file (there is only one mesh defined), it is typically assigned using Python bindings.

Definition at line 63 of file externaltempfieldload.h.

Constructor & Destructor Documentation

◆ ExternalTemperatureFieldLoad()

oofem::ExternalTemperatureFieldLoad::ExternalTemperatureFieldLoad ( int n,
Domain * d )
inline

Constructor. Creates temperature load function with given number, belonging to given domain.

Parameters
nLoad time function number
dDomain to which new object will belongs.

Definition at line 79 of file externaltempfieldload.h.

References oofem::StructuralTemperatureLoad::StructuralTemperatureLoad().

◆ ~ExternalTemperatureFieldLoad()

virtual oofem::ExternalTemperatureFieldLoad::~ExternalTemperatureFieldLoad ( )
inlinevirtual

Destructor.

Definition at line 81 of file externaltempfieldload.h.

Member Function Documentation

◆ computeValueAt()

void oofem::ExternalTemperatureFieldLoad::computeValueAt ( FloatArray & answer,
TimeStep * tStep,
const FloatArray & coords,
ValueModeType mode )
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.

Parameters
answerComponent values at given point and time.
tStepTime step representing time.
coordsGlobal coordinates, which are used to evaluate components values.
modeDetermines response mode.

Implements oofem::Load.

Definition at line 46 of file externaltempfieldload.C.

References foreignField, oofem::TimeStep::giveSolutionStateCounter(), OOFEM_ERROR, readerStateCounter, vtkhdffielddefined, vtkhdfFieldname, and vtkReader.

◆ giveClassName()

const char * oofem::ExternalTemperatureFieldLoad::giveClassName ( ) const
inlineoverridevirtual
Returns
Class name of the receiver.

Implements oofem::FEMComponent.

Definition at line 94 of file externaltempfieldload.h.

◆ giveInputRecordName()

const char * oofem::ExternalTemperatureFieldLoad::giveInputRecordName ( ) const
inlineoverridevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 93 of file externaltempfieldload.h.

References _IFT_ExternalTemperatureFieldLoad_Name.

◆ initializeFrom()

void oofem::ExternalTemperatureFieldLoad::initializeFrom ( InputRecord & ir)
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.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
priorityPriority of the input record. This is used to determine the order of initialization

Reimplemented from oofem::FEMComponent.

Definition at line 72 of file externaltempfieldload.C.

References _IFT_ExternalTemperatureFieldLoad_VTKHDF5FieldName, _IFT_ExternalTemperatureFieldLoad_VTKHDF5FileName, _IFT_GeneralBoundaryCondition_set, foreignField, IR_GIVE_OPTIONAL_FIELD, readerStateCounter, oofem::GeneralBoundaryCondition::set, vtkhdffielddefined, vtkhdfFieldname, vtkhdfFilename, and vtkReader.

Member Data Documentation

◆ foreignField

std::shared_ptr<Field> oofem::ExternalTemperatureFieldLoad::foreignField

Definition at line 73 of file externaltempfieldload.h.

Referenced by computeValueAt(), and initializeFrom().

◆ readerStateCounter

StateCounterType oofem::ExternalTemperatureFieldLoad::readerStateCounter
protected

Definition at line 67 of file externaltempfieldload.h.

Referenced by computeValueAt(), and initializeFrom().

◆ vtkhdffielddefined

bool oofem::ExternalTemperatureFieldLoad::vtkhdffielddefined = false
protected

Definition at line 68 of file externaltempfieldload.h.

Referenced by computeValueAt(), and initializeFrom().

◆ vtkhdfFieldname

std::string oofem::ExternalTemperatureFieldLoad::vtkhdfFieldname
protected

Definition at line 70 of file externaltempfieldload.h.

Referenced by computeValueAt(), and initializeFrom().

◆ vtkhdfFilename

std::string oofem::ExternalTemperatureFieldLoad::vtkhdfFilename
protected

Definition at line 69 of file externaltempfieldload.h.

Referenced by initializeFrom().

◆ vtkReader

VTKHDF5Reader oofem::ExternalTemperatureFieldLoad::vtkReader
protected

Definition at line 66 of file externaltempfieldload.h.

Referenced by computeValueAt(), and initializeFrom().


The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011