Loading...
Searching...
No Matches
wallHeatFluxModel Class Referenceabstract

A base class for heat-flux models. More...

#include <wallHeatFluxModel.H>

Inheritance diagram for wallHeatFluxModel:
Collaboration diagram for wallHeatFluxModel:

Public Member Functions

 TypeName ("wallHeatFluxModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, wallHeatFluxModel, dictionary,(const dictionary &dict, const fvMesh &mesh, const word &name, const word objName, functionObjects::stateFunctionObject &state),(dict, mesh, name, objName, state))
 wallHeatFluxModel (const wallHeatFluxModel &)=delete
 No copy construct.
void operator= (const wallHeatFluxModel &)=delete
 No copy assignment.
 wallHeatFluxModel (const dictionary &dict, const fvMesh &mesh, const word &name, const word objName, functionObjects::stateFunctionObject &state)
 Construct from components.
virtual ~wallHeatFluxModel ()
 Destructor.
const fvMeshmesh () const noexcept
 Return const reference to the mesh.
functionObjects::stateFunctionObjectstate () const noexcept
 Return const reference to the state function object.
const wordobjName () const noexcept
 Return const reference to the function-object name.
virtual bool read (const dictionary &dict)=0
 Read the settings.
virtual bool execute ()=0
 Calculate the heat-flux data.
virtual bool write ()=0
 Write the heat-flux data.
Public Member Functions inherited from writeFile
 writeFile (const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
 Construct from objectRegistry, prefix, fileName.
 writeFile (const objectRegistry &obr, const fileName &prefix, const word &name, const dictionary &dict, const bool writeToFile=true, const string &ext=".dat")
 Construct from objectRegistry, prefix, fileName and read options from dictionary.
 writeFile (const writeFile &wf)
 Construct copy.
virtual ~writeFile ()=default
 Destructor.
virtual const stringsetExt (const string &ext)
 Set extension.
virtual OFstreamfile ()
 Return access to the file (if only 1).
virtual bool writeToFile () const
 Flag to allow writing to file.
virtual bool canWriteToFile () const
 Flag to allow writing to the file.
virtual bool canResetFile () const
 Flag to allow resetting the file.
virtual bool canWriteHeader () const
 Flag to allow writing the header.
virtual label charWidth () const
 Return width of character stream output.
virtual void writeCommented (Ostream &os, const string &str) const
 Write a commented string to stream.
virtual void writeTabbed (Ostream &os, const string &str) const
 Write a tabbed string to stream.
virtual void writeHeader (Ostream &os, const string &str) const
 Write a commented header to stream.
virtual void writeCurrentTime (Ostream &os) const
 Write the current time to stream.
virtual void writeBreak (Ostream &os) const
 Write a break marker to the stream.
template<class Type>
void writeHeaderValue (Ostream &os, const string &property, const Type &value) const
 Write a (commented) header property and value pair.
template<class Type>
void writeValue (Ostream &os, const Type &val) const
 Write a given value to stream with the space delimiter.

Static Public Member Functions

static autoPtr< wallHeatFluxModelNew (const dictionary &dict, const fvMesh &mesh, const word &name, const word objName, functionObjects::stateFunctionObject &state)
 Return a reference to the selected heat-flux model.

Additional Inherited Members

Static Public Attributes inherited from writeFile
static label addChars = 8
 Additional characters for writing.
Protected Member Functions inherited from writeFile
void initStream (Ostream &os) const
 Initialise the output stream for writing.
fileName baseFileDir () const
 Return the base directory for output.
fileName baseTimeDir () const
 Return the base directory for the current time value.
fileName filePath (const fileName &fName) const
 Return the full path for the supplied file name.
virtual autoPtr< OFstreamnewFile (const fileName &fName) const
 Return autoPtr to a new file using file name.
virtual autoPtr< OFstreamnewFileAtTime (const word &name, scalar timeValue) const
 Return autoPtr to a new file for a given time.
virtual autoPtr< OFstreamnewFileAtStartTime (const word &name) const
 Return autoPtr to a new file using the simulation start time.
virtual void resetFile (const word &name)
 Reset internal file pointer to new file with new name.
Omanip< int > valueWidth (const label offset=0) const
 Return the value width when writing to stream with optional offset.
void operator= (const writeFile &)=delete
 No copy assignment.
virtual autoPtr< OFstreamcreateFile (const word &name, scalar timeValue) const
 Deprecated(2022-09) Return autoPtr to a new file for a given time.
virtual autoPtr< OFstreamcreateFile (const word &name) const
 Deprecated(2022-09) Return autoPtr to a new file using the simulation start time.
Protected Attributes inherited from writeFile
const objectRegistryfileObr_
 Reference to the region objectRegistry.
const fileName prefix_
 Prefix.
word fileName_
 Name of file.
autoPtr< OFstreamfilePtr_
 File pointer.
label writePrecision_
 Write precision.
bool writeToFile_
 Flag to enable/disable writing to file.
bool updateHeader_
 Flag to update the header, e.g. on mesh changes. Default is true.
bool writtenHeader_
 Flag to identify whether the header has been written.
bool useUserTime_
 Flag to use the specified user time, e.g. CA deg instead of seconds. Default = true.
scalar startTime_
 Start time value.
string ext_
 File extension; default = .dat.

Detailed Description

A base class for heat-flux models.

Source files

Definition at line 60 of file wallHeatFluxModel.H.

Constructor & Destructor Documentation

◆ wallHeatFluxModel() [1/2]

wallHeatFluxModel ( const wallHeatFluxModel & )
delete

No copy construct.

References wallHeatFluxModel().

Referenced by declareRunTimeSelectionTable(), operator=(), and wallHeatFluxModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wallHeatFluxModel() [2/2]

wallHeatFluxModel ( const dictionary & dict,
const fvMesh & mesh,
const word & name,
const word objName,
functionObjects::stateFunctionObject & state )

Construct from components.

References dict, mesh(), Foam::name(), objName(), and state().

Here is the call graph for this function:

◆ ~wallHeatFluxModel()

virtual ~wallHeatFluxModel ( )
virtual

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "wallHeatFluxModel" )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr ,
wallHeatFluxModel ,
dictionary ,
(const dictionary &dict, const fvMesh &mesh, const word &name, const word objName, functionObjects::stateFunctionObject &state) ,
(dict, mesh, name, objName, state)  )

References dict, mesh(), Foam::name(), objName(), state(), and wallHeatFluxModel().

Here is the call graph for this function:

◆ New()

autoPtr< wallHeatFluxModel > New ( const dictionary & dict,
const fvMesh & mesh,
const word & name,
const word objName,
functionObjects::stateFunctionObject & state )
static

Return a reference to the selected heat-flux model.

References dict, mesh(), Foam::name(), objName(), and state().

Here is the call graph for this function:

◆ operator=()

void operator= ( const wallHeatFluxModel & )
delete

No copy assignment.

References wallHeatFluxModel().

Here is the call graph for this function:

◆ mesh()

const fvMesh & mesh ( ) const
inlinenoexcept

Return const reference to the mesh.

Definition at line 164 of file wallHeatFluxModel.H.

References Foam::noexcept.

Referenced by declareRunTimeSelectionTable(), gauge::gauge(), New(), wall::wall(), and wallHeatFluxModel().

Here is the caller graph for this function:

◆ state()

functionObjects::stateFunctionObject & state ( ) const
inlinenoexcept

Return const reference to the state function object.

Definition at line 169 of file wallHeatFluxModel.H.

References Foam::noexcept.

Referenced by declareRunTimeSelectionTable(), gauge::gauge(), New(), wall::wall(), and wallHeatFluxModel().

Here is the caller graph for this function:

◆ objName()

const word & objName ( ) const
inlinenoexcept

Return const reference to the function-object name.

Definition at line 177 of file wallHeatFluxModel.H.

References Foam::noexcept.

Referenced by declareRunTimeSelectionTable(), gauge::gauge(), New(), wall::wall(), and wallHeatFluxModel().

Here is the caller graph for this function:

◆ read()

virtual bool read ( const dictionary & dict)
pure virtual

Read the settings.

Reimplemented from writeFile.

Implemented in gauge, and wall.

References dict.

◆ execute()

virtual bool execute ( )
pure virtual

Calculate the heat-flux data.

Implemented in gauge, and wall.

◆ write()

virtual bool write ( )
pure virtual

Write the heat-flux data.

Implemented in gauge, and wall.


The documentation for this class was generated from the following file:
  • src/functionObjects/field/wallHeatFlux/wallHeatFluxModels/wallHeatFluxModel/wallHeatFluxModel.H