Skip to content
Snippets Groups Projects
Commit eca9cf4c authored by mattijs's avatar mattijs
Browse files

Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev

parents cd8b38fe e92aaab8
Branches
Tags
No related merge requests found
......@@ -87,13 +87,13 @@ public:
// Member functions
//- Return the compostion of the combustion mixture
//- Return the compostion of the mixture
virtual basicMixture& composition()
{
return *this;
}
//- Return the compostion of the combustion mixture
//- Return the compostion of the mixture
virtual const basicMixture& composition() const
{
return *this;
......
......@@ -87,13 +87,13 @@ public:
// Member functions
//- Return the compostion of the combustion mixture
//- Return the compostion of the mixture
virtual basicMixture& composition()
{
return *this;
}
//- Return the compostion of the combustion mixture
//- Return the compostion of the mixture
virtual const basicMixture& composition() const
{
return *this;
......
......@@ -47,7 +47,7 @@ namespace Foam
{
/*---------------------------------------------------------------------------*\
Class APIdiffCoefFunc Declaration
Class APIdiffCoefFunc Declaration
\*---------------------------------------------------------------------------*/
class APIdiffCoefFunc
......@@ -59,6 +59,9 @@ class APIdiffCoefFunc
// API vapour mass diffusivity function coefficients
scalar a_, b_, wf_, wa_;
// Helper variables
scalar alpha_, beta_;
public:
......@@ -74,7 +77,9 @@ public:
a_(a),
b_(b),
wf_(wf),
wa_(wa)
wa_(wa),
alpha_(sqrt(1/wf_ + 1/wa_)),
beta_(sqr((cbrt(a_) + cbrt(b_))))
{}
//- Construct from Istream
......@@ -83,21 +88,21 @@ public:
a_(readScalar(is)),
b_(readScalar(is)),
wf_(readScalar(is)),
wa_(readScalar(is))
wa_(readScalar(is)),
alpha_(sqrt(1/wf_ + 1/wa_)),
beta_(sqr((cbrt(a_) + cbrt(b_))))
{}
// Member Functions
//- API vapour mass diffusivity function
//- API vapour mass diffusivity function using properties from
// construction
scalar f(scalar p, scalar T) const
{
return
3.6059e-3*(pow(1.8*T, 1.75))*sqrt(1/wf_ + 1/wa_)
/(p*sqr((cbrt(a_) + cbrt(b_))));
return 3.6059e-3*(pow(1.8*T, 1.75))*alpha_/(p*beta_);
}
//- Write the function coefficients
void writeData(Ostream& os) const
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment