42 const DimensionedField<scalar, volMesh>& iF
45 fixedGradientFvPatchScalarField(
p, iF),
46 heatFlux_(
p.size(), 0.0)
53 const wallHeatFluxFvPatchScalarField& ptf,
55 const DimensionedField<scalar, volMesh>& iF,
56 const fvPatchFieldMapper& mapper
59 fixedGradientFvPatchScalarField(ptf,
p, iF, mapper),
60 heatFlux_(ptf.heatFlux_, mapper)
67 const DimensionedField<scalar, volMesh>& iF,
68 const dictionary&
dict
71 fixedGradientFvPatchScalarField(
p, iF),
72 heatFlux_(
"heatFlux",
dict,
p.size())
77 Info <<
"initialeze the heatFlux"<<
endl;
80 if (
dict.found(
"value"))
96 Info <<
"value can not found,"<<
endl;
104 if (
dict.found(
"gradient"))
112 fixedGradientFvPatchScalarField::updateCoeffs();
113 fixedGradientFvPatchScalarField::evaluate();
120 Info <<
"gardient can not found,"<<
endl;
121 Info <<
"the value is equal to the internal value near cell" <<
endl;
122 Info <<
"gradient default is 0" <<
endl;
132 const wallHeatFluxFvPatchScalarField& wbppsf
135 fixedGradientFvPatchScalarField(wbppsf),
136 heatFlux_(wbppsf.heatFlux_)
142 const wallHeatFluxFvPatchScalarField& wbppsf,
143 const DimensionedField<scalar, volMesh>& iF
146 fixedGradientFvPatchScalarField(wbppsf, iF),
147 heatFlux_(wbppsf.heatFlux_)
159 Info <<
"update the boundary patch field Coeffs now ... " <<
endl;
167 const dictionary& transportProperties
168 = db().lookupObject<IOdictionary>(
"transportProperties");
174 const fvPatchField<scalar>& alphaEffW =
185 const scalar Ap =
gSum(patch().magSf());
192 gradient() =
heatFlux_ / (Ap*alphaEffW * Cp0.value() *
rho0.value() );
196 Info <<
"input Ap is : " << Ap <<
endl;
197 Info <<
"input alphaEffw is : " << alphaEffW <<
endl;
198 Info <<
"input Cp0 is : " << Cp0 <<
endl;
200 Info <<
"the gradient of temperature is : " << gradient() <<
endl;
203 fixedGradientFvPatchScalarField::updateCoeffs();
212 gradient().writeEntry(
"gradient", os);
213 this->writeEntry(
"value", os);