54 #ifndef NSRDS1ThermophysicalFunction_H 55 #define NSRDS1ThermophysicalFunction_H 63 namespace thermophysicalFunctions
77 scalar a_, b_, c_, d_, e_;
105 scalar
f(scalar, scalar
T)
const 107 return exp(a_ + b_/T + c_*
log(T) + d_*
pow(T, e_));
dimensionedScalar log(const dimensionedScalar &ds)
NSRDS function number 101.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &os) const
Write the function coefficients.
const dimensionedScalar & c
Speed of light in a vacuum.
Abstract base class for thermo-physical functions.
dimensionedScalar exp(const dimensionedScalar &ds)
const dimensionedScalar & b
Wien displacement law constant: default SI units: [m K].
TypeName("NSRDS1")
Runtime type information.
scalar f(scalar, scalar T) const
Evaluate the function and return the result.
virtual void write(Ostream &os) const =0
Write the function coefficients.
NSRDS1(const scalar a, const scalar b, const scalar c, const scalar d, const scalar e)
Construct from components.
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.