38 #ifndef APIdiffCoefThermophysicalFunction_H 39 #define APIdiffCoefThermophysicalFunction_H 47 namespace thermophysicalFunctions
61 scalar a_, b_, wf_, wa_;
92 scalar
f(scalar
p, scalar
T)
const 94 return 3.6059e-3*(
pow(1.8*T, 1.75))*alpha_/(p*beta_);
99 scalar
f(scalar
p, scalar
T, scalar Wa)
const 101 const scalar alphaBinary =
sqrt(1/wf_ + 1/Wa);
102 return 3.6059e-3*(
pow(1.8*T, 1.75))*alphaBinary/(p*beta_);
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.
dimensionedScalar sqrt(const dimensionedScalar &ds)
TypeName("APIdiffCoef")
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.
APIdiffCoef(const scalar a, const scalar b, const scalar wf, const scalar wa)
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)
scalar f(scalar p, scalar T) const
API vapour mass diffusivity function using properties from.