Permalink
Browse files

specieThermo: Revert erroneous bug-fix

  • Loading branch information...
1 parent 7fb78ff commit 6f9e6e8dbbf532045d67a5ba8fa003d20f052e7a Henry committed Nov 1, 2012
Showing with 5 additions and 12 deletions.
  1. +5 −12 src/thermophysicalModels/specie/thermo/specieThermo/specieThermoI.H
@@ -200,22 +200,15 @@ inline Foam::scalar Foam::specieThermo<Thermo>::A(const scalar T) const
template<class Thermo>
inline Foam::scalar Foam::specieThermo<Thermo>::K(const scalar T) const
{
- if (equal(this->nMoles(), SMALL))
+ scalar arg = -this->nMoles()*this->g(T)/(this->RR*T);
+
+ if (arg < 600.0)
{
- return 1.0;
+ return exp(arg);
}
else
{
- scalar arg = -this->nMoles()*this->g(T)/(this->RR*T);
-
- if (arg < 600.0)
- {
- return exp(arg);
- }
- else
- {
- return VGREAT;
- }
+ return VGREAT;
}
}

0 comments on commit 6f9e6e8

Please sign in to comment.