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

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

Public Types

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

Public Member Functions

 pureZoneMixture (const dictionary &thermoDict, const fvMesh &mesh, const word &phaseName)
 Construct from dictionary, mesh and phase name. More...
 
virtual ~pureZoneMixture ()=default
 Destructor. More...
 
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. More...
 
- Public Member Functions inherited from basicMixture
 basicMixture (const dictionary &, const fvMesh &, const word &)
 Construct from dictionary, mesh and phase name. More...
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

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

typedef ThermoType thermoType

The type of thermodynamics this mixture is instantiated for.

Definition at line 138 of file pureZoneMixture.H.

Constructor & Destructor Documentation

◆ pureZoneMixture()

pureZoneMixture ( const dictionary thermoDict,
const fvMesh mesh,
const word phaseName 
)

Construct from dictionary, mesh and phase name.

Definition at line 59 of file pureZoneMixture.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and IndirectListBase< T, Addr >::find().

Here is the call graph for this function:

◆ ~pureZoneMixture()

virtual ~pureZoneMixture ( )
virtualdefault

Destructor.

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 165 of file pureZoneMixture.H.

◆ cellMixture()

const ThermoType & cellMixture ( const label  celli) const

Definition at line 98 of file pureZoneMixture.C.

◆ patchFaceMixture()

const ThermoType & patchFaceMixture ( const label  patchi,
const label  facei 
) const

Definition at line 109 of file pureZoneMixture.C.

◆ cellVolMixture()

const ThermoType & cellVolMixture ( const scalar  p,
const scalar  T,
const label  celli 
) const

Definition at line 122 of file pureZoneMixture.C.

◆ patchFaceVolMixture()

const ThermoType & patchFaceVolMixture ( const scalar  p,
const scalar  T,
const label  patchi,
const label  facei 
) const

Definition at line 136 of file pureZoneMixture.C.

◆ read()

void read ( const dictionary thermoDict)

Read dictionary.

Definition at line 149 of file pureZoneMixture.C.

References thermoDict.


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