53 void Foam::fv::heatTransfer::readCoeffs()
55 semiImplicit_ = coeffs().lookup<
bool>(
"semiImplicit");
57 TName_ = coeffs().lookupOrDefault<word>(
"T",
"T");
70 const word& modelType,
75 fvModel(name, modelType, dict, mesh),
80 heatTransferModel_(
nullptr)
106 const word& fieldName
119 mask*heatTransferModel_->htc()*heatTransferModel_->AoV()
131 eqn += htcAoV*(Ta_ -
T) + htcAoVByCpv*he -
fvm::Sp(htcAoVByCpv, he);
135 eqn += htcAoV*Ta_ -
fvm::Sp(htcAoV, he);
140 eqn += htcAoV*(Ta_ -
T);
149 const word& fieldName
152 addSup(eqn, fieldName);
158 heatTransferModel_->correct();
heatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
const word & name() const
Return name.
fluidReactionThermo & thermo
Base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const GeometricField< Type, fvPatchField, volMesh > & psi() const
virtual bool read(const dictionary &dict)
Read dictionary.
virtual bool read(const dictionary &dict)
Read source dictionary.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
Finite volume model abstract base class.
const dimensionSet dimless
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
virtual tmp< volScalarField > Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
Macros for easy insertion into run-time selection tables.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
const dimensionSet & dimensions() const
Return dimensions.
A class for handling words, derived from string.
virtual ~heatTransfer()
Destructor.
static const word null
An empty word.
Volume integrate volField creating a volField.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
static autoPtr< heatTransferModel > New(const dictionary &dict, const fvMesh &mesh)
Select from dictionary and mesh.
static const word dictName
Name of the thermophysical properties dictionary.
virtual void correct()
Correct the model.
const dimensionSet dimEnergy
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionSet dimMass
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
List< word > wordList
A List of words.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
virtual void addSup(fvMatrix< scalar > &eqn, const word &fieldName) const
Source term to energy equation.
Calculate the matrix for implicit and explicit sources.
const dimensionSet dimTemperature