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

#include <depositedheatsource.h>

Inheritance diagram for oofem::DepositedHeatSource:
Collaboration diagram for oofem::DepositedHeatSource:

Public Member Functions

 DepositedHeatSource (int i, Domain *d)
 Mass fraction of the deposited material.
 DepositedHeatSource (int i, Domain *d, int depositedMaterialID, double powervalue, double depositionTemperature, int depositedMassFractionFunction)
void computeValueAt (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) override
void computeValueAt (FloatArray &answer, TimeStep *tStep, GaussPoint *gp, ValueModeType mode) override
bcValType giveBCValType () const override
bcGeomType giveBCGeoType () const override
void setComponents (int depositedMaterialID, double powervalue, double depositionTemperature, double depositedMassFractionFunction)
FormulationType giveFormulationType () override
void initializeFrom (InputRecord &ir) override
const char * giveClassName () const override
const char * giveInputRecordName () const override
Public Member Functions inherited from oofem::BodyLoad
 BodyLoad (int i, Domain *d)
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 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 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).

Protected Attributes

int depositedMaterialID
double powervalue
 ID of the deposited material; not used at the moment.
double depositionTemperature
 power = specificHeat * density
int depositedMassFractionFunction
 Temperature of the deposited material.
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 }
Public Attributes inherited from oofem::Load
bool reference

Detailed Description

This class implements a volumetric heat source to account for incrementally deposited material (with specific given temperature) in element

Definition at line 53 of file depositedheatsource.h.

Constructor & Destructor Documentation

◆ DepositedHeatSource() [1/2]

oofem::DepositedHeatSource::DepositedHeatSource ( int i,
Domain * d )
inline

Mass fraction of the deposited material.

Constructor

Definition at line 63 of file depositedheatsource.h.

References oofem::BodyLoad::BodyLoad().

◆ DepositedHeatSource() [2/2]

oofem::DepositedHeatSource::DepositedHeatSource ( int i,
Domain * d,
int depositedMaterialID,
double powervalue,
double depositionTemperature,
int depositedMassFractionFunction )
inline

Member Function Documentation

◆ computeValueAt() [1/2]

void oofem::DepositedHeatSource::computeValueAt ( FloatArray & answer,
TimeStep * tStep,
const FloatArray & coords,
ValueModeType mode )
overridevirtual

Computes components values of load at given point - global coordinates (coordinates given).

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

Implements oofem::Load.

Definition at line 71 of file depositedheatsource.C.

References oofem::FloatArray::at(), depositedMassFractionFunction, depositionTemperature, oofem::FEMComponent::domain, oofem::TimeStep::giveTimeIncrement(), OOFEM_ERROR, powervalue, oofem::FloatArray::resize(), oofem::FloatArray::times(), and oofem::FloatArray::zero().

◆ computeValueAt() [2/2]

void oofem::DepositedHeatSource::computeValueAt ( FloatArray & answer,
TimeStep * tStep,
GaussPoint * gp,
ValueModeType mode )
overridevirtual

Computes components values of load at given point - global coordinates (coordinates given).

Parameters
answerComponent values at given point and time.
tStepTime step representing time.
gpIntegration point.
modeDetermines response mode.

Reimplemented from oofem::Load.

Definition at line 46 of file depositedheatsource.C.

References oofem::FloatArray::at(), oofem::Element::computeVectorOf(), depositedMassFractionFunction, depositionTemperature, oofem::FEMComponent::domain, oofem::GaussPoint::giveElement(), OOFEM_ERROR, powervalue, oofem::FloatArray::resize(), oofem::FloatArray::size(), oofem::FloatArray::sum(), oofem::FloatArray::times(), and oofem::FloatArray::zero().

◆ giveBCGeoType()

bcGeomType oofem::DepositedHeatSource::giveBCGeoType ( ) const
inlineoverridevirtual

Returns receiver's load geometry type.

Returns
BodyLoadBGT.

Reimplemented from oofem::BodyLoad.

Definition at line 71 of file depositedheatsource.h.

References oofem::BodyLoadBGT.

◆ giveBCValType()

bcValType oofem::DepositedHeatSource::giveBCValType ( ) const
inlineoverridevirtual

Returns receiver load type. It distinguish particular boundary conditions according to their "physical" meaning (like StructuralTemperatureLoadLT, StructuralLoadLT). Derived classes should always overload, default implementation returns UnknownLT value. See cltypes.h file for details.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 70 of file depositedheatsource.h.

References oofem::ForceLoadBVT.

◆ giveClassName()

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

Implements oofem::FEMComponent.

Definition at line 83 of file depositedheatsource.h.

◆ giveFormulationType()

FormulationType oofem::DepositedHeatSource::giveFormulationType ( )
inlineoverridevirtual

Specifies is load should take local or global coordinates.

Reimplemented from oofem::Load.

Definition at line 80 of file depositedheatsource.h.

References oofem::Load::FT_Global.

◆ giveInputRecordName()

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

Implements oofem::FEMComponent.

Definition at line 84 of file depositedheatsource.h.

References _IFT_DepositedHeatSource_Name.

◆ initializeFrom()

void oofem::DepositedHeatSource::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 97 of file depositedheatsource.C.

References _IFT_DepositedHeatSource_depositedmassfractionfunction, _IFT_DepositedHeatSource_depositedmaterialid, _IFT_DepositedHeatSource_depositiontemperature, _IFT_DepositedHeatSource_power, depositedMassFractionFunction, depositedMaterialID, depositionTemperature, oofem::GeneralBoundaryCondition::initializeFrom(), IR_GIVE_FIELD, and powervalue.

◆ setComponents()

void oofem::DepositedHeatSource::setComponents ( int depositedMaterialID,
double powervalue,
double depositionTemperature,
double depositedMassFractionFunction )
inline

Member Data Documentation

◆ depositedMassFractionFunction

int oofem::DepositedHeatSource::depositedMassFractionFunction
protected

Temperature of the deposited material.

Definition at line 59 of file depositedheatsource.h.

Referenced by computeValueAt(), computeValueAt(), DepositedHeatSource(), initializeFrom(), and setComponents().

◆ depositedMaterialID

int oofem::DepositedHeatSource::depositedMaterialID
protected

Definition at line 56 of file depositedheatsource.h.

Referenced by DepositedHeatSource(), initializeFrom(), and setComponents().

◆ depositionTemperature

double oofem::DepositedHeatSource::depositionTemperature
protected

power = specificHeat * density

Definition at line 58 of file depositedheatsource.h.

Referenced by computeValueAt(), computeValueAt(), DepositedHeatSource(), initializeFrom(), and setComponents().

◆ powervalue

double oofem::DepositedHeatSource::powervalue
protected

ID of the deposited material; not used at the moment.

Definition at line 57 of file depositedheatsource.h.

Referenced by computeValueAt(), computeValueAt(), DepositedHeatSource(), initializeFrom(), and setComponents().


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