36 namespace heatTransferCoefficientModels
48 void Foam::fv::heatTransferCoefficientModels::constant::readCoeffs
50 const dictionary&
dict
53 typeIOobject<volScalarField> htcIO
62 if (
dict.found(
"htc"))
73 else if (htcIO.headerOk())
81 <<
"Heat transfer coefficient (htc) not found. A uniform htc "
82 <<
"value should be specified, or a non-uniform field should "
83 <<
"exist at " << htcIO.objectPath()
126 if (!htcPtr_.valid())
Macros for easy insertion into run-time selection tables.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
static const word & constant()
Return constant name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Base class for heat transfer coefficient modelling used in heat transfer fvModels.
const fvMesh & mesh_
Reference to the mesh.
virtual bool read(const dictionary &dict)
Read dictionary.
Constant heat transfer model. The heat transfer coefficient [W/m^2/K] (htc) must be provided as a val...
virtual void correct()
Correct the heat transfer coefficient.
virtual bool read(const dictionary &dict)
Read dictionary.
constant(const dictionary &dict, const fvMesh &mesh)
Construct from dictionary and mesh.
virtual ~constant()
Destructor.
virtual tmp< volScalarField > htc() const
Get the heat transfer coefficient.
Base class for inter-region exchange.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineTypeNameAndDebug(constant, 0)
addToRunTimeSelectionTable(heatTransferCoefficientModel, constant, mesh)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimPower
const dimensionSet dimTemperature
VolField< scalar > volScalarField
word typedName(Name name)
Return the name of the object within the given type.
const dimensionSet dimArea
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.