Loading...
Searching...
No Matches
polynomialTransport< Thermo, PolySize > Class Template Reference

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

#include <polynomialTransport.H>

Inheritance diagram for polynomialTransport< Thermo, PolySize >:
Collaboration diagram for polynomialTransport< Thermo, PolySize >:

Public Member Functions

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

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 123 of file polynomialTransport.H.

Constructor & Destructor Documentation

◆ polynomialTransport() [1/2]

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

Construct as named copy.

Definition at line 40 of file polynomialTransportI.H.

References Foam::name().

Here is the call graph for this function:

◆ polynomialTransport() [2/2]

template<class Thermo, int PolySize>
polynomialTransport ( const dictionary & dict)
explicit

Construct from dictionary.

Definition at line 27 of file polynomialTransport.C.

References dict.

Member Function Documentation

◆ clone()

template<class Thermo, int PolySize>
Foam::autoPtr< Foam::polynomialTransport< Thermo, PolySize > > clone ( ) const
inline

Construct and return a clone.

Definition at line 54 of file polynomialTransportI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Definition at line 62 of file polynomialTransportI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

template<class Thermo, int PolySize = 8>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 192 of file polynomialTransport.H.

◆ mu()

template<class Thermo, int PolySize>
Foam::scalar mu ( const scalar p,
const scalar T ) const
inline

Dynamic viscosity [kg/ms].

Definition at line 71 of file polynomialTransportI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ kappa()

template<class Thermo, int PolySize>
Foam::scalar kappa ( const scalar p,
const scalar T ) const
inline

Thermal conductivity [W/mK].

Definition at line 82 of file polynomialTransportI.H.

References p, and Foam::T().

Referenced by alphah().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alphah()

template<class Thermo, int PolySize>
Foam::scalar alphah ( const scalar p,
const scalar T ) const
inline

Thermal diffusivity of enthalpy [kg/ms].

Definition at line 93 of file polynomialTransportI.H.

References Cp, kappa(), p, and Foam::T().

Here is the call graph for this function:

◆ write()

template<class Thermo, int PolySize>
void write ( Ostream & os) const

Write to Ostream.

Definition at line 41 of file polynomialTransport.C.

References name, and os().

Here is the call graph for this function:

◆ operator+=()

template<class Thermo, int PolySize = 8>
void operator+= ( const polynomialTransport< Thermo, PolySize > & )
inline

Definition at line 105 of file polynomialTransportI.H.

References Foam::mag(), operator, and Y.

Here is the call graph for this function:

◆ operator*=()

template<class Thermo, int PolySize>
void operator*= ( const scalar s)
inline

Definition at line 126 of file polynomialTransportI.H.

References operator, and s().

Here is the call graph for this function:

◆ operator+

template<class Thermo, int PolySize = 8>
polynomialTransport operator+ ( const polynomialTransport< Thermo, PolySize > & ,
const polynomialTransport< Thermo, PolySize > &  )
friend

◆ operator*

template<class Thermo, int PolySize = 8>
polynomialTransport operator* ( const scalar ,
const polynomialTransport< Thermo, PolySize > &  )
friend

◆ operator

template<class Thermo, int PolySize = 8>
Ostream & operator ( Ostream & ,
const polynomialTransport< Thermo, PolySize > &  )
friend

Referenced by operator*=(), and operator+=().


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