Loading...
Searching...
No Matches
pureZoneMixture< ThermoType > Class Template Reference

Version of pureMixture that uses different mixtures for different cellZones. Every cellZone has to provide an entry for its mixture. A reserved entry 'none' is for all unzoned cells. More...

#include <pureZoneMixture.H>

Inheritance diagram for pureZoneMixture< ThermoType >:
Collaboration diagram for pureZoneMixture< ThermoType >:

Public Types

typedef ThermoType thermoType
 The type of thermodynamics this mixture is instantiated for.
Public Types inherited from basicMixture
typedef basicMixture basicMixtureType
 The base class of the mixture.

Public Member Functions

 pureZoneMixture (const dictionary &thermoDict, const fvMesh &mesh, const word &phaseName)
 Construct from dictionary, mesh and phase name.
virtual ~pureZoneMixture ()=default
 Destructor.
const ThermoType & cellMixture (const label celli) const
const ThermoType & patchFaceMixture (const label patchi, const label facei) const
const ThermoType & cellVolMixture (const scalar p, const scalar T, const label celli) const
const ThermoType & patchFaceVolMixture (const scalar p, const scalar T, const label patchi, const label facei) const
void read (const dictionary &)
 Read dictionary.
Public Member Functions inherited from basicMixture
 basicMixture (const dictionary &, const fvMesh &, const word &)
 Construct from dictionary, mesh and phase name.

Static Public Member Functions

static word typeName ()
 Return the instantiated type name.

Detailed Description

template<class ThermoType>
class Foam::pureZoneMixture< ThermoType >

Version of pureMixture that uses different mixtures for different cellZones. Every cellZone has to provide an entry for its mixture. A reserved entry 'none' is for all unzoned cells.

Example of the zone based mixture specification:

mixture
{
    solid1
    {
        specie
        {
            molWeight   50;
        }

        transport
        {
            kappa   80;
        }

        thermodynamics
        {
            Hf      0;
            Cp      450;
        }

        equationOfState
        {
            rho     8000;
        }
    }
    solid2
    {
        /*!
         * \brief Start off from 'solid1' properties
*/
            ${solid1}

            /*!
             * \brief Selectively overwrite properties
             */
            transport
            {
                kappa   8;
            }
        }
    }

SourceFiles pureZoneMixture.C

\*—————————————————————————

Definition at line 94 of file pureZoneMixture.H.

Member Typedef Documentation

◆ thermoType

template<class ThermoType>
typedef ThermoType thermoType

The type of thermodynamics this mixture is instantiated for.

Definition at line 138 of file pureZoneMixture.H.

Constructor & Destructor Documentation

◆ pureZoneMixture()

template<class ThermoType>
pureZoneMixture ( const dictionary & thermoDict,
const fvMesh & mesh,
const word & phaseName )

Construct from dictionary, mesh and phase name.

Definition at line 58 of file pureZoneMixture.C.

References basicMixture::basicMixture(), for(), mesh, and thermoDict.

Here is the call graph for this function:

◆ ~pureZoneMixture()

template<class ThermoType>
virtual ~pureZoneMixture ( )
virtualdefault

Destructor.

Member Function Documentation

◆ typeName()

template<class ThermoType>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 165 of file pureZoneMixture.H.

◆ cellMixture()

template<class ThermoType>
const ThermoType & cellMixture ( const label celli) const

Definition at line 97 of file pureZoneMixture.C.

Referenced by cellVolMixture().

Here is the caller graph for this function:

◆ patchFaceMixture()

template<class ThermoType>
const ThermoType & patchFaceMixture ( const label patchi,
const label facei ) const

Definition at line 108 of file pureZoneMixture.C.

Referenced by patchFaceVolMixture().

Here is the caller graph for this function:

◆ cellVolMixture()

template<class ThermoType>
const ThermoType & cellVolMixture ( const scalar p,
const scalar T,
const label celli ) const

Definition at line 121 of file pureZoneMixture.C.

References cellMixture(), p, and Foam::T().

Here is the call graph for this function:

◆ patchFaceVolMixture()

template<class ThermoType>
const ThermoType & patchFaceVolMixture ( const scalar p,
const scalar T,
const label patchi,
const label facei ) const

Definition at line 134 of file pureZoneMixture.C.

References p, patchFaceMixture(), and Foam::T().

Here is the call graph for this function:

◆ read()

template<class ThermoType>
void read ( const dictionary & thermoDict)

Read dictionary.

Definition at line 148 of file pureZoneMixture.C.

References thermoDict.


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