Go to the documentation of this file.
36 namespace incompressible
47 fixedGradientFvPatchScalarField(
p, iF),
64 fixedGradientFvPatchScalarField(psf,
p, iF, mapper),
79 fixedGradientFvPatchScalarField(
p, iF),
83 Qs(
"Qs",
dict,
p.size()),
84 Qv(
"Qv",
dict,
p.size())
90 Info <<
"initialeze the heat boundary conditions"<<
endl;
93 if (
dict.found(
"value"))
112 Info <<
"value can not found,"<<
endl;
121 if (
dict.found(
"gradient"))
129 fixedGradientFvPatchScalarField::updateCoeffs();
130 fixedGradientFvPatchScalarField::evaluate();
137 Info <<
"gardient can not found,"<<
endl;
138 Info <<
"the value is equal to the internal value near cell" <<
endl;
139 Info <<
"gradient default is 0" <<
endl;
160 fixedGradientFvPatchScalarField(psf, iF),
178 Info <<
"update the boundary patch field Coeffs now ... " <<
endl;
187 = db().lookupObject<
IOdictionary>(
"transportProperties");
207 const scalar Ap =
gSum(patch().magSf());
225 gradient() = (
Qs*Ap+
Qv) / (Ap*alphaEffW * Cp0.value() *
rho0.value() );
228 Info <<
"input radiation heat flux is : " << QtotalFromRadiation <<
endl;
229 Info <<
"input Qs heat flux is : " <<
Qs <<
"W/m2" <<
endl;
230 Info <<
"input Qv heat flux is : " <<
Qv <<
"W" <<
endl;
231 Info <<
"input Ap is : " << Ap <<
"m2" <<
endl;
232 Info <<
"input alphaEffw is : " << alphaEffW <<
"m2/s"<<
endl;
235 Info <<
"input Cp0 is : " << Cp0 <<
endl;
237 Info <<
"the gradient of temperature is : " << gradient() <<
endl;
240 fixedGradientFvPatchScalarField::updateCoeffs();
266 Qs.writeEntry(
"Qs", os);
267 Qv.writeEntry(
"Qv", os);
268 gradient().writeEntry(
"gradient", os);
269 this->writeEntry(
"value", os);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual void write(Ostream &) const
Write.
virtual void operator=(const UList< Type > &)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
scalarField Qv
Name of Heat flux for W.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
scalarField Qs
Name of field for radiation heatFlux.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Generic dimensioned Type class.
virtual void write(Ostream &) const
Write.
static int & msgType()
Message tag of standard messages.
turbulentTemperatureRadFixedGradientFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
makePatchTypeField(fvPatchScalarField, turbulentBoundaryCoupledFvPatchScalarField)