Go to the documentation of this file.
39 Foam::atmTurbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType
41 Foam::atmTurbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames
43 { heatSourceType::POWER ,
"power" },
44 { heatSourceType::FLUX ,
"flux" }
62 fixedGradientFvPatchScalarField(
p, iF),
63 heatSource_(heatSourceType::POWER),
64 alphaEffName_(
"undefinedAlphaEff"),
79 fixedGradientFvPatchScalarField(ptf,
p, iF, mapper),
80 heatSource_(ptf.heatSource_),
81 alphaEffName_(ptf.alphaEffName_),
82 Cp0_(ptf.Cp0_.clone()),
83 q_(ptf.q_.clone(
p.patch()))
95 fixedGradientFvPatchScalarField(
p, iF),
98 heatSourceTypeNames.getOrDefault
102 heatSourceType::POWER
131 fixedGradientFvPatchScalarField(atmpsf),
132 heatSource_(atmpsf.heatSource_),
133 alphaEffName_(atmpsf.alphaEffName_),
135 q_(atmpsf.q_.clone(this->patch().patch()))
146 fixedGradientFvPatchScalarField(atmpsf, iF),
147 heatSource_(atmpsf.heatSource_),
148 alphaEffName_(atmpsf.alphaEffName_),
150 q_(atmpsf.q_.clone(this->patch().patch()))
172 fixedGradientFvPatchScalarField::rmap(ptf, addr);
175 refCast<const atmTurbulentHeatFluxTemperatureFvPatchScalarField>(ptf);
177 q_->rmap(atmptf.q_(), addr);
191 const scalar t = db().time().timeOutputValue();
192 const scalar Cp0 = Cp0_->value(t);
197 <<
"Cp0 = " << Cp0 <<
" must be positive."
205 case heatSourceType::POWER:
208 gradient() = q/(Ap*Cp0*alphaEffp + SMALL);
212 case heatSourceType::FLUX:
214 gradient() = q/(Cp0*alphaEffp + SMALL);
221 <<
"Unknown heat source type. Valid types are: "
222 << heatSourceTypeNames <<
nl
227 fixedGradientFvPatchScalarField::updateCoeffs();
234 os.writeEntry(
"heatSource", heatSourceTypeNames[heatSource_]);
235 os.writeEntry(
"alphaEff", alphaEffName_);
238 writeEntry(
"value",
os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
atmTurbulentHeatFluxTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from Foam::string.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Type gSum(const FieldField< Field, Type > &f)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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 a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
This boundary condition provides a fixed heat constraint on temperature (i.e. T) to specify temperatu...
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void write(Ostream &) const
Write.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void operator=(const UList< Type > &)
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...