Go to the documentation of this file.
40 #ifndef APIdiffCoefFunc_H
41 #define APIdiffCoefFunc_H
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_);
Abstract base class for thermo-physical functions.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
APIdiffCoefFunc(const scalar a, const scalar b, const scalar wf, const scalar wa)
Construct from components.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
API function for vapour mass diffusivity.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
void writeData(Ostream &os) const
Write the function coefficients.
friend Ostream & operator<<(Ostream &os, const APIdiffCoefFunc &f)
dimensionedScalar sqrt(const dimensionedScalar &ds)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar f(scalar p, scalar T) const
API vapour mass diffusivity function using properties from.
TypeName("APIdiffCoefFunc")
Runtime type information.