Abstract base class for specie-transferring mass fraction boundary conditions. More...
Public Types | |
enum | property { massFraction, moleFraction, molarConcentration, partialPressure } |
Enumeration for the property driving the transfer. More... | |
Public Member Functions | |
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 tmp< scalarField > | calcPhiYp () const =0 |
Return the flux of this species. 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... | |
virtual void | write (Ostream &) const |
Write. More... | |
Static Public Member Functions | |
static const basicSpecieMixture & | composition (const objectRegistry &db) |
Access the composition for the given database. More... | |
Static Public Attributes | |
static const NamedEnum< property, 4 > | propertyNames_ |
Property type names. More... | |
Protected Attributes | |
const scalar | c_ |
Transfer coefficient. More... | |
const property | property_ |
Property driving the transfer. More... | |
Abstract base class for specie-transferring mass fraction boundary conditions.
Derived classes compute the actual species flux. Those fluxes are summed up by the specieTransferVelocityFvPatchVectorField velocity condition to generate the net mass transfer into or out of the patch. This mass-fraction condition then generates a corrective diffusive flux to ensure that the correct amounts of the transferring species are transported through the patch.
Definition at line 58 of file specieTransferMassFractionFvPatchScalarField.H.
enum property |
Enumeration for the property driving the transfer.
Enumerator | |
---|---|
massFraction | |
moleFraction | |
molarConcentration | |
partialPressure |
Definition at line 65 of file specieTransferMassFractionFvPatchScalarField.H.
specieTransferMassFractionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 76 of file specieTransferMassFractionFvPatchScalarField.C.
References Foam::Zero.
Referenced by specieTransferMassFractionFvPatchScalarField::composition(), and specieTransferMassFractionFvPatchScalarField::specieTransferMassFractionFvPatchScalarField().
specieTransferMassFractionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 97 of file specieTransferMassFractionFvPatchScalarField.C.
References fvPatchField< Type >::operator=(), fvPatch::size(), specieTransferMassFractionFvPatchScalarField::specieTransferMassFractionFvPatchScalarField(), and Foam::Zero.
specieTransferMassFractionFvPatchScalarField | ( | const specieTransferMassFractionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given fixedValueTypeFvPatchField.
onto a new patch
Definition at line 126 of file specieTransferMassFractionFvPatchScalarField.C.
References specieTransferMassFractionFvPatchScalarField::specieTransferMassFractionFvPatchScalarField().
|
delete |
Disallow copy without setting internal field reference.
specieTransferMassFractionFvPatchScalarField | ( | const specieTransferMassFractionFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 145 of file specieTransferMassFractionFvPatchScalarField.C.
References specieTransferMassFractionFvPatchScalarField::autoMap().
|
static |
Access the composition for the given database.
Definition at line 62 of file specieTransferMassFractionFvPatchScalarField.C.
References composition, basicThermo::dictName, objectRegistry::lookupObject(), Foam::name(), and specieTransferMassFractionFvPatchScalarField::specieTransferMassFractionFvPatchScalarField().
Referenced by adsorptionMassFractionFvPatchScalarField::calcPhiYp(), semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), and NamedEnum< compressibleField, 8 >::names().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Used to update fields following mesh topology change
Definition at line 163 of file specieTransferMassFractionFvPatchScalarField.C.
References specieTransferMassFractionFvPatchScalarField::rmap().
Referenced by specieTransferMassFractionFvPatchScalarField::specieTransferMassFractionFvPatchScalarField().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Used to reconstruct fields
Definition at line 174 of file specieTransferMassFractionFvPatchScalarField.C.
References specieTransferMassFractionFvPatchScalarField::rmap().
Referenced by specieTransferMassFractionFvPatchScalarField::autoMap(), and specieTransferMassFractionFvPatchScalarField::rmap().
|
pure virtual |
Return the flux of this species.
Implemented in semiPermeableBaffleMassFractionFvPatchScalarField, and adsorptionMassFractionFvPatchScalarField.
|
virtual |
Return the flux of this species.
Definition at line 189 of file specieTransferMassFractionFvPatchScalarField.C.
References objectRegistry::time(), timeIndex, and TimeState::timeIndex().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 202 of file specieTransferMassFractionFvPatchScalarField.C.
References specieTransferMassFractionFvPatchScalarField::write().
|
virtual |
Write.
Reimplemented in semiPermeableBaffleMassFractionFvPatchScalarField, and adsorptionMassFractionFvPatchScalarField.
Definition at line 242 of file specieTransferMassFractionFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by specieTransferMassFractionFvPatchScalarField::updateCoeffs(), adsorptionMassFractionFvPatchScalarField::write(), and semiPermeableBaffleMassFractionFvPatchScalarField::write().
|
static |
Property type names.
Definition at line 74 of file specieTransferMassFractionFvPatchScalarField.H.
Referenced by NamedEnum< compressibleField, 8 >::names().
|
protected |
Transfer coefficient.
Definition at line 99 of file specieTransferMassFractionFvPatchScalarField.H.
Referenced by adsorptionMassFractionFvPatchScalarField::calcPhiYp(), and semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp().
|
protected |
Property driving the transfer.
Definition at line 102 of file specieTransferMassFractionFvPatchScalarField.H.
Referenced by adsorptionMassFractionFvPatchScalarField::calcPhiYp(), and semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp().