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
90 mixedFvPatchField<scalar>(ptf,
p, iF, 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_;
182 scalar
phi =
gSum(-phip*(*
this));
184 Info<<
patch().boundaryMesh().mesh().name() <<
':' 185 <<
patch().name() <<
':' 186 << this->internalField().name() <<
" :" 187 <<
" mass flux[Kg/s]:" <<
phi 213 totalFlowRateAdvectiveDiffusiveFvPatchScalarField
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
This BC is used for species inlets. The diffusion and advection fluxes are considered to calculate th...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Macros for easy insertion into run-time selection tables.
virtual Field< scalar > & refValue()
constexpr const char *const group
Group name for atomic constants.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Type gSum(const FieldField< Field, Type > &f)
fvPatchField< scalar > fvPatchScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual scalarField & valueFraction()
A FieldMapper for finite-volume patch fields.
int debug
Static debugging option.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
OBJstream os(runTime.globalPath()/outputName)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
totalFlowRateAdvectiveDiffusiveFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual Field< scalar > & refGrad()
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.