36 namespace heatTransferModels
48 void Foam::fv::heatTransferModels::constant::readCoeffs()
59 if (coeffs().
found(
"htc"))
78 <<
"Heat transfer coefficient (htc) not found. A uniform htc " 79 <<
"value should be specified, or a non-uniform field should " 123 if (!htcPtr_.valid())
const dimensionSet dimArea
const dimensionSet dimPower
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
fileName objectPath() const
Return the object path for this Type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Base class for heat transfer coefficient modelling used in heat transfer fvModels. Area per unit volume [1/m] (AoV) must be provided as a value in the coefficients dictionary or as a field in constant.
Templated form of IOobject providing type information for file reading and header type checking...
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
const fvMesh & mesh() const
Return const access to the mesh database.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void correct()
Correct the heat transfer coefficient.
Base class for inter-region exchange.
constant(const dictionary &dict, const fvMesh &mesh)
Construct from dictionary and mesh.
defineTypeNameAndDebug(constant, 0)
Constant heat transfer model. The heat transfer coefficient [W/m^2/K] (htc) must be provided as a val...
virtual bool read(const dictionary &dict)
Read dictionary.
virtual bool read(const dictionary &dict)
Read dictionary.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
addToRunTimeSelectionTable(heatTransferModel, constant, mesh)
virtual ~constant()
Destructor.
A class for managing temporary objects.
virtual tmp< volScalarField > htc() const
Get the heat transfer coefficient.
const dimensionSet dimTemperature