The OpenFOAM Foundation
polynomialTransport< Thermo, PolySize > Class Template Reference

Transport package using polynomial functions of temperature for the dynamic viscosity and thermal conductivity: More...

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

## Public Member Functions

polynomialTransport (const Thermo &t, const Polynomial< PolySize > &muPoly, const Polynomial< PolySize > &kappaPoly)
Construct from components. More...

polynomialTransport (const word &, const polynomialTransport &)
Construct as named copy. More...

polynomialTransport (const word &name, const dictionary &dict)
Construct from name and dictionary. More...

autoPtr< polynomialTransportclone () const
Construct and return a clone. More...

scalar mu (const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s]. More...

scalar kappa (const scalar p, const scalar T) const
Thermal conductivity [W/m/K]. More...

void write (Ostream &os) const
Write to Ostream. More...

void operator+= (const polynomialTransport &)

void operator*= (const scalar)

## Static Public Member Functions

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 of temperature for the dynamic viscosity and thermal conductivity:

```    mu = muCoeffs[0] + muCoeffs[1]*T + muCoeffs[2]*sqr(T)
+ muCoeffs[3]*pow3(T) + muCoeffs[4]*pow4(T)
+ muCoeffs[5]*pow(T, 5) + muCoeffs[6]*pow(T, 6)
+ muCoeffs[7]*pow(T, 7)

kappa = kappaCoeffs[0] + kappaCoeffs[1]*T + kappaCoeffs[2]*sqr(T)
+ kappaCoeffs[3]*pow3(T) + kappaCoeffs[4]*pow4(T)
+ kappaCoeffs[5]*pow(T, 5) + kappaCoeffs[6]*pow(T, 6)
+ kappaCoeffs[7]*pow(T, 7)
```

The polynomial function is templated on the order of the polynomial which defaults to 8.

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);
}```
Source files
Foam::Polynomial

Definition at line 120 of file polynomialTransport.H.

## ◆ polynomialTransport() [1/3]

 polynomialTransport ( const Thermo & t, const Polynomial< PolySize > & muPoly, const Polynomial< PolySize > & kappaPoly )
inline

Construct from components.

Definition at line 31 of file polynomialTransportI.H.

## ◆ polynomialTransport() [2/3]

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

Construct as named copy.

Definition at line 45 of file polynomialTransportI.H.

## ◆ polynomialTransport() [3/3]

 polynomialTransport ( const word & name, const dictionary & dict )

Construct from name and dictionary.

Definition at line 32 of file polynomialTransport.C.

## ◆ clone()

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

Construct and return a clone.

Definition at line 59 of file polynomialTransportI.H.

## ◆ typeName()

 static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 158 of file polynomialTransport.H.

## ◆ mu()

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

Dynamic viscosity [kg/m/s].

Definition at line 71 of file polynomialTransportI.H.

References Foam::T().

Here is the call graph for this function:

## ◆ kappa()

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

Thermal conductivity [W/m/K].

Definition at line 82 of file polynomialTransportI.H.

References Foam::T().

Here is the call graph for this function:

## ◆ write()

 void write ( Ostream & os ) const

Write to Ostream.

Definition at line 59 of file polynomialTransport.C.

Here is the call graph for this function:

## ◆ operator+=()

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

Definition at line 95 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 116 of file polynomialTransportI.H.

References s().

Here is the call graph for this function:

## ◆ 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: