Commit graph

822 commits

Author SHA1 Message Date
Dave Goodwin
2cc7c139b6 *** empty log message *** 2007-12-24 15:27:37 +00:00
Harry Moffat
c5f28afd19 Made the report function a virtual function within the ThermoPhase
class. This means that the function can be modified depending on the
inheritance. This allows for the printout of molalities and
pH's for liquid phases where appropriate.

Took out a duplicate function, report(), in the Cantera namespace.
There was one in cxxutils.cpp and one in phasereport.cpp.
2007-12-21 02:58:41 +00:00
Harry Moffat
c65443d5e4 Fixed a typo 2007-12-21 00:42:43 +00:00
Harry Moffat
1e6d92f9db Greatly reduced the print levels. 2007-12-20 23:29:18 +00:00
Harry Moffat
666e688bea Bug fix to the newPhase function. 2007-12-20 22:07:34 +00:00
Harry Moffat
6abac36cad Added a few constructor routines, directly from file strings. 2007-12-20 20:39:51 +00:00
Harry Moffat
c82624b1ca Bug fix to make sure Cantera compiles without VCSnonideal 2007-12-19 22:55:45 +00:00
Harry Moffat
0c6c9dedef Added a few ifdefs for WITH_ options. 2007-12-19 22:40:17 +00:00
Harry Moffat
9e59a4c59d Attached Makefile to configure options for VCSnonideal 2007-12-19 22:23:38 +00:00
Harry Moffat
5adc201fc9 formatting changes. 2007-12-19 21:38:01 +00:00
Harry Moffat
d0e99aec18 Added vcs_nonideal, another equilibrium solver that can handle
nonideal thermo multiphase systems.
2007-12-19 21:19:28 +00:00
Harry Moffat
daa7cbfe95 Bug fixes for compile case where Adorbate is not included. 2007-12-19 17:08:17 +00:00
Harry Moffat
1f97037f69 Bug fix for instantiation of these thermo models via the ThermoFactory
approach.
2007-12-19 17:03:17 +00:00
Harry Moffat
536db63f5b Took out a write statement that was causing test failures. 2007-12-19 16:16:34 +00:00
Dave Goodwin
27056f0ee4 *** empty log message *** 2007-12-19 07:23:25 +00:00
Dave Goodwin
9ccb851cba *** empty log message *** 2007-12-19 04:02:42 +00:00
Dave Goodwin
e02cb93ea1 added LineBroadener 2007-12-18 02:53:12 +00:00
Dave Goodwin
c9b7f0e988 *** empty log message *** 2007-12-18 02:44:22 +00:00
Dave Goodwin
a201e7c538 *** empty log message *** 2007-12-17 22:43:09 +00:00
Dave Goodwin
355ef35537 updated constants to 2006 CODATA recommendations 2007-12-17 14:22:39 +00:00
Dave Goodwin
a1c481ca5a *** empty log message *** 2007-12-17 08:18:01 +00:00
Dave Goodwin
dc94ba0dec *** empty log message *** 2007-12-17 07:51:37 +00:00
Dave Goodwin
d971dafbff *** empty log message *** 2007-12-15 23:32:07 +00:00
Dave Goodwin
9d38835054 adding support for spectroscopy 2007-12-15 17:18:20 +00:00
Dave Goodwin
c438d5846f added spectroscopy support 2007-12-15 17:15:46 +00:00
Harry Moffat
02ff1a6071 Decreased the tolerance in the setState_UV() routine. This tolerance is
needed for the accurate calculation of Jacobians.
2007-12-04 17:37:41 +00:00
Harry Moffat
235958d810 Fixed an error in setState_UV() and similar routines that was occasionally
causing numerical errors in the calculation of Jacobians.
If the tolerances to these routines were set too low for calculation
of Jacobians, then the dt*=1.5 logic was causing the evaluation to
kick out of the routine with an incorrect deltaU value on the first
iteration. This meant that the numerically derived Jacobian entry
was off by a factor of 50%.
2007-12-04 17:34:19 +00:00
Harry Moffat
310babdc20 Eliminated a doulbe addition case 2007-12-03 21:46:51 +00:00
Dave Goodwin
670502b8c2 *** empty log message *** 2007-11-27 13:26:07 +00:00
Dave Goodwin
8ee5b76fc9 added SemiconductorPhase 2007-11-26 22:45:19 +00:00
Harry Moffat
d76694119c Upgraded algorithm for setState_HP() and friends.
Replaced the bare Newton's method with a root finder. This algorithm
is tolerant of step jumps in Thermo parameters at the temperature
boundaries.
The algorithm also has an initial treatment of spinodals. Basically,
if we are currently liquid, we want to stay liquid. If we are currently
gas, we want to stay gas.
2007-10-26 15:34:49 +00:00
Harry Moffat
34e3416a4c Changes due to more testing involving UV equil runs on a NASA9 mechanism.
-> Changed the damping strategy
  -> Upgraded the initial find-temperature strategy
  -> changed the solution tolerance requirements -> sometimes it was
          getting hung up at the end.
2007-10-12 21:36:55 +00:00
Harry Moffat
a7eda07d3e Changed tolerances due to a user problem (involving ionized gases)
failing.
2007-10-11 21:17:19 +00:00
Harry Moffat
d47551a0c5 Changed the Element potential algorithm to accept temperatures that
venture out of bounds more. There was a user issue where this cropped
up, and triggered a false convergence error.
Upped the debug printouts on this issue too.
2007-10-11 16:03:01 +00:00
Harry Moffat
26797f4a59 Fixed an error in the entropy calculation for NASA9 polynomials. 2007-10-09 21:02:49 +00:00
Harry Moffat
a278779178 Fixed an error that affected the calculation of transport properties
for mechanisms with all NASA9 species. The max and min temperatures
weren't being computed, which caused NaN's to appear during the
transport property data fitting procedure.
2007-10-06 02:24:13 +00:00
Harry Moffat
35d96f6d03 Changed the PITZER_TEMP_COMPLEX1 parameterization to use 5 coefficients
for beta1 and 5 coefficients for beta2. They are now the same as
beta0 and Cphi.
All xml blocks using this parameterization must be modified accordingly.
2007-10-02 00:49:55 +00:00
Harry Moffat
46324c7eea Fixed a typo 2007-09-30 15:58:56 +00:00
Harry Moffat
a8fe60d601 Fixed a bug in reporting parameters for Nasa9MultiTempRegion
Changed the Nasa9 reporting parameters routine to be compatible with
the multi temperature region reporting parameters.
2007-09-14 16:05:42 +00:00
Harry Moffat
7c89caa61f Added a missing file to the list of objects 2007-09-13 15:46:44 +00:00
Harry Moffat
f70c394fa6 This checkin adds the ability to read NASA9 polynomial standard states,
with arbitrary number of temperature intervals,
to Cantera's underlying routines.

Cantera can now read fortran formatted
NASA9 polynomials to create cti files

The cti files can then be translated into xml files.

And, the xml files can now be read into constant pressure standard state
objects and used normally within the guts of Cantera.

Currently, the standard state just links into the GeneralSpeciesThermo
object, which means that it's calculation speed is slow. However, atm
this satisfies the initial use case for this new capability.

In the near future, I'll push this out to the matlab and python interfaces.
2007-09-13 15:05:39 +00:00
Harry Moffat
bb52a2bc61 Fixed a spelling mistake. 2007-09-11 21:00:39 +00:00
Harry Moffat
ac36eab391 Solaris Bug fix:
solaris complained about the overload between ioflag as a parameter
and as member data. So, I changed the member data name to m_ioflag.
2007-08-29 19:57:48 +00:00
Harry Moffat
0ff546f855 Added tmp files to this list 2007-08-27 16:35:58 +00:00
Harry Moffat
60a93559af Added a capability to solve the surface pseudosteady state problem
via a damped newton's method. It also employs a false transient
algorithm when far from the solution.
2007-08-23 21:43:07 +00:00
Harry Moffat
12e9694043 Fixed the order of initializations so that it wouldn't produce
a warning message.
Doxygen additions.
2007-07-31 21:14:05 +00:00
Harry Moffat
a8d5e5a6a8 Added a m_nDim field to the base class. It seemed like the right
place to put it. Though, it's not used atm.
2007-07-31 21:12:36 +00:00
Harry Moffat
12a74f8acd Doxygen update - changes to comments
made pressure_ig() a const function
2007-07-31 21:11:08 +00:00
Harry Moffat
6b0516e54d Fixed an interface error in getSpeciesViscosities().
This seldom used interface function needed to ensure that update_T() is
called so that the temperature is current.
2007-07-31 17:28:46 +00:00
Harry Moffat
1b0c396105 Added a str:: to a string parameter 2007-07-27 20:05:19 +00:00