Go to the documentation of this file.
78 fixedGradientFvPatchScalarField(
p, iF),
82 QrName_(
"undefinedQr")
95 fixedGradientFvPatchScalarField(ptf,
p, iF, mapper),
111 fixedGradientFvPatchScalarField(
p, iF),
113 heatSource_(heatSourceTypeNames_.read(
dict.lookup(
"heatSource"))),
114 q_(
"q",
dict,
p.size()),
115 QrName_(
dict.lookupOrDefault<
word>(
"Qr",
"none"))
117 if (
dict.found(
"value") &&
dict.found(
"gradient"))
137 fixedGradientFvPatchScalarField(thftpsf),
152 fixedGradientFvPatchScalarField(thftpsf, iF),
167 fixedGradientFvPatchScalarField::autoMap(m);
178 fixedGradientFvPatchScalarField::rmap(ptf, addr);
181 refCast<const turbulentHeatFluxTemperatureFvPatchScalarField>
186 q_.rmap(thftptf.
q_, addr);
211 const scalar Ap =
gSum(patch().magSf());
212 gradient() = (
q_/Ap + qr)/
kappa(Tp);
217 gradient() = (
q_ + qr)/
kappa(Tp);
223 <<
"Unknown heat source type. Valid types are: "
228 fixedGradientFvPatchScalarField::updateCoeffs();
238 os.
writeKeyword(
"heatSource") << heatSourceTypeNames_[heatSource_]
241 q_.writeEntry(
"q", os);
243 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void operator=(const UList< Type > &)
makePatchTypeField(fvPatchScalarField, thermalBaffleFvPatchScalarField)
A class for handling words, derived from string.
virtual void write(Ostream &) const
Write.
Common functions for use in temperature coupled boundaries.
Type gSum(const FieldField< Field, Type > &f)
static const NamedEnum< heatSourceType, 2 > heatSourceTypeNames_
Heat source type names.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word QrName_
Name of radiative in flux field.
heatSourceType
Enumeration listing the possible hest source input modes.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
tmp< scalarField > kappa(const scalarField &Tp) const
Given patch temperature calculate corresponding K field.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
turbulentHeatFluxTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void write(Ostream &) const
Write.
scalarField q_
Heat power [W] or flux [W/m2].
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
heatSourceType heatSource_
Heat source type.