This is a mass-fraction boundary condition for an adsorbing wall. More...
Public Member Functions | |
TypeName ("adsorptionMassFraction") | |
Runtime type information. More... | |
adsorptionMassFractionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
adsorptionMassFractionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
adsorptionMassFractionFvPatchScalarField (const adsorptionMassFractionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given fixedValueTypeFvPatchField. More... | |
adsorptionMassFractionFvPatchScalarField (const adsorptionMassFractionFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
adsorptionMassFractionFvPatchScalarField (const adsorptionMassFractionFvPatchScalarField &, 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... | |
tmp< scalarField > | calcPhiYp () const |
Return the flux of this species. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
![]() | |
specieTransferMassFractionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
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 fvPatchFieldMapper &) | |
Construct by mapping given fixedValueTypeFvPatchField. 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 | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchScalarField &, const labelList &) |
Reverse map the given fvPatchField onto this 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 | |
![]() | |
enum | property { massFraction, moleFraction, molarConcentration, partialPressure } |
Enumeration for the property driving the transfer. More... | |
![]() | |
static const basicSpecieMixture & | composition (const objectRegistry &db) |
Access the composition for the given database. More... | |
![]() | |
static const NamedEnum< property, 4 > | propertyNames_ |
Property type names. More... | |
![]() | |
const scalar | c_ |
Transfer coefficient. More... | |
const property | property_ |
Property driving the transfer. More... | |
This is a mass-fraction boundary condition for an adsorbing wall.
This condition models a baffle which adsorbs some species and not 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 concentration adjacent to the patch.
where
![]() | = | Flux of the adsorbing specie [kg/s] |
![]() | = | Transfer coefficient [kg/m^2/s/<property-dimensions>] |
![]() | = | Patch face area [m^2] |
![]() | = | Property adjacent to the patch [<property-dimensions>] |
A species that is adsorbed by the patch will, therefore, have a coefficient greater than zero, whilst a species that is not adsorbed 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 adsorptionMassFraction; property molarConcentration; c 1e-3; value $internalField; }
Definition at line 138 of file adsorptionMassFractionFvPatchScalarField.H.
adsorptionMassFractionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 37 of file adsorptionMassFractionFvPatchScalarField.C.
Referenced by adsorptionMassFractionFvPatchScalarField::adsorptionMassFractionFvPatchScalarField(), and adsorptionMassFractionFvPatchScalarField::clone().
adsorptionMassFractionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 48 of file adsorptionMassFractionFvPatchScalarField.C.
References adsorptionMassFractionFvPatchScalarField::adsorptionMassFractionFvPatchScalarField().
adsorptionMassFractionFvPatchScalarField | ( | const adsorptionMassFractionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given fixedValueTypeFvPatchField.
onto a new patch
Definition at line 60 of file adsorptionMassFractionFvPatchScalarField.C.
References adsorptionMassFractionFvPatchScalarField::adsorptionMassFractionFvPatchScalarField().
|
delete |
Disallow copy without setting internal field reference.
adsorptionMassFractionFvPatchScalarField | ( | const adsorptionMassFractionFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 73 of file adsorptionMassFractionFvPatchScalarField.C.
TypeName | ( | "adsorptionMassFraction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 191 of file adsorptionMassFractionFvPatchScalarField.H.
References adsorptionMassFractionFvPatchScalarField::adsorptionMassFractionFvPatchScalarField(), adsorptionMassFractionFvPatchScalarField::calcPhiYp(), and adsorptionMassFractionFvPatchScalarField::write().
|
virtual |
Return the flux of this species.
Implements specieTransferMassFractionFvPatchScalarField.
Definition at line 85 of file adsorptionMassFractionFvPatchScalarField.C.
References thermophysicalTransportModel::alphaEff(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), specieTransferMassFractionFvPatchScalarField::c_, specieTransferMassFractionFvPatchScalarField::composition(), basicThermo::dictName, k, specieTransferMassFractionFvPatchScalarField::massFraction, specieTransferMassFractionFvPatchScalarField::molarConcentration, specieTransferMassFractionFvPatchScalarField::moleFraction, fluidThermo::p(), specieTransferMassFractionFvPatchScalarField::partialPressure, specieTransferMassFractionFvPatchScalarField::property_, basicThermo::rho(), basicSpecieMixture::species(), thermo, fluidThermo::W(), basicSpecieMixture::Wi(), adsorptionMassFractionFvPatchScalarField::write(), and Foam::Zero.
Referenced by adsorptionMassFractionFvPatchScalarField::clone().
|
virtual |
Write.
Reimplemented from specieTransferMassFractionFvPatchScalarField.
Definition at line 159 of file adsorptionMassFractionFvPatchScalarField.C.
References Foam::makePatchTypeField(), specieTransferMassFractionFvPatchScalarField::write(), and Foam::writeEntry().
Referenced by adsorptionMassFractionFvPatchScalarField::calcPhiYp(), and adsorptionMassFractionFvPatchScalarField::clone().