41 mixedFvPatchScalarField(
p, iF,
dict, false),
42 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
43 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"none")),
46 dict.lookupOrDefault<scalar>(
"massFluxFraction",
dimless, 1.0)
51 valueFraction() = 0.0;
53 if (
dict.found(
"value"))
75 mixedFvPatchScalarField(ptf,
p, iF, mapper),
76 phiName_(ptf.phiName_),
77 rhoName_(ptf.rhoName_),
78 massFluxFraction_(ptf.massFluxFraction_)
89 mixedFvPatchScalarField(tppsf, iF),
90 phiName_(tppsf.phiName_),
91 rhoName_(tppsf.rhoName_),
92 massFluxFraction_(tppsf.massFluxFraction_)
104 mixedFvPatchScalarField::map(ptf, mapper);
113 mixedFvPatchScalarField::reset(ptf);
129 internalField().group()
140 refValue() = massFluxFraction_;
148 alphap*patch().deltaCoeffs()*patch().magSf()/
max(
mag(phip), small)
151 mixedFvPatchScalarField::updateCoeffs();
155 scalar phi =
gSum(-phip*(*
this));
157 Info<< patch().mesh().name() <<
':'
158 << patch().name() <<
':'
159 << this->internalField().name() <<
" :"
160 <<
" mass flux[Kg/s]:" << phi
172 writeEntry(os,
"massFluxFraction", massFluxFraction_);
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 dimensionSet & dimensions() const
Return dimensions.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual const volScalarField & Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
Abstract base class for fluid thermophysical transport models RAS, LES and laminar.
virtual const fluidThermo & thermo() const =0
Access function to fluid thermophysical properties.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual tmp< volScalarField > kappaEff() const =0
Effective thermal turbulent conductivity.
This BC is used for species inlets. The diffusion and advection fluxes are considered to calculate th...
virtual void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchScalarField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
totalFlowRateAdvectiveDiffusiveFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for handling words, derived from string.
const dimensionSet dimless
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
SurfaceField< scalar > surfaceScalarField
Type gSum(const UList< Type > &f, const label comm)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)