MaxwellStefan< BasicThermophysicalTransportModel > Class Template Reference

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...

Inheritance diagram for MaxwellStefan< BasicThermophysicalTransportModel >:
Collaboration diagram for MaxwellStefan< BasicThermophysicalTransportModel >:

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< volScalarFieldD (const volScalarField &Yi) const
 Mass diffusivity. More...
 
virtual tmp< scalarFieldD (const volScalarField &Yi, const label patchi) const
 Mass diffusivity. More...
 
virtual tmp< volScalarFieldDEff (const volScalarField &Yi) const
 Effective mass diffusion coefficient. More...
 
virtual tmp< scalarFieldDEff (const volScalarField &Yi, const label patchi) const
 Effective mass diffusion coefficient. More...
 
virtual tmp< surfaceScalarFieldq () const
 Return the heat flux [W/m^2]. More...
 
virtual tmp< scalarFieldq (const label patchi) const
 Return the patch heat flux [W/m^2]. More...
 
virtual tmp< fvScalarMatrixdivq (volScalarField &he) const
 Return the source term for the energy equation. More...
 
virtual tmp< surfaceScalarFieldj (const volScalarField &Yi) const
 Return the specie flux for the given specie mass-fraction [kg/m^2/s]. More...
 
virtual tmp< scalarFieldj (const volScalarField &Yi, const label patchi) const
 Return the specie flux. More...
 
virtual tmp< fvScalarMatrixdivj (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)
 
virtual void swap (fvMesh &otherMesh)
 Swap mesh. More...
 
- 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...
 

Detailed Description

template<class BasicThermophysicalTransportModel>
class Foam::MaxwellStefan< BasicThermophysicalTransportModel >

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.
Source files

Definition at line 79 of file MaxwellStefan.H.

Member Typedef Documentation

◆ alphaField

typedef BasicThermophysicalTransportModel::alphaField alphaField

Definition at line 177 of file MaxwellStefan.H.

◆ momentumTransportModel

typedef BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel

Definition at line 181 of file MaxwellStefan.H.

◆ thermoModel

typedef BasicThermophysicalTransportModel::thermoModel thermoModel

Definition at line 184 of file MaxwellStefan.H.

Constructor & Destructor Documentation

◆ MaxwellStefan()

MaxwellStefan ( const word type,
const momentumTransportModel momentumTransport,
const thermoModel thermo 
)

Construct from a momentum transport model and a thermo model.

Definition at line 392 of file MaxwellStefan.C.

References forAll, and thermo.

◆ ~MaxwellStefan()

virtual ~MaxwellStefan ( )
inlinevirtual

Destructor.

Definition at line 199 of file MaxwellStefan.H.

Member Function Documentation

◆ read()

◆ D() [1/2]

tmp< volScalarField > D ( const volScalarField Yi) const
virtual

Mass diffusivity.

for a given specie mass-fraction [kg/m/s]

Definition at line 544 of file MaxwellStefan.C.

References GeometricField< Type, GeoMesh, PrimitiveField >::New(), rho, and thermo.

Here is the call graph for this function:

◆ D() [2/2]

tmp< scalarField > D ( const volScalarField Yi,
const label  patchi 
) const
virtual

Mass diffusivity.

for a given specie mass-fraction for patch [kg/m/s]

Definition at line 559 of file MaxwellStefan.C.

References patchi, multicomponentThermo::specieIndex(), and thermo.

Here is the call graph for this function:

◆ DEff() [1/2]

tmp< volScalarField > DEff ( const volScalarField Yi) const
virtual

Effective mass diffusion coefficient.

for a given specie mass-fraction [kg/m/s]

Definition at line 572 of file MaxwellStefan.C.

References GeometricField< Type, GeoMesh, PrimitiveField >::New(), rho, and thermo.

Here is the call graph for this function:

◆ DEff() [2/2]

tmp< scalarField > DEff ( const volScalarField Yi,
const label  patchi 
) const
virtual

Effective mass diffusion coefficient.

for a given specie mass-fraction for patch [kg/m/s]

Definition at line 586 of file MaxwellStefan.C.

References patchi, multicomponentThermo::specieIndex(), and thermo.

Here is the call graph for this function:

◆ q() [1/2]

◆ q() [2/2]

tmp< scalarField > q ( const label  patchi) const
virtual

Return the patch heat flux [W/m^2].

Definition at line 674 of file MaxwellStefan.C.

References alpha(), multicomponentThermo::defaultSpecie(), forAll, p, fluidThermo::p(), patchi, tmp< T >::ref(), UPtrList< T >::size(), basicThermo::T(), Foam::T(), thermo, Y, and multicomponentThermo::Y().

Here is the call graph for this function:

◆ divq()

◆ j() [1/2]

◆ j() [2/2]

tmp< scalarField > j ( const volScalarField Yi,
const label  patchi 
) const
virtual

Return the specie flux.

for the given specie mass-fraction for patch [kg/m^2/s]

Definition at line 848 of file MaxwellStefan.C.

References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), multicomponentThermo::defaultSpecie(), forAll, patchi, tmp< T >::ref(), UPtrList< T >::size(), multicomponentThermo::specieIndex(), thermo, Y, and multicomponentThermo::Y().

Here is the call graph for this function:

◆ divj()

tmp< fvScalarMatrix > divj ( volScalarField Yi) const
virtual

Return the source term for the given specie mass-fraction equation.

Definition at line 886 of file MaxwellStefan.C.

References Foam::fvc::div(), DimensionedField< Type, GeoMesh, PrimitiveField >::mesh(), and thermo.

Here is the call graph for this function:

◆ predict()

void predict
virtual

Update the diffusion coefficients and flux corrections.

Definition at line 898 of file MaxwellStefan.C.

◆ movePoints()

bool movePoints
virtual

Update for mesh motion.

Implements MoveableMeshObject< Mesh >.

Definition at line 906 of file MaxwellStefan.C.

◆ topoChange()

void topoChange ( const polyTopoChangeMap map)
virtual

Update topology using the given map.

Implements TopoChangeableMeshObject< fvMesh >.

Definition at line 913 of file MaxwellStefan.C.

References forAll.

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map.

Implements TopoChangeableMeshObject< fvMesh >.

Definition at line 932 of file MaxwellStefan.C.

References forAll.

◆ distribute()

void distribute ( const polyDistributionMap map)
virtual

Redistribute or update using the given distribution map.

Implements DistributeableMeshObject< Mesh >.

Definition at line 951 of file MaxwellStefan.C.

References forAll.


The documentation for this class was generated from the following files: