Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
sutherlandTransport Class Reference

Transport package using Sutherland's formula. More...

Public Member Functions

 sutherlandTransport (const Thermo &t, const scalar As, const scalar Ts)
 Construct from components. More...
 
 sutherlandTransport (const Thermo &t, const scalar mu1, const scalar T1, const scalar mu2, const scalar T2)
 Construct from two viscosities. More...
 
 sutherlandTransport (const word &, const sutherlandTransport &)
 Construct as named copy. More...
 
 sutherlandTransport (Istream &)
 Construct from Istream. More...
 
 sutherlandTransport (const dictionary &dict)
 Construct from dictionary. More...
 
 sutherlandTransport (const Thermo &t, const dictionary &dict)
 Construct from base thermo and dictionary. More...
 
autoPtr< sutherlandTransportclone () 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...
 
sutherlandTransportoperator= (const sutherlandTransport &)
 
void operator+= (const sutherlandTransport &)
 
void operator-= (const sutherlandTransport &)
 
void operator*= (const scalar)
 

Static Public Member Functions

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

Private Member Functions

void calcCoeffs (const scalar mu1, const scalar T1, const scalar mu2, const scalar T2)
 Calculate the Sutherland coefficients. More...
 
scalar readCoeff (const word &coeffName, const dictionary &dict)
 Read coefficient from dictionary. More...
 

Private Attributes

scalar As_
 
scalar Ts_
 

Friends

sutherlandTransport operator+ (const sutherlandTransport &, const sutherlandTransport &)
 
sutherlandTransport operator- (const sutherlandTransport &, const sutherlandTransport &)
 
sutherlandTransport operator* (const scalar, const sutherlandTransport &)
 
sutherlandTransport operator== (const sutherlandTransport &, const sutherlandTransport &)
 
Ostreamoperator (Ostream &, const sutherlandTransport &)
 

Detailed Description

Transport package using Sutherland's formula.

Templated into a given thermodynamics package (needed for thermal conductivity).

Dynamic viscosity [kg/m.s]

\[ \mu = A_s \frac{\sqrt{T}}{1 + T_s / T} \]

Source files

Definition at line 53 of file sutherlandTransport.H.

Constructor & Destructor Documentation

◆ sutherlandTransport() [1/6]

sutherlandTransport ( const Thermo &  t,
const scalar  As,
const scalar  Ts 
)
inline

Construct from components.

Definition at line 51 of file sutherlandTransportI.H.

◆ sutherlandTransport() [2/6]

sutherlandTransport ( const Thermo &  t,
const scalar  mu1,
const scalar  T1,
const scalar  mu2,
const scalar  T2 
)
inline

Construct from two viscosities.

Definition at line 65 of file sutherlandTransportI.H.

◆ sutherlandTransport() [3/6]

sutherlandTransport ( const word ,
const sutherlandTransport  
)
inline

Construct as named copy.

◆ sutherlandTransport() [4/6]

Construct from Istream.

◆ sutherlandTransport() [5/6]

sutherlandTransport ( const dictionary dict)

Construct from dictionary.

Definition at line 56 of file sutherlandTransport.C.

◆ sutherlandTransport() [6/6]

sutherlandTransport ( const Thermo &  t,
const dictionary dict 
)

Construct from base thermo and dictionary.

Definition at line 66 of file sutherlandTransport.C.

Member Function Documentation

◆ calcCoeffs()

void calcCoeffs ( const scalar  mu1,
const scalar  T1,
const scalar  mu2,
const scalar  T2 
)
inlineprivate

Calculate the Sutherland coefficients.

given two viscosities and temperatures

Definition at line 32 of file sutherlandTransportI.H.

References Foam::sqrt().

Here is the call graph for this function:

◆ readCoeff()

Foam::scalar readCoeff ( const word coeffName,
const dictionary dict 
)
private

Read coefficient from dictionary.

Definition at line 33 of file sutherlandTransport.C.

References dict, and readScalar.

◆ clone()

Foam::autoPtr< Foam::sutherlandTransport< Thermo > > clone ( ) const
inline

Construct and return a clone.

Definition at line 92 of file sutherlandTransportI.H.

◆ New() [1/2]

Foam::autoPtr< Foam::sutherlandTransport< Thermo > > New ( Istream is)
inlinestatic

Definition at line 104 of file sutherlandTransportI.H.

◆ New() [2/2]

Foam::autoPtr< Foam::sutherlandTransport< Thermo > > New ( const dictionary dict)
inlinestatic

Definition at line 118 of file sutherlandTransportI.H.

References dict.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 165 of file sutherlandTransport.H.

◆ mu()

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

Dynamic viscosity [kg/ms].

Definition at line 133 of file sutherlandTransportI.H.

References Foam::sqrt(), and 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/mK].

Definition at line 144 of file sutherlandTransportI.H.

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

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 155 of file sutherlandTransportI.H.

References Foam::constant::electromagnetic::kappa, p, and Foam::T().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

◆ operator=()

Foam::sutherlandTransport< Thermo > & operator= ( const sutherlandTransport )
inline

Definition at line 170 of file sutherlandTransportI.H.

◆ operator+=()

void operator+= ( const sutherlandTransport )
inline

Definition at line 185 of file sutherlandTransportI.H.

◆ operator-=()

void operator-= ( const sutherlandTransport )
inline

Definition at line 203 of file sutherlandTransportI.H.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 221 of file sutherlandTransportI.H.

References s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

◆ operator-

◆ operator*

sutherlandTransport operator* ( const  scalar,
const sutherlandTransport  
)
friend

◆ operator==

◆ operator

Ostream& operator ( Ostream ,
const sutherlandTransport  
)
friend

Field Documentation

◆ As_

scalar As_
private

Definition at line 103 of file sutherlandTransport.H.

◆ Ts_

scalar Ts_
private

Definition at line 103 of file sutherlandTransport.H.


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