parcelThermo Class Reference

Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides: More...

Public Member Functions

 parcelThermo (const fluidThermo &carrierThermo)
 Construct from carrier thermo. More...
 
 parcelThermo (const parcelThermo &)
 Copy constructor. More...
 
virtual ~parcelThermo ()
 Destructor. More...
 
const liquidMixturePropertiesliquids () const
 Return reference to the global (additional) liquids. More...
 
const solidMixturePropertiessolids () const
 Return reference to the global (additional) solids. More...
 
label liquidId (const word &cmptName, bool allowNotFound=false) const
 Index of liquid component. More...
 
label solidId (const word &cmptName, bool allowNotFound=false) const
 Index of solid component. More...
 

Detailed Description

Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:

- liquids : liquid components - access to elemental properties

  • solids : solid components - access to elemental properties

If no liquids or solids are specified, their respective pointers will also be nullptr.

Registered to the mesh so that it can be looked-up

Source files

Definition at line 58 of file parcelThermo.H.

Constructor & Destructor Documentation

◆ parcelThermo() [1/2]

parcelThermo ( const fluidThermo carrierThermo)

Construct from carrier thermo.

Definition at line 30 of file parcelThermo.C.

References Foam::endl(), dictionary::found(), Foam::Info, liquidMixtureProperties::New(), solidMixtureProperties::New(), basicThermo::properties(), and dictionary::subDict().

Here is the call graph for this function:

◆ parcelThermo() [2/2]

parcelThermo ( const parcelThermo pThermo)

Copy constructor.

Definition at line 67 of file parcelThermo.C.

◆ ~parcelThermo()

~parcelThermo ( )
virtual

Destructor.

Definition at line 76 of file parcelThermo.C.

Member Function Documentation

◆ liquids()

const Foam::liquidMixtureProperties & liquids ( ) const

Return reference to the global (additional) liquids.

Definition at line 82 of file parcelThermo.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ solids()

const Foam::solidMixtureProperties & solids ( ) const

Return reference to the global (additional) solids.

Definition at line 95 of file parcelThermo.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ liquidId()

Foam::label liquidId ( const word cmptName,
bool  allowNotFound = false 
) const

Index of liquid component.

Definition at line 108 of file parcelThermo.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Here is the call graph for this function:

◆ solidId()

Foam::label solidId ( const word cmptName,
bool  allowNotFound = false 
) const

Index of solid component.

Definition at line 133 of file parcelThermo.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Here is the call graph for this function:

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