77 scalar a_, b_, c_, d_;
116 virtual scalar
value(
const scalar
T)
const
118 const scalar
p =
pow(1 -
T/c_, d_);
119 return a_/
pow(b_, 1 +
p);
125 const scalar
p =
pow(1 -
T/c_, d_);
126 return (a_*
log(b_)/c_*d_)*
p/(1 -
T/c_)/
pow(b_, 1 +
p);
130 virtual scalar
integral(
const scalar x1,
const scalar x2)
const;
const word & name() const
Return the name of the entry.
NSRDS function number 105.
virtual tmp< Function1< scalar > > clone() const
Construct and return a clone.
TypeName("NSRDS5")
Runtime type information.
virtual scalar derivative(const scalar T) const
Evaluate the derivative and return the result.
virtual void write(Ostream &os, const unitSets &units) const
Write the function coefficients.
virtual scalar integral(const scalar x1, const scalar x2) const
Integrate between two scalar values.
NSRDS5(const word &name, const scalar a, const scalar b, const scalar c, const scalar d)
Construct from components.
virtual scalar value(const scalar T) const
Evaluate the function and return the result.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for managing temporary objects.
A class for handling words, derived from string.
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedScalar log(const dimensionedScalar &ds)
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
Struct containing two unitSets for use in converting both the argument and the value of a Function1.