Go to the documentation of this file.
58 namespace incompressible
79 fixedGradientFvPatchScalarField(
p, iF),
82 QrName_(
"undefinedQr")
95 fixedGradientFvPatchScalarField(ptf,
p, iF, mapper),
110 fixedGradientFvPatchScalarField(
p, iF),
111 heatSource_(heatSourceTypeNames_.read(
dict.
lookup(
"heatSource"))),
112 q_(
"q",
dict,
p.size()),
134 fixedGradientFvPatchScalarField(thftpsf),
148 fixedGradientFvPatchScalarField(thftpsf, iF),
162 fixedGradientFvPatchScalarField::autoMap(m);
173 fixedGradientFvPatchScalarField::rmap(ptf, addr);
176 refCast<const turbulentHeatFluxTemperatureFvPatchScalarField>
181 q_.rmap(thftptf.
q_, addr);
196 const iTModel& tModel =
197 db().lookupObject<iTModel>
208 const label patchI = patch().index();
231 const scalar Ap =
gSum(patch().magSf());
232 gradient() = (
q_/Ap + qr) / kappaEff;
237 gradient() = (
q_ + qr) / kappaEff;
243 <<
"Unknown heat source type. Valid types are: "
248 fixedGradientFvPatchScalarField::updateCoeffs();
259 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 > &)
static word groupName(Name name, const word &group)
A class for handling words, derived from string.
rDeltaT dimensionedInternalField()
heatSourceType heatSource_
Heat source type.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
const char *const group
Group name for atomic constants.
const Type & value() const
Return const reference to value.
Type gSum(const FieldField< Field, Type > &f)
A simple single-phase transport model based on viscosityModel.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
word QrName_
Name of radiative in flux field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar Pr("Pr", dimless, laminarTransport)
A list of keyword definitions, which are a keyword followed by any number of values (e....
scalarField q_
Heat power [W] or flux [W/m2].
Macros for easy insertion into run-time selection tables.
turbulentHeatFluxTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
heatSourceType
Enumeration listing the possible hest source input modes.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
static const NamedEnum< heatSourceType, 2 > heatSourceTypeNames_
Heat source type names.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(Ostream &) const
Write.
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...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Fixed heat boundary condition to specify temperature gradient. Input heat source either specified in ...
Templated abstract base class for single-phase incompressible turbulence models.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Initialise the NamedEnum HashTable from the static list of names.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
makePatchTypeField(fvPatchScalarField, turbulentBoundaryCoupledFvPatchScalarField)