66 > turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
78 fixedGradientFvPatchScalarField(p, iF),
82 QrName_(
"undefinedQr")
95 fixedGradientFvPatchScalarField(ptf, p, iF, mapper),
97 heatSource_(ptf.heatSource_),
111 fixedGradientFvPatchScalarField(p, iF),
113 heatSource_(heatSourceTypeNames_.read(dict.
lookup(
"heatSource"))),
114 q_(
"q", dict, p.
size()),
117 if (dict.
found(
"value") && dict.
found(
"gradient"))
137 fixedGradientFvPatchScalarField(thftpsf),
139 heatSource_(thftpsf.heatSource_),
141 QrName_(thftpsf.QrName_)
152 fixedGradientFvPatchScalarField(thftpsf, iF),
154 heatSource_(thftpsf.heatSource_),
156 QrName_(thftpsf.QrName_)
167 fixedGradientFvPatchScalarField::autoMap(m);
178 fixedGradientFvPatchScalarField::rmap(ptf, addr);
181 refCast<const turbulentHeatFluxTemperatureFvPatchScalarField>
186 q_.
rmap(thftptf.q_, addr);
202 if (QrName_ !=
"none")
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_]
243 writeEntry(
"value", os);
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void write(Ostream &) const
Write.
Fixed heat boundary condition to specify temperature gradient. Input heat source either specified in ...
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Initialise the NamedEnum HashTable from the static list of names.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Type gSum(const FieldField< Field, Type > &f)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
heatSourceType
Enumeration listing the possible hest source input modes.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Common functions used in temperature coupled boundaries.
virtual void operator=(const UList< Type > &)
virtual void write(Ostream &) const
Write.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
tmp< scalarField > kappa(const scalarField &Tp) const
Given patch temperature calculate corresponding K field.
makePatchTypeField(fvPatchScalarField, thermalBaffleFvPatchScalarField)
turbulentHeatFluxTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.