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 > &, 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 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 fluidMulticomponentThermo & | thermo (const objectRegistry &db) |
Get the thermo from 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, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 76 of file specieTransferMassFractionFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh >::dimensions(), fvPatchField< Type >::operator, p, and Foam::Zero.
specieTransferMassFractionFvPatchScalarField | ( | const specieTransferMassFractionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given.
specieTransferMassFractionFvPatchScalarField onto a new patch
Definition at line 108 of file specieTransferMassFractionFvPatchScalarField.C.
|
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 127 of file specieTransferMassFractionFvPatchScalarField.C.
|
static |
Get the thermo from the given database.
Definition at line 61 of file specieTransferMassFractionFvPatchScalarField.C.
References objectRegistry::lookupObject().
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 146 of file specieTransferMassFractionFvPatchScalarField.C.
|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 161 of file specieTransferMassFractionFvPatchScalarField.C.
|
pure virtual |
Return the flux of this species.
Implemented in semiPermeableBaffleMassFractionFvPatchScalarField, and adsorptionMassFractionFvPatchScalarField.
|
virtual |
Return the flux of this species.
Definition at line 176 of file specieTransferMassFractionFvPatchScalarField.C.
References timeIndex.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 189 of file specieTransferMassFractionFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), basicThermo::Cp(), thermophysicalTransportModel::kappaEff(), and fluidThermophysicalTransportModel::thermo().
|
virtual |
Write.
Reimplemented in semiPermeableBaffleMassFractionFvPatchScalarField, and adsorptionMassFractionFvPatchScalarField.
Definition at line 225 of file specieTransferMassFractionFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by adsorptionMassFractionFvPatchScalarField::write(), and semiPermeableBaffleMassFractionFvPatchScalarField::write().
|
static |
Property type names.
Definition at line 74 of file specieTransferMassFractionFvPatchScalarField.H.
|
protected |
Transfer coefficient.
Definition at line 99 of file specieTransferMassFractionFvPatchScalarField.H.
|
protected |
Property driving the transfer.
Definition at line 102 of file specieTransferMassFractionFvPatchScalarField.H.