43 mixedFvPatchScalarField(p, iF),
49 valueFraction() =
Zero;
62 mixedFvPatchScalarField(p, iF),
70 valueFraction() =
Zero;
84 mixedFvPatchScalarField(ptf, p, iF, mapper),
86 phiName_(ptf.phiName_)
97 mixedFvPatchScalarField(ptf),
99 phiName_(ptf.phiName_)
111 mixedFvPatchScalarField(ptf, iF),
113 phiName_(ptf.phiName_)
127 const word& YName = internalField().name();
137 return c_*patch().magSf()*(patchInternalField() - nbrYc);
156 const scalarField muEffp(turbModel.muEff(patch().index()));
159 valueFraction() = phip/(phip - patch().deltaCoeffs()*AMuEffp);
160 refGrad() = -
phiY()/AMuEffp;
162 mixedFvPatchScalarField::updateCoeffs();
173 writeEntryIfDifferent<scalar>(os,
"c", scalar(0), c_);
174 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
175 writeEntry(
"value", os);
const fvBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
semiPermeableBaffleMassFractionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
virtual void write(Ostream &) const
Write as a dictionary.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This is a mass-fraction boundary condition for a semi-permeable baffle.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
const mapDistribute & map() const
Return reference to the parallel distribution map.
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const polyPatch & patch() const
Return the polyPatch.
Foam::fvPatchFieldMapper.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
tmp< scalarField > phiY() const
Return the flux of this species through the baffle.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const GeometricField::Patch & lookupPatchField(const word &name, const GeometricField *=nullptr, const Type *=nullptr) const
Lookup and return the patchField of the named field from the.
label index() const
Return the index of this patch in the boundaryMesh.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual void write(Ostream &) const
Write.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const polyPatch & samplePolyPatch() const
Get the patch on the region.