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);
153 const turbulenceModel& turbModel =
154 db().lookupObject<turbulenceModel>
158 const scalarField muEffp(turbModel.muEff(patch().index()));
161 valueFraction() = phip/(phip - patch().deltaCoeffs()*AMuEffp);
162 refGrad() = -
phiY()/AMuEffp;
164 mixedFvPatchScalarField::updateCoeffs();
175 os.writeEntryIfDifferent<scalar>(
"c", 0, c_);
176 os.writeEntryIfDifferent<
word>(
"phi",
"phi", phiName_);
188 semiPermeableBaffleMassFractionFvPatchScalarField
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...
@ MUST_READ
Reading required.
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,...
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.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const GeometricField::Patch & lookupPatchField(const word &name) const
Lookup the named field from the local registry and return the patch field corresponding to this patch...
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.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
const mapDistribute & map() const
Return reference to the parallel distribution map.
@ NEARESTPATCHFACE
nearest face on selected patch
virtual void write(Ostream &os) const
Write as a dictionary.
const polyPatch & samplePolyPatch() const
Get the patch on the region.
mappedPatchBase(const polyPatch &)
Construct from patch.
This is a mass-fraction boundary condition for a semi-permeable baffle.
virtual void write(Ostream &) const
Write.
tmp< scalarField > phiY() const
Return the flux of this species through the baffle.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
semiPermeableBaffleMassFractionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for managing temporary objects.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
Abstract base class for turbulence models (RAS, LES and laminar).
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,...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static constexpr const zero Zero
Global zero (0).
fvPatchField< scalar > fvPatchScalarField