constTransport< Thermo > Class Template Reference

Transport package with constant properties. More...

Inheritance diagram for constTransport< Thermo >:
Collaboration diagram for constTransport< Thermo >:

Public Member Functions

 constTransport (const Thermo &t, const scalar mu, const bool constPr, const scalar rPr, const scalar kappa)
 Construct from components. More...
 
 constTransport (const word &, const constTransport &)
 Construct as named copy. More...
 
 constTransport (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
autoPtr< constTransportclone () 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 constTransport &)
 
void operator*= (const scalar)
 

Static Public Member Functions

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

Friends

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

Detailed Description

template<class Thermo>
class Foam::constTransport< Thermo >

Transport package with constant properties.

Usage
Property Description
mu Constant dynamic viscosity [Pa.s]
Pr Constant Prandtl number []

Example specification of constTransport for air:

    transport
    {
        mu              1.82e-05;
        Pr              0.71;
    }
Source files

Definition at line 99 of file constTransport.H.

Constructor & Destructor Documentation

◆ constTransport() [1/3]

constTransport ( const Thermo &  t,
const scalar  mu,
const bool  constPr,
const scalar  rPr,
const scalar  kappa 
)
inline

Construct from components.

Definition at line 29 of file constTransportI.H.

◆ constTransport() [2/3]

constTransport ( const word name,
const constTransport< Thermo > &  ct 
)
inline

Construct as named copy.

Definition at line 47 of file constTransportI.H.

◆ constTransport() [3/3]

constTransport ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 32 of file constTransport.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::found(), dictionary::lookup(), and Foam::patchToPatchTools::NaN().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::constTransport< Thermo > > clone
inline

Construct and return a clone.

Definition at line 63 of file constTransportI.H.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 145 of file constTransport.H.

◆ mu()

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

Dynamic viscosity [kg/m/s].

Definition at line 75 of file constTransportI.H.

◆ kappa()

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

Thermal conductivity [W/m/K].

Definition at line 86 of file constTransportI.H.

References Cp(), Foam::constant::physicoChemical::mu, p, and Foam::T().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

◆ operator+=()

void operator+= ( const constTransport< Thermo > &  )
inline

Definition at line 99 of file constTransportI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::name(), Foam::patchToPatchTools::NaN(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 135 of file constTransportI.H.

References s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

constTransport operator+ ( const constTransport< Thermo > &  ,
const constTransport< Thermo > &   
)
friend

◆ operator*

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

◆ operator

Ostream& operator ( Ostream ,
const constTransport< Thermo > &   
)
friend

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