38Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::
39totalFlowRateAdvectiveDiffusiveFvPatchScalarField
48 massFluxFraction_(1.0)
56Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::
57totalFlowRateAdvectiveDiffusiveFvPatchScalarField
65 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
66 rhoName_(
dict.getOrDefault<
word>(
"rho",
"none")),
67 massFluxFraction_(
dict.getOrDefault<scalar>(
"massFluxFraction", 1))
88Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::
89totalFlowRateAdvectiveDiffusiveFvPatchScalarField
98 phiName_(ptf.phiName_),
99 rhoName_(ptf.rhoName_),
100 massFluxFraction_(ptf.massFluxFraction_)
104Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::
105totalFlowRateAdvectiveDiffusiveFvPatchScalarField
111 phiName_(tppsf.phiName_),
112 rhoName_(tppsf.rhoName_),
113 massFluxFraction_(tppsf.massFluxFraction_)
117Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::
118totalFlowRateAdvectiveDiffusiveFvPatchScalarField
125 phiName_(tppsf.phiName_),
126 rhoName_(tppsf.rhoName_),
127 massFluxFraction_(tppsf.massFluxFraction_)
159 const label patchi = patch().index();
167 internalField().group()
176 refValue() = massFluxFraction_;
183 + alphap*patch().deltaCoeffs()*patch().magSf()/
max(
mag(phip), SMALL)
190 scalar
phi =
gSum(-phip*(*
this));
192 Info<< patch().boundaryMesh().mesh().name() <<
':'
193 << patch().name() <<
':'
194 << this->internalField().name() <<
" :"
195 <<
" mass flux[Kg/s]:" <<
phi
210 this->writeEntry(
"value",
os);
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...
Generic templated field type.
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,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
virtual tmp< volScalarField > alphaEff() const
Return the effective turbulent thermal diffusivity for enthalpy.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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...
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.
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 rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch 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)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Type gSum(const FieldField< Field, Type > &f)
messageStream Info
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)