45#ifndef Foam_heatExchangerModel_H
46#define Foam_heatExchangerModel_H
158 virtual const word&
U()
const
179 virtual void write(
const bool log) = 0;
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,...
Base class for writing single files from the function objects.
Mesh data needed to do the Finite Volume discretisation.
heatExchangerModel(const heatExchangerModel &)=delete
No copy construct.
declareRunTimeSelectionTable(autoPtr, heatExchangerModel, dictionary,(const fvMesh &mesh, const word &name, const dictionary &coeffs),(mesh, name, coeffs))
virtual void initialise()
Initialise data members of the model.
const word & name_
Reference to the name of the fvOption source.
const fvMesh & mesh_
Reference to the mesh.
word UName_
Name of operand velocity field.
virtual void write(const bool log)=0
Write data to stream and files.
heatExchangerModel(const fvMesh &mesh, const word &name, const dictionary &coeffs)
Construct from components.
virtual ~heatExchangerModel()=default
Destructor.
virtual tmp< scalarField > energyDensity(const labelList &cells)=0
Return energy density per unit length [J/m3/m].
word phiName_
Name of operand flux field.
void operator=(const heatExchangerModel &)=delete
No copy assignment.
const dictionary & coeffs_
Dictionary containing coefficients specific to the chosen model.
word faceZoneName_
Name of the faceZone at the heat exchanger inlet.
labelList faceId_
Local list of face IDs.
word TName_
Name of operand temperature field.
labelList facePatchId_
Local list of patch IDs per face.
static autoPtr< heatExchangerModel > New(const fvMesh &mesh, const word &name, const dictionary &coeffs)
Return a reference to the selected heat exchanger model.
labelList faceSign_
List of +1/-1 representing face flip map (1 use as is, -1 negate).
virtual const word & U() const
Return const reference to the name of velocity field.
TypeName("heatExchangerModel")
Runtime type information.
virtual bool read(const dictionary &dict)=0
Read top-level dictionary.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
List< label > labelList
A List of labels.
dimensionedScalar log(const dimensionedScalar &ds)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.