polynomialTransport< Thermo, PolySize > Class Template Reference

Transport package using polynomial functions for mu and kappa. More...

Inheritance diagram for polynomialTransport< Thermo, PolySize >:
[legend]
Collaboration diagram for polynomialTransport< Thermo, PolySize >:
[legend]

Public Member Functions

 polynomialTransport (const word &, const polynomialTransport &)
 Construct as named copy. More...
 
 polynomialTransport (const dictionary &dict)
 Construct from dictionary. More...
 
autoPtr< polynomialTransportclone () const
 Construct and return a clone. More...
 
scalar mu (const scalar p, const scalar T) const
 Dynamic viscosity [kg/ms]. More...
 
scalar kappa (const scalar p, const scalar T) const
 Thermal conductivity [W/mK]. More...
 
scalar alphah (const scalar p, const scalar T) const
 Thermal diffusivity of enthalpy [kg/ms]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const polynomialTransport &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< polynomialTransportNew (const dictionary &dict)
 
static word typeName ()
 Return the instantiated type name. More...
 

Friends

polynomialTransport operator+ (const polynomialTransport &, const polynomialTransport &)
 
polynomialTransport operator* (const scalar, const polynomialTransport &)
 
Ostreamoperator (Ostream &, const polynomialTransport &)
 

Detailed Description

template<class Thermo, int PolySize = 8>
class Foam::polynomialTransport< Thermo, PolySize >

Transport package using polynomial functions for mu and kappa.

Usage
Property Description
muCoeffs<8> Dynamic viscosity polynomial coefficients
kappaCoeffs<8> Thermal conductivity polynomial coefficients

Example of the specification of the transport properties:

    transport
    {
        muCoeffs<8>     ( 1000 -0.05 0.003 0 0 0 0 0 );
        kappaCoeffs<8>  ( 2000 -0.15 0.023 0 0 0 0 0 );
    }

The polynomial expressions are evaluated as so:

\[ \mu = 1000 - 0.05 T + 0.003 T^2 \]

\[ \kappa = 2000 - 0.15 T + 0.023 T^2 \]

Note
  • Dynamic viscosity polynomial coefficients evaluate to an expression in [Pa.s], but internally uses [Pa.s/kmol].
  • Thermal conductivity polynomial coefficients evaluate to an expression in [W/m/K], but internally uses [W/m/K/kmol].
Source files
See also
Foam::Polynomial

Definition at line 127 of file polynomialTransport.H.

Constructor & Destructor Documentation

◆ polynomialTransport() [1/2]

polynomialTransport ( const word name,
const polynomialTransport< Thermo, PolySize > &  pt 
)
inline

Construct as named copy.

Definition at line 47 of file polynomialTransportI.H.

References Foam::name().

Here is the call graph for this function:

◆ polynomialTransport() [2/2]

polynomialTransport ( const dictionary dict)
explicit

Construct from dictionary.

Definition at line 34 of file polynomialTransport.C.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::polynomialTransport< Thermo, PolySize > > clone
inline

Construct and return a clone.

Definition at line 61 of file polynomialTransportI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

Foam::autoPtr< Foam::polynomialTransport< Thermo, PolySize > > New ( const dictionary dict)
inlinestatic

Definition at line 69 of file polynomialTransportI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 180 of file polynomialTransport.H.

◆ mu()

Foam::scalar mu ( const scalar  p,
const scalar  T 
) const
inline

Dynamic viscosity [kg/ms].

Definition at line 78 of file polynomialTransportI.H.

References T, and dimensioned< Type >::value().

Here is the call graph for this function:

◆ kappa()

Foam::scalar kappa ( const scalar  p,
const scalar  T 
) const
inline

Thermal conductivity [W/mK].

Definition at line 89 of file polynomialTransportI.H.

References T, and dimensioned< Type >::value().

Here is the call graph for this function:

◆ alphah()

Foam::scalar alphah ( const scalar  p,
const scalar  T 
) const
inline

Thermal diffusivity of enthalpy [kg/ms].

Definition at line 100 of file polynomialTransportI.H.

References Cp, p, and T.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 48 of file polynomialTransport.C.

References Ostream::beginBlock(), Ostream::endBlock(), Foam::name(), os(), and Ostream::writeEntry().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const polynomialTransport< Thermo, PolySize > &  )
inline

Definition at line 112 of file polynomialTransportI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 133 of file polynomialTransportI.H.

References s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

polynomialTransport operator+ ( const polynomialTransport< Thermo, PolySize > &  ,
const polynomialTransport< Thermo, PolySize > &   
)
friend

◆ operator*

polynomialTransport operator* ( const  scalar,
const polynomialTransport< Thermo, PolySize > &   
)
friend

◆ operator

Ostream & operator ( Ostream ,
const polynomialTransport< Thermo, PolySize > &   
)
friend

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