47 fixedValueFvPatchScalarField(
p, iF),
62 fixedValueFvPatchScalarField(
p, iF,
dict),
63 q_(
"q",
dict,
p.size()),
64 relax_(
dict.getOrDefault<scalar>(
"relax", 1)),
65 Tmin_(
dict.getOrDefault<scalar>(
"Tmin", 273))
78 fixedValueFvPatchScalarField(psf,
p, iF, mapper),
91 fixedValueFvPatchScalarField(psf),
105 fixedValueFvPatchScalarField(psf, iF),
123 const phaseSystem&
fluid =
124 db().lookupObject<phaseSystem>(
"phaseProperties");
135 const fluidThermo&
thermo = phase.thermo();
138 phase.boundaryField()[patch().index()];
141 thermo.T().boundaryField()[patch().index()];
152 Info<< patch().name() <<
" " << phase.name()
165 Info<<
patch().name() <<
" " <<
": overall heat flux "
166 <<
limits.min() <<
" - " <<
limits.max() <<
" W/m2, power: "
172 fixedValueFvPatchScalarField::updateCoeffs();
181 fixedValueFvPatchScalarField::autoMap(m);
192 fixedValueFvPatchScalarField::rmap(ptf, addr);
197 q_.rmap(mptf.q_, addr);
204 os.writeEntry(
"relax", relax_);
205 q_.writeEntry(
"q",
os);
217 fixedMultiPhaseHeatFluxFvPatchScalarField
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Calculates a wall temperature that produces the specified overall wall heat flux across all the phase...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
fixedMultiPhaseHeatFluxFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Fundamental fluid thermodynamic properties.
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Class to represent a system of phases and model interfacial transfers between them.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
const word & name() const
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Namespace for handling debugging switches.
const std::string patch
OpenFOAM patch number as a std::string.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Type gWeightedSum(const UList< scalar > &weights, const UList< Type > &fld, const label comm)
The global weighted sum (integral) of a field, using the mag() of the weights.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
MinMax< Type > gMinMax(const FieldField< Field, Type > &f)
static constexpr const zero Zero
Global zero (0).
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fvPatchField< scalar > fvPatchScalarField
#define forAll(list, i)
Loop across all elements in list.