Commit graph

6 commits

Author SHA1 Message Date
Dave Goodwin
9479564e1d misc fixes 2007-01-27 16:54:48 +00:00
Harry Moffat
6d85b768d8 Changed the estimateEP_Brinkley convergence criteria to more stringent
than the main convergence criteria in equilibrium(). This was necessary
to avoid another nonconvergence case. You don't want equilibrate() routine's
matrix algorithm to handle ill-conditioned matrices.

Changed the storage of element potentials. Now, dimensionless element
potentials are storred, instead of dimensional one. There is less dependence
on temperature.

All debugging print statements now use Cantera's writelog() utility.
2007-01-12 23:41:08 +00:00
Harry Moffat
857af1e25b Modification to some of the ChemEquil algorithms to handle charged
species effectively and to handle equilibrium situations where the
number of components is less than the number of elements.
2007-01-01 21:20:07 +00:00
Harry Moffat
921caa1e5d Upgraded the BasisOptimize file. It now has been tested a bit more.
ElementRearrange() function has been added to it.

ChemEquil has been upgraded. It now uses BasisOptimize. A better
estimateElementPotentials() function has been installed that doesn't
lead to as many stalls in the main algorithm. This is achieved by
making sure that estimated mole fractions of component species are
significant.

Various tweaks to estimateEP_Brinkley() has been added. It now passes the
gri30 test problem in the fuego_tabular_props application.
2006-12-12 02:23:26 +00:00
Harry Moffat
369b20af88 Fixed a potential unsatisfied external, if someone were to define
DEBUG_HKM.
2006-12-11 18:42:13 +00:00
Harry Moffat
971772db0d Utility commit:
Fixed an error in ChemEquil.cpp where there was an overwrite of an
   array.
   Added a getMoles() command to MultiPhase object.
   Added the file BasisOptimize which calculates the number of components
in a multiphase problem rigorously, using a QR factorization of the
stoichiometric coefficent matrix, and calculates an optimized basis
set of components using those species with the largest concentrations.
It also calculates the formationRxnMatrix based on those components.
This routine isn't hooked into anything yet.
2006-12-11 18:29:43 +00:00