58 if (!isA<mappedPatchBase>(patch().patch()))
61 <<
"' not type '" << mappedPatchBase::typeName <<
"'" 62 <<
"\n for patch " << p.
name()
63 <<
" of field " << internalField().name()
64 <<
" in file " << internalField().objectPath()
104 const word& YName = internalField().name();
108 refCast<const mappedPatchBase>(patch().patch());
112 refCast<const fvMesh>(nbrMesh).
boundary()[samplePatchi];
115 db().lookupObject<
fluidThermo>(physicalProperties::typeName);
122 .patchInternalField()
130 thermophysicalTransportModel::typeName
134 ttm.
alphaEff(patch().index())*patch().deltaCoeffs()
147 Wi = mixture.
Wi(mixture.
species()[YName]);
154 tW = thermo.
W(patch().index());
155 tNbrW = thermo.
W(nbrPatch.
index());
161 scalarField k(patch().size(), 1), nbrK(patch().size(), 1);
174 k *= thermo.
rho(patch().index())/Wi;
186 nbrK *= nbrPp*tNbrW/Wi;
197 /(1/
c_ +
k/alphaEffDeltap + nbrK/nbrAlphaEffDeltap)
198 *(
k*Yc - nbrK*nbrYc);
const scalar c_
Transfer coefficient.
fluidReactionThermo & thermo
virtual tmp< volScalarField > rho() const =0
Density [kg/m^3].
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.
const polyMesh & sampleMesh() const
Get the region mesh.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
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 scalar Wi(const label speciei) const =0
Molecular weight of the given specie [kg/kmol].
label k
Boltzmann constant.
Specialisation of basicMixture for a mixture consisting of a number for molecular species...
static const basicSpecieMixture & composition(const objectRegistry &db)
Access the composition for the given database.
virtual volScalarField & p()=0
Pressure [Pa].
Macros for easy insertion into run-time selection tables.
virtual tmp< scalarField > calcPhiYp() const
Return the flux of this species through the baffle.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Base-class for fluid thermodynamic properties.
Foam::fvPatchFieldMapper.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
faceListList boundary(nPatches)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual tmp< volScalarField > W() const =0
Molecular weight [kg/kmol].
const GeometricField::Patch & lookupPatchField(const word &name) const
Lookup and return the patchField of the named field from the.
Abstract base class for thermophysical transport models (RAS, LES and laminar).
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
Abstract base class for specie-transferring mass fraction boundary conditions.
const scalarField & deltaCoeffs() const
Return the face - cell distance coeffient.
virtual tmp< volScalarField > alphaEff() const =0
Effective thermal turbulent diffusivity of mixture [kg/m/s].
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...
const property property_
Property driving the transfer.
Mesh consisting of general polyhedral cells.
virtual const word & name() const
Return name.
A class for managing temporary objects.
virtual void write(Ostream &) const
Write.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const polyPatch & samplePolyPatch() const
Get the patch on the region.
const speciesTable & species() const
Return the table of species.