Transport package with constant properties. More...
Public Member Functions | |
constTransport (const word &, const constTransport &) | |
Construct as named copy. More... | |
constTransport (const dictionary &dict) | |
Construct from dictionary. More... | |
autoPtr< constTransport > | clone () 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 autoPtr< constTransport > | New (const dictionary &dict) |
static word | typeName () |
Return the instantiated type name. More... | |
Friends | |
constTransport | operator+ (const constTransport &, const constTransport &) |
constTransport | operator* (const scalar, const constTransport &) |
Ostream & | operator (Ostream &, const constTransport &) |
Transport package with constant properties.
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; }
Definition at line 70 of file constTransport.H.
|
inline |
Construct as named copy.
Definition at line 48 of file constTransportI.H.
constTransport | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 32 of file constTransport.C.
References dictionary::add(), token::BEGIN_BLOCK, Foam::decrIndent(), dict, dictionaryName::dictName(), token::END_BLOCK, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::found(), Foam::incrIndent(), Foam::indent(), dictionary::lookup(), Foam::name(), Foam::nl, dictionary::subDict(), Foam::vtkWriteOps::write(), and Ostream::write().
|
inline |
Construct and return a clone.
Definition at line 63 of file constTransportI.H.
References constTransport< Thermo >::New().
|
inlinestatic |
Definition at line 75 of file constTransportI.H.
References dict, and constTransport< Thermo >::mu().
Referenced by constTransport< Thermo >::clone().
|
inlinestatic |
Return the instantiated type name.
Definition at line 151 of file constTransport.H.
References constTransport< Thermo >::kappa(), constTransport< Thermo >::mu(), constTransport< Thermo >::operator*=(), constTransport< Thermo >::operator+=(), p, Foam::T(), and constTransport< Thermo >::write().
|
inline |
Dynamic viscosity [kg/m/s].
Definition at line 90 of file constTransportI.H.
References constTransport< Thermo >::kappa().
Referenced by constTransport< Thermo >::kappa(), constTransport< Thermo >::New(), and constTransport< Thermo >::typeName().
|
inline |
Thermal conductivity [W/m/K].
Definition at line 101 of file constTransportI.H.
References Cp(), and constTransport< Thermo >::mu().
Referenced by constTransport< Thermo >::mu(), and constTransport< Thermo >::typeName().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Referenced by constTransport< Thermo >::typeName().
|
inline |
Definition at line 114 of file constTransportI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::name(), and Y.
Referenced by constTransport< Thermo >::typeName().
|
inline |
Definition at line 150 of file constTransportI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), and s().
Referenced by constTransport< Thermo >::typeName().
|
friend |
|
friend |
|
friend |