99#ifndef wallHeatFluxModels_gauge_H
100#define wallHeatFluxModels_gauge_H
122 public wallHeatFluxModel,
123 public patchFieldProbe
128 const fluidThermo& thermo_;
131 std::unique_ptr<scalarIOField> qConvPtr_;
134 std::unique_ptr<scalarIOField> qRadPtr_;
137 autoPtr<OFstream> convectiveFilePtr_;
140 autoPtr<OFstream> radiativeFilePtr_;
182 scalar calcRadiantExitance()
const;
185 tmp<labelField> identifyProbeCells()
const;
188 bool writeFileHeader(Ostream&
os);
191 bool calcConvectiveHeatFlux();
197 bool calcRadiativeHeatFlux();
220 virtual ~gauge() =
default;
234 virtual bool write();
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Fundamental fluid thermodynamic properties.
Base class for function objects, adding functionality to read/write state information (data required ...
Mesh data needed to do the Finite Volume discretisation.
patchFieldProbe(const fvMesh &mesh, const dictionary &dict)
Construct from Time and dictionary.
A class for managing temporary objects.
const fvMesh & mesh() const noexcept
Return const reference to the mesh.
const word & objName() const noexcept
Return const reference to the function-object name.
functionObjects::stateFunctionObject & state() const noexcept
Return const reference to the state function object.
wallHeatFluxModel(const wallHeatFluxModel &)=delete
No copy construct.
This model computes the wall-heat flux at a selected patch using imaginary heat-flux gauges.
virtual bool read(const dictionary &dict)
Read the settings.
gauge(const dictionary &dict, const fvMesh &mesh, const word &name, const word objName, functionObjects::stateFunctionObject &state)
Construct from components.
virtual ~gauge()=default
Destructor.
virtual bool execute()
Calculate the heat-flux data.
virtual bool write()
Write the heat-flux data.
TypeName("gauge")
Runtime type information.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
A namespace for various heat-flux model implementations.
Field< label > labelField
Specialisation of Field<T> for label.
List< bool > boolList
A List of bools.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.