This is a mass-fraction boundary condition for a semi-permeable baffle. More...


Public Member Functions | |
| TypeName ("semiPermeableBaffleMassFraction") | |
| Runtime type information. More... | |
| semiPermeableBaffleMassFractionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| semiPermeableBaffleMassFractionFvPatchScalarField (const semiPermeableBaffleMassFractionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
| Construct by mapping given fixedValueTypeFvPatchField. More... | |
| semiPermeableBaffleMassFractionFvPatchScalarField (const semiPermeableBaffleMassFractionFvPatchScalarField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| semiPermeableBaffleMassFractionFvPatchScalarField (const semiPermeableBaffleMassFractionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| virtual tmp< scalarField > | calcPhiYp () const |
| Return the flux of this species through the baffle. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Public Member Functions inherited from specieTransferMassFractionFvPatchScalarField | |
| specieTransferMassFractionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| specieTransferMassFractionFvPatchScalarField (const specieTransferMassFractionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
| Construct by mapping given. More... | |
| specieTransferMassFractionFvPatchScalarField (const specieTransferMassFractionFvPatchScalarField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| specieTransferMassFractionFvPatchScalarField (const specieTransferMassFractionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| virtual void | map (const fvPatchScalarField &, const fieldMapper &) |
| Map the given fvPatchField onto this fvPatchField. More... | |
| virtual void | reset (const fvPatchScalarField &) |
| Reset the fvPatchField to the given fvPatchField. More... | |
| virtual const scalarField & | phiYp () const |
| Return the flux of this species. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
Additional Inherited Members | |
Public Types inherited from specieTransferMassFractionFvPatchScalarField | |
| enum | property { massFraction , moleFraction , molarConcentration , partialPressure } |
| Enumeration for the property driving the transfer. More... | |
Static Public Member Functions inherited from specieTransferMassFractionFvPatchScalarField | |
| static const fluidMulticomponentThermo & | thermo (const objectRegistry &db) |
| Get the thermo from the given database. More... | |
Static Public Attributes inherited from specieTransferMassFractionFvPatchScalarField | |
| static const NamedEnum< property, 4 > | propertyNames_ |
| Property type names. More... | |
Protected Attributes inherited from specieTransferMassFractionFvPatchScalarField | |
| const scalar | c_ |
| Transfer coefficient. More... | |
| const property | property_ |
| Property driving the transfer. More... | |
This is a mass-fraction boundary condition for a semi-permeable baffle.
This condition models a baffle which is permeable to a some species and impermeable to others. It must be used in conjunction with a specieTransferVelocityFvPatchVectorField velocity condition, and a specieTransferTemperatureFvPatchScalarField temperature condition.
The mass flux of a species is calculated as a coefficient multiplied by the difference in a property across the baffle.
where
| = | Flux of the permeable specie [kg/s] | |
| = | Transfer coefficient [kg/m^2/s/<property-dimensions>] | |
| = | Patch face area [m^2] | |
| = | Property on the patch [<property-dimensions>] | |
| = | Property on the neighbour patch [<property-dimensions>] |
A species that the baffle is permeable to will, therefore, have a coefficient greater than zero, whilst a species that does not transfer will have a coefficient equal to zero.
| Property | Description | Req'd? | Default |
|---|---|---|---|
c | Transfer coefficient | no | 0 |
property | Property used to drive the transfer; massFraction, moleFraction, molarConcentration, or partialPressure | if c is non-zero | |
phi | Name of the flux field | no | phi |
U | Name of the velocity field | no | U |
Example of the boundary condition specification:
<patchName>
{
type semiPermeableBaffleMassFraction;
property molarConcentration;
c 1e-3;
value $internalField;
}Definition at line 141 of file semiPermeableBaffleMassFractionFvPatchScalarField.H.
| semiPermeableBaffleMassFractionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 37 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References dict, mappedPatchBaseBase::from::differentPatch, and mappedPatchBaseBase::validateMapForField().

| semiPermeableBaffleMassFractionFvPatchScalarField | ( | const semiPermeableBaffleMassFractionFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fieldMapper & | mapper | ||
| ) |
Construct by mapping given fixedValueTypeFvPatchField.
onto a new patch
Definition at line 57 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
| semiPermeableBaffleMassFractionFvPatchScalarField | ( | const semiPermeableBaffleMassFractionFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 70 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
| TypeName | ( | "semiPermeableBaffleMassFraction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 185 of file semiPermeableBaffleMassFractionFvPatchScalarField.H.
|
virtual |
Return the flux of this species through the baffle.
Implements specieTransferMassFractionFvPatchScalarField.
Definition at line 84 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), fluidThermophysicalTransportModel::DEff(), fvPatch::deltaCoeffs(), mappedFvPatchBaseBase::getMap(), fvPatch::index(), k, fvPatch::lookupPatchField(), mappedFvPatchBaseBase::nbrFvPatch(), fluidThermo::p(), basicThermo::rho(), multicomponentThermo::species(), thermo, dimensioned< Type >::value(), basicThermo::W(), multicomponentThermo::Wi(), and Foam::Zero.

|
virtual |
Write.
Reimplemented from specieTransferMassFractionFvPatchScalarField.
Definition at line 193 of file semiPermeableBaffleMassFractionFvPatchScalarField.C.
References specieTransferMassFractionFvPatchScalarField::write(), and Foam::writeEntry().
