Transport package using polynomial functions of the natural logarithm of temperature for the natural logarithm of dynamic viscosity and thermal conductivity: More...
Public Member Functions | |
logPolynomialTransport (const Thermo &t, const Polynomial< PolySize > &muPoly, const Polynomial< PolySize > &kappaPoly) | |
Construct from components. More... | |
logPolynomialTransport (const word &, const logPolynomialTransport &) | |
Construct as named copy. More... | |
logPolynomialTransport (const word &name, const dictionary &dict) | |
Construct from name and dictionary. More... | |
autoPtr< logPolynomialTransport > | 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 logPolynomialTransport &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static word | typeName () |
Return the instantiated type name. More... | |
Friends | |
logPolynomialTransport | operator+ (const logPolynomialTransport &, const logPolynomialTransport &) |
logPolynomialTransport | operator* (const scalar, const logPolynomialTransport &) |
Ostream & | operator (Ostream &, const logPolynomialTransport &) |
Transport package using polynomial functions of the natural logarithm of temperature for the natural logarithm of dynamic viscosity and thermal conductivity:
log(mu) = muCoeffs[0] + muCoeffs[1]*log(T) + muCoeffs[2]*sqr(log(T)) + muCoeffs[3]*pow3(log(T)) + muCoeffs[4]*pow4(log(T)) + muCoeffs[5]*pow(log(T), 5) + muCoeffs[6]*pow(log(T), 6) + muCoeffs[7]*pow(log(T), 7) log(kappa) = kappaCoeffs[0] + kappaCoeffs[1]*log(T) + kappaCoeffs[2]*sqr(log(T)) + kappaCoeffs[3]*pow3(log(T)) + kappaCoeffs[4]*pow4(log(T)) + kappaCoeffs[5]*pow(log(T), 5) + kappaCoeffs[6]*pow(log(T), 6) + kappaCoeffs[7]*pow(log(T), 7)
The polynomial function is templated on the order of the polynomial which defaults to 8.
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); }
Definition at line 121 of file logPolynomialTransport.H.
|
inline |
Construct from components.
Definition at line 31 of file logPolynomialTransportI.H.
|
inline |
Construct as named copy.
Definition at line 45 of file logPolynomialTransportI.H.
logPolynomialTransport | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from name and dictionary.
Definition at line 32 of file logPolynomialTransport.C.
|
inline |
Construct and return a clone.
Definition at line 59 of file logPolynomialTransportI.H.
|
inlinestatic |
Return the instantiated type name.
Definition at line 163 of file logPolynomialTransport.H.
|
inline |
Dynamic viscosity [kg/m/s].
Definition at line 71 of file logPolynomialTransportI.H.
References Foam::exp(), Foam::log(), and Foam::T().
|
inline |
Thermal conductivity [W/m/K].
Definition at line 82 of file logPolynomialTransportI.H.
References Foam::exp(), Foam::log(), and Foam::T().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 59 of file logPolynomialTransport.C.
References dictionary::add(), token::BEGIN_BLOCK, Foam::decrIndent(), dict, dictionaryName::dictName(), token::END_BLOCK, Foam::endl(), Foam::incrIndent(), Foam::indent(), Foam::name(), Foam::nl, and Foam::vtkWriteOps::write().
|
inline |
Definition at line 95 of file logPolynomialTransportI.H.
References Foam::mag(), and Y.
|
inline |
Definition at line 116 of file logPolynomialTransportI.H.
References s().
|
friend |
|
friend |
|
friend |