81 <<
"Could not find a multi-component thermodynamic model." 84 return NullObjectRef<basicSpecieMixture>();
99 mixedFvPatchScalarField(p, iF),
107 valueFraction() =
Zero;
120 mixedFvPatchScalarField(p, iF),
126 : inputNames_.read(dict.
lookup(
"input"))
135 valueFraction() =
Zero;
149 mixedFvPatchScalarField(ptf, p, iF, mapper),
152 phiName_(ptf.phiName_),
164 mixedFvPatchScalarField(ptf),
167 phiName_(ptf.phiName_),
180 mixedFvPatchScalarField(ptf, iF),
183 phiName_(ptf.phiName_),
198 const word& YName = internalField().name();
203 const label nbrPatchi = samplePolyPatch().index();
214 <<
"A none input cannot be used with a non-zero transfer " 221 case partialPressure:
241 const scalar Wi(mixture.
Wi(mixture.
species()[YName]));
245 psic *= thermo.
W(patch().index())/Wi;
254 return c_*patch().magSf()*(psic - nbrPsic);
273 const scalarField muEffp(turbModel.muEff(patch().index()));
276 valueFraction() = phip/(phip - patch().deltaCoeffs()*AMuEffp);
277 refGrad() = - phiY()/AMuEffp;
279 mixedFvPatchScalarField::updateCoeffs();
290 writeEntryIfDifferent<scalar>(os,
"c", scalar(0), c_);
292 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
293 writeEntryIfDifferent<word>(os,
"p",
"p", pName_);
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.
Abstract base-class for fluid and solid thermodynamic properties.
errorManipArg< error, int > exit(error &err, const int errNo=1)
label index() const
Return the index of this patch in the fvBoundaryMesh.
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...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
basicSpecieMixture & composition
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.
const speciesTable & species() const
Return the table of species.
This is a mass-fraction boundary condition for a semi-permeable baffle.
bool foundObject(const word &name) const
Is the named Type found?
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual scalar Wi(const label speciei) const =0
Molecular weight of the given specie [kg/kmol].
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
rhoReactionThermo & thermo
virtual void write(Ostream &) const
Write.
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
const mapDistribute & map() const
Return reference to the parallel distribution map.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Initialise the NamedEnum HashTable from the static list of names.
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
const word dictName() const
Return the local dictionary name (final part of scoped name)
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...
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
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,.
static const NamedEnum< input, 4 > inputNames_
Input variable type names.
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.
static const basicSpecieMixture & composition(const objectRegistry &db)
Access the composition for the given database.
input
Enumeration for the input variable driving the transfer.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< volScalarField > W() const =0
Molecular weight [kg/kmol].
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Registry of regIOobjects.
virtual void write(Ostream &) const
Write.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.