Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

specieThermo: Revert erroneous bug-fix

  • Loading branch information...
commit 6f9e6e8dbbf532045d67a5ba8fa003d20f052e7a 1 parent 7fb78ff
Henry authored
View
17 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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.