48 massFluxFraction_(1.0)
65 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
66 rhoName_(
dict.getOrDefault<
word>(
"rho",
"none")),
67 massFluxFraction_(
dict.getOrDefault<scalar>(
"massFluxFraction", 1))
84 const totalFlowRateAdvectiveDiffusiveFvPatchScalarField& ptf,
86 const DimensionedField<scalar, volMesh>& iF,
87 const fvPatchFieldMapper& mapper
91 phiName_(ptf.phiName_),
92 rhoName_(ptf.rhoName_),
93 massFluxFraction_(ptf.massFluxFraction_)
104 phiName_(tppsf.phiName_),
105 rhoName_(tppsf.rhoName_),
106 massFluxFraction_(tppsf.massFluxFraction_)
118 phiName_(tppsf.phiName_),
119 rhoName_(tppsf.rhoName_),
120 massFluxFraction_(tppsf.massFluxFraction_)
152 const label patchi = patch().index();
154 const auto& turbModel =
160 internalField().group()
166 const scalarField alphap(turbModel.alphaEff(patchi));
168 refValue() = massFluxFraction_;
175 + alphap*patch().deltaCoeffs()*patch().magSf()/
max(
mag(phip), SMALL)
184 Info<< patch().boundaryMesh().mesh().name() <<
':'
185 << patch().name() <<
':'
187 <<
" mass flux[Kg/s]:" <<
phi
199 os.writeEntry(
"phi", phiName_);
200 os.writeEntry(
"rho", rhoName_);
201 os.writeEntry(
"massFluxFraction", massFluxFraction_);
213 totalFlowRateAdvectiveDiffusiveFvPatchScalarField
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...
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
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,...
const objectRegistry & db() const
The associated objectRegistry.
const fvPatch & patch() const noexcept
Return the patch.
bool updated() const noexcept
True if the boundary condition has already been updated.
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.
const DimensionedField< scalar, volMesh > & internalField() const noexcept
virtual void operator=(const UList< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
mixedFvPatchField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
virtual Field< scalar > & refGrad()
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual Field< scalar > & refValue()
virtual scalarField & valueFraction()
This BC is used for species inlets. The diffusion and advection fluxes are considered to calculate th...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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.
totalFlowRateAdvectiveDiffusiveFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
Namespace for handling debugging switches.
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).
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fvPatchField< scalar > fvPatchScalarField