46 mixedFvPatchScalarField(
p, iF),
52 valueFraction() =
Zero;
65 mixedFvPatchScalarField(
p, iF),
66 c_(
dict.getOrDefault<scalar>(
"c", 0)),
67 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi"))
73 valueFraction() =
Zero;
87 mixedFvPatchScalarField(ptf,
p, iF, mapper),
89 phiName_(ptf.phiName_)
100 mixedFvPatchScalarField(ptf),
102 phiName_(ptf.phiName_)
114 mixedFvPatchScalarField(ptf, iF),
116 phiName_(ptf.phiName_)
130 const word& YName = internalField().name();
132 const label nbrPatchi = samplePolyPatch().index();
133 const fvPatch& nbrPatch =
patch().boundaryMesh()[nbrPatchi];
135 const auto& nbrYp = nbrPatch.lookupPatchField<
volScalarField>(YName);
139 return c_*
patch().magSf()*(patchInternalField() - nbrYc);
161 valueFraction() = phip/(phip -
patch().deltaCoeffs()*AMuEffp);
162 refGrad() = - phiY()/AMuEffp;
164 mixedFvPatchScalarField::updateCoeffs();
188 semiPermeableBaffleMassFractionFvPatchScalarField
semiPermeableBaffleMassFractionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute List data using default commsType, default flip/negate operator.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This is a mass-fraction boundary condition for a semi-permeable baffle.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
const mapDistribute & map() const
Return reference to the parallel distribution map.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
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.
A FieldMapper for finite-volume patch fields.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void write(Ostream &os) const
Write as a dictionary.
tmp< scalarField > phiY() const
Return the flux of this species through the baffle.
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.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual void write(Ostream &) const
Write.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)