38Foam::semiPermeableBaffleMassFractionFvPatchScalarField::
39semiPermeableBaffleMassFractionFvPatchScalarField
46 mixedFvPatchScalarField(
p, iF),
52 valueFraction() =
Zero;
56Foam::semiPermeableBaffleMassFractionFvPatchScalarField::
57semiPermeableBaffleMassFractionFvPatchScalarField
65 mixedFvPatchScalarField(
p, iF),
66 c_(
dict.getOrDefault<scalar>(
"c", 0)),
67 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi"))
73 valueFraction() =
Zero;
77Foam::semiPermeableBaffleMassFractionFvPatchScalarField::
78semiPermeableBaffleMassFractionFvPatchScalarField
87 mixedFvPatchScalarField(ptf,
p, iF, mapper),
89 phiName_(ptf.phiName_)
93Foam::semiPermeableBaffleMassFractionFvPatchScalarField::
94semiPermeableBaffleMassFractionFvPatchScalarField
100 mixedFvPatchScalarField(ptf),
102 phiName_(ptf.phiName_)
106Foam::semiPermeableBaffleMassFractionFvPatchScalarField::
107semiPermeableBaffleMassFractionFvPatchScalarField
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];
140 return c_*patch().magSf()*(patchInternalField() - nbrYc);
159 const scalarField muEffp(turbModel.muEff(patch().index()));
162 valueFraction() = phip/(phip - patch().deltaCoeffs()*AMuEffp);
163 refGrad() = - phiY()/AMuEffp;
165 mixedFvPatchScalarField::updateCoeffs();
178 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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
virtual void operator=(const UList< scalar > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const GeometricField::Patch & lookupPatchField(const word &name, const GeometricField *=nullptr, const Type *=nullptr) const
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
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.
This is a mass-fraction boundary condition for a semi-permeable baffle.
tmp< scalarField > phiY() const
Return the flux of this species through the baffle.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for managing temporary objects.
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)
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)