43 void Foam::fv::heatTransferModel::readCoeffs()
48 mesh().time().constant(),
54 if (coeffs().
found(
"AoV"))
67 <<
"Area per unit volume (AoV) not found. A uniform AoV " 68 <<
"value should be specified, or a non-uniform field should " 69 <<
"exist at " << AoVIO.objectPath()
79 const word& modelType,
95 const word& modelType,
109 word heatTransferModelType(dict.
lookup(
"type"));
111 Info<<
"Selecting heatTransferModel " 112 << heatTransferModelType <<
endl;
114 meshConstructorTable::iterator cstrIter =
115 meshConstructorTablePtr_->find(heatTransferModelType);
117 if (cstrIter == meshConstructorTablePtr_->end())
120 <<
"Unknown heatTransferModelType type " 121 << heatTransferModelType << endl << endl
122 <<
"Valid heatTransferModel types are : " << endl
123 << meshConstructorTablePtr_->sortedToc()
138 word heatTransferModelType(dict.
lookup(
"type"));
140 Info<<
"Selecting heatTransferModel " 141 << heatTransferModelType <<
endl;
143 modelConstructorTable::iterator cstrIter =
144 modelConstructorTablePtr_->find(heatTransferModelType);
146 if (cstrIter == modelConstructorTablePtr_->end())
149 <<
"Unknown heatTransferModelType type " 150 << heatTransferModelType << endl << endl
151 <<
"Valid heatTransferModel types are : " << endl
152 << modelConstructorTablePtr_->sortedToc()
156 return cstrIter()(
dict, model);
170 if (!AoVPtr_.valid())
tmp< volScalarField > AoV() const
Get the area per unit volume.
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
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...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineRunTimeSelectionTable(heatTransferModel, mesh)
const dimensionSet dimless
const fvMesh & mesh() const
Return const access to the mesh database.
const dimensionSet dimLength
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Base class for inter-region exchange.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
A class for handling words, derived from string.
static autoPtr< heatTransferModel > New(const dictionary &dict, const fvMesh &mesh)
Select from dictionary and mesh.
heatTransferModel(const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary and mesh.
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.
A class for managing temporary objects.
virtual ~heatTransferModel()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.