54 #ifndef NSRDS6ThermophysicalFunction_H 55 #define NSRDS6ThermophysicalFunction_H 63 namespace thermophysicalFunctions
77 scalar Tc_, a_, b_, c_, d_, e_;
106 scalar
f(scalar, scalar
T)
const 109 return a_*
pow(1 - Tr, ((e_*Tr + d_)*Tr + c_)*Tr + b_);
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar f(scalar, scalar T) const
Evaluate the function and return the result.
const dimensionedScalar & c
Speed of light in a vacuum.
TypeName("NSRDS6")
Runtime type information.
Abstract base class for thermo-physical functions.
const dimensionedScalar & b
Wien displacement law constant: default SI units: [m K].
virtual void write(Ostream &os) const =0
Write the function coefficients.
NSRDS6(const scalar Tc, const scalar a, const scalar b, const scalar c, const scalar d, const scalar e)
Construct from components.
virtual void write(Ostream &os) const
Write the function coefficients.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const doubleScalar e
Elementary charge.
NSRDS function number 106.