61 scalar a_, b_, wf_, wa_;
103 virtual scalar
value(scalar
p, scalar
T)
const
105 return 3.6059e-3*(
pow(1.8*
T, 1.75))*alpha_/(
p*beta_);
113 scalar
value(scalar
p, scalar
T, scalar Wa)
const
115 const scalar alphaBinary =
sqrt(1/wf_ + 1/Wa);
116 return 3.6059e-3*(
pow(1.8*
T, 1.75))*alphaBinary/(
p*beta_);
const word & name() const
Return the name of the entry.
virtual scalar value(scalar p, scalar T) const
API vapour mass diffusivity function of pressure and temperature.
TypeName("APIdiffCoef")
Runtime type information.
virtual void write(Ostream &os, const unitConversions &units) const
Write the function coefficients.
APIdiffCoef(const word &name, const scalar a, const scalar b, const scalar wf, const scalar wa)
Construct from name and coefficients.
virtual tmp< Function2< scalar > > clone() const
Construct and return a clone.
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.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
const HashTable< unitConversion > & units()
Get the table of unit conversions.
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)