Base class for multi-component Maxwell Stefan generalised Fick's law diffusion coefficients based temperature gradient heat flux model with optional Soret thermal diffusion of species. More...
Public Types | |
typedef BasicThermophysicalTransportModel::alphaField | alphaField |
typedef BasicThermophysicalTransportModel::momentumTransportModel | momentumTransportModel |
typedef BasicThermophysicalTransportModel::thermoModel | thermoModel |
Public Member Functions | |
MaxwellStefan (const word &type, const momentumTransportModel &momentumTransport, const thermoModel &thermo) | |
Construct from a momentum transport model and a thermo model. More... | |
virtual | ~MaxwellStefan () |
Destructor. More... | |
virtual bool | read () |
Read thermophysicalTransport dictionary. More... | |
virtual tmp< volScalarField > | DEff (const volScalarField &Yi) const |
Effective mass diffusion coefficient. More... | |
virtual tmp< scalarField > | DEff (const volScalarField &Yi, const label patchi) const |
Effective mass diffusion coefficient. More... | |
virtual tmp< surfaceScalarField > | q () const |
Return the heat flux [W/m^2]. More... | |
virtual tmp< fvScalarMatrix > | divq (volScalarField &he) const |
Return the source term for the energy equation. More... | |
virtual tmp< surfaceScalarField > | j (const volScalarField &Yi) const |
Return the specie flux for the given specie mass-fraction [kg/m^2/s]. More... | |
virtual tmp< fvScalarMatrix > | divj (volScalarField &Yi) const |
Return the source term for the given specie mass-fraction equation. More... | |
virtual void | predict () |
Update the diffusion coefficients and flux corrections. More... | |
virtual bool | movePoints () |
Update for mesh motion. More... | |
virtual void | topoChange (const polyTopoChangeMap &map) |
Update topology using the given map. More... | |
virtual void | mapMesh (const polyMeshMap &map) |
Update from another mesh using the given map. More... | |
virtual void | distribute (const polyDistributionMap &map) |
Redistribute or update using the given distribution map. More... | |
Public Member Functions inherited from TopoChangeableMeshObject< fvMesh > | |
TopoChangeableMeshObject (Type &mo) | |
Public Member Functions inherited from DistributeableMeshObject< Mesh > | |
template<class Type > | |
DistributeableMeshObject (Type &mo) | |
Public Member Functions inherited from MoveableMeshObject< Mesh > | |
template<class Type > | |
MoveableMeshObject (Type &mo) | |
Public Member Functions inherited from DeletableMeshObject< Mesh > | |
template<class Type > | |
DeletableMeshObject (Type &mo) | |
virtual | ~DeletableMeshObject ()=default |
Virtual destructor to make class polymorphic. More... | |
Base class for multi-component Maxwell Stefan generalised Fick's law diffusion coefficients based temperature gradient heat flux model with optional Soret thermal diffusion of species.
The binary mass diffusion coefficients are specified as Function2<scalar>s of pressure and temperature but independent of composition.
The heat flux source is implemented as an implicit energy correction to the temperature gradient based flux source. At convergence the energy correction is 0.
References:
Taylor, R., & Krishna, R. (1993). Multicomponent mass transfer (Vol. 2). John Wiley & Sons. Merk, H. J. (1959). The macroscopic equations for simultaneous heat and mass transfer in isotropic, continuous and closed systems. Applied Scientific Research, Section A, 8(1), 73-99.
Definition at line 72 of file MaxwellStefan.H.
typedef BasicThermophysicalTransportModel::alphaField alphaField |
Definition at line 164 of file MaxwellStefan.H.
typedef BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel |
Definition at line 168 of file MaxwellStefan.H.
typedef BasicThermophysicalTransportModel::thermoModel thermoModel |
Definition at line 171 of file MaxwellStefan.H.
MaxwellStefan | ( | const word & | type, |
const momentumTransportModel & | momentumTransport, | ||
const thermoModel & | thermo | ||
) |
Construct from a momentum transport model and a thermo model.
Definition at line 350 of file MaxwellStefan.C.
|
inlinevirtual |
Destructor.
Definition at line 186 of file MaxwellStefan.H.
|
virtual |
Read thermophysicalTransport dictionary.
Reimplemented in MaxwellStefanFourier< laminarThermophysicalTransportModel >.
Definition at line 399 of file MaxwellStefan.C.
References Foam::dimDynamicViscosity, Foam::dimKinematicViscosity, Foam::dimPressure, Foam::dimTemperature, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, dictionary::found(), Foam::blockMeshTools::read(), List< T >::size(), multicomponentThermo::species(), dictionary::subDict(), thermo, and WarningInFunction.
|
virtual |
Effective mass diffusion coefficient.
for a given specie mass-fraction [kg/m/s] This is the self-diffusion coefficient
Definition at line 501 of file MaxwellStefan.C.
References GeometricField< Type, PatchField, GeoMesh >::New(), rho, and thermo.
|
virtual |
Effective mass diffusion coefficient.
for a given specie mass-fraction for patch [kg/m/s]
Definition at line 515 of file MaxwellStefan.C.
References patchi, multicomponentThermo::specieIndex(), and thermo.
|
virtual |
Return the heat flux [W/m^2].
Definition at line 529 of file MaxwellStefan.C.
References alpha(), multicomponentThermo::defaultSpecie(), Foam::dimArea, Foam::dimEnergy, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimMass, Foam::dimTime, forAll, Foam::constant::atomic::group, IOobject::groupName(), Foam::fvc::interpolate(), GeometricField< Type, PatchField, GeoMesh >::New(), p, fluidThermo::p(), tmp< T >::ref(), UPtrList< T >::size(), Foam::fvc::snGrad(), basicThermo::T(), Foam::T(), thermo, Y, and multicomponentThermo::Y().
|
virtual |
Return the source term for the energy equation.
Definition at line 602 of file MaxwellStefan.C.
References alpha(), multicomponentThermo::defaultSpecie(), Foam::dimArea, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimMass, Foam::dimTime, Foam::fvc::div(), forAll, he(), Foam::fvc::interpolate(), Foam::fvc::laplacian(), Foam::fvm::laplacianCorrection(), GeometricField< Type, PatchField, GeoMesh >::New(), p, fluidThermo::p(), tmp< T >::ref(), Foam::fvm::Su(), basicThermo::T(), Foam::T(), thermo, Y, and multicomponentThermo::Y().
|
virtual |
Return the specie flux for the given specie mass-fraction [kg/m^2/s].
Definition at line 673 of file MaxwellStefan.C.
References multicomponentThermo::defaultSpecie(), Foam::dimArea, Foam::dimMass, Foam::dimTime, forAll, Foam::constant::atomic::group, IOobject::groupName(), DimensionedField< Type, GeoMesh >::mesh(), Foam::name(), GeometricField< Type, PatchField, GeoMesh >::New(), tmp< T >::ref(), multicomponentThermo::specieIndex(), thermo, Y, and multicomponentThermo::Y().
|
virtual |
Return the source term for the given specie mass-fraction equation.
Definition at line 720 of file MaxwellStefan.C.
References Foam::fvc::div(), DimensionedField< Type, GeoMesh >::mesh(), and thermo.
|
virtual |
Update the diffusion coefficients and flux corrections.
Definition at line 732 of file MaxwellStefan.C.
|
virtual |
Update for mesh motion.
Implements MoveableMeshObject< Mesh >.
Definition at line 740 of file MaxwellStefan.C.
|
virtual |
Update topology using the given map.
Implements TopoChangeableMeshObject< fvMesh >.
Definition at line 747 of file MaxwellStefan.C.
|
virtual |
Update from another mesh using the given map.
Implements TopoChangeableMeshObject< fvMesh >.
Definition at line 759 of file MaxwellStefan.C.
|
virtual |
Redistribute or update using the given distribution map.
Implements DistributeableMeshObject< Mesh >.
Definition at line 771 of file MaxwellStefan.C.