103 const DimensionedField<scalar, volMesh>& iF,
104 const dictionary& dict
107 fixedGradientFvPatchScalarField(
p, iF),
108 heatSource_(heatSourceTypeNames_.
read(dict.lookup(
"heatSource"))),
109 q_(
"q", dict,
p.size()),
110 alphaEffName_(dict.lookup(
"alphaEff"))
112 if (dict.found(
"value") && dict.found(
"gradient"))
114 fvPatchField<scalar>::operator=(Field<scalar>(
"value", dict,
p.size()));
115 gradient() = Field<scalar>(
"gradient", dict,
p.size());
119 fvPatchField<scalar>::operator=(patchInternalField());
187 const scalarField& alphaEffp =
188 patch().lookupPatchField<volScalarField, scalar>(alphaEffName_);
191 db().lookupObject<IOdictionary>(
"transportProperties");
198 const scalar Ap = gSum(patch().magSf());
199 gradient() = q_ / (Ap * rhoCp0 * alphaEffp);
205 gradient() = q_ / (rhoCp0 * alphaEffp);
213 "turbulentHeatFluxTemperatureFvPatchScalarField"
216 "const DimensionedField<scalar, volMesh>&, "
219 ) <<
"Unknown heat source type. Valid types are: "
220 << heatSourceTypeNames_ << nl << exit(FatalError);
224 fixedGradientFvPatchScalarField::updateCoeffs();