Ray Speth
785d4f058e
[Reactor] Add optimized IdealGasReactor class
...
This formulation of the reactor governing equations, with temperature as a state
variable, works better for ideal gas mixtures. This way, most of the Jacobian
components are derivatives at constant temperature, eliminating the need to
recompute the temperature-dependent part of the rate expressions when computing
these entries.
2013-07-16 22:09:40 +00:00
Ray Speth
c89b7f1c93
[Reactor] Change formulation of Reactor to support non-ideal phases
...
Expanding the time derivative of the total internal energy only works for ideal
phases, so for the more general case it is necessary to keep the internal energy
as the state variable and use an iterative method for setting the state.
2013-07-16 22:09:37 +00:00
Steven DeCaluwe
6321cf4c8e
Removed calculatePsat from matlab toolbox, and overwrote 'satPressure' for MixtureFugacityTP
...
class to point to the calculatePsat function. Removed 'const' declaration from satPressure
within the ThermoPhase class.
2013-07-15 17:43:45 +00:00
Ray Speth
1b9d23c120
[ck2cti] Fix parsing third-body reactions with no efficiencies
2013-07-08 01:35:36 +00:00
Ray Speth
f7fc700c8c
[ck2cti] Fix third-body reactions with explicit reverse rate expressions
2013-07-08 01:35:33 +00:00
Ray Speth
a69d56ab28
[ck2cti] Check for duplicate thermo entries
...
By default, raise an exception.
With '--permissive', use the first entry found.
2013-07-08 01:35:30 +00:00
Ray Speth
5d26a264f4
[ck2cti] Add limited support for unterminated sections
...
Each section of the input file should end with 'END'. Other utilities that work
with these files don't always require this, so we allow unterminated sections
if the '--permissive' flag is used, otherwise these are considered errors.
2013-07-08 01:35:27 +00:00
Ray Speth
812ec6ef77
[ck2cti] Fix for mechanism files with in-line transport data
2013-07-08 01:35:23 +00:00
Ray Speth
e8ab4dda28
[ck2cti] Fix handling of thermo entries with end-of-line comments
2013-07-08 01:35:20 +00:00
Ray Speth
ceeea2ed21
[ck2cti] Improve messages for some input file errors
2013-07-08 01:35:18 +00:00
Ray Speth
f1e5183431
[ck2cti] Fix to allow species names starting with special characters
2013-07-08 01:35:15 +00:00
Ray Speth
2778267a43
[ck2cti] Fix reading files with "CR" (old Macintosh) line endings
2013-07-08 01:35:12 +00:00
Ray Speth
4f236a80fe
[ck2cti] Fix reading empty THERMO sections
2013-07-08 01:35:10 +00:00
Ray Speth
08724c9ac3
[ck2cti] Translate "chemically activated" reactions
...
These are reactions with an additional set of Arrhenius parameters labeled
'HIGH' in the input file. They may also have a set of falloff function
parameters.
2013-07-06 21:44:10 +00:00
Ray Speth
27902b32e0
[ck2cti] Separate falloff functions from falloff reaction type
...
This is in preparation for adding support for chemically activated reactions,
which also use these falloff functions.
2013-07-06 21:44:07 +00:00
Ray Speth
da95339706
[ctml_writer] Add support for chemically activated reactions
2013-07-06 21:44:05 +00:00
Ray Speth
77ccab92bd
[Kinetics] Implement evaluation of "chemically activated" reaction rates
2013-07-06 21:44:02 +00:00
Ray Speth
1cec7cc051
[Cython] Fix a couple cases where exceptions could escape
2013-07-06 21:43:58 +00:00
Steven DeCaluwe
06d239a40a
Enabled use of the 'calculatePsat' function for MixtureFugacityTP thermo class
...
in the Matlab toolbox.
2013-07-03 15:44:52 +00:00
Ray Speth
bd8d257c5e
[ctml_writer] Clean up reaction.build
2013-06-28 21:24:26 +00:00
Ray Speth
dd41d8ac90
[ctml_writer] Improve performance of XMLnode._write
2013-06-28 21:24:24 +00:00
Steven DeCaluwe
fde8eeddcc
Modified ctml_writer.py to allow loading RedlichKwongMFTP thermo class from a cti file.
2013-06-25 22:06:18 +00:00
Ray Speth
3e4c944416
[1D] Simplify interface for setting tolerances
2013-06-24 15:22:38 +00:00
Ray Speth
58d6917fe4
[Cython] Patch distutils to prevent overwriting of build-lib
...
This bug in distutils prevented building the MSI installer on Windows.
2013-06-24 15:21:25 +00:00
Ray Speth
4591159cd9
[SCons] Install script for running MixMaster with new Python module
2013-06-21 20:59:00 +00:00
Ray Speth
70178cee04
[MixMaster] Use the Cython-based Cantera API
2013-06-21 20:58:52 +00:00
Ray Speth
0a56f3286f
[MixMaster] Make compatible with Python 3
...
This also retains Python 2 support.
2013-06-21 20:58:35 +00:00
Ray Speth
440bf4a8d1
Add current version of MixMaster to the Cython package
...
Note that this currently doesn't work at all, due to both Python 3 compatibility
issues as well as the changes to the Cantera Python API
2013-06-21 20:58:22 +00:00
Ray Speth
84aaec1417
[Cython] Install ck2cti.py and wrapper script
2013-06-21 20:58:15 +00:00
Ray Speth
39adabb820
[Cython] Fix a bug writing graphviz input files
2013-06-21 20:58:11 +00:00
Ray Speth
66981a244d
[ck2cti] Print line number of invalid reaction entry
2013-06-21 20:58:07 +00:00
Ray Speth
92fb4252d0
[ck2cti] Avoid parsing keywords in comments
2013-06-21 20:57:58 +00:00
Ray Speth
39079b93d1
[ck2cti] Consider explicit third bodies in duplicate reaction check
...
Reactions with the same reactants and products but different named
third bodies are not considered duplicates and do not need to be marked
as such.
Normal third body reactions (with 'M' as the third body) are considered
duplicates of reactions with specific third bodies if the efficiency
for the specific third body is not zero.
2013-06-21 20:57:49 +00:00
Ray Speth
67240c4947
[ck2cti] Fix handling of transport comments with no preceding space
2013-06-17 14:20:38 +00:00
Ray Speth
0018acd607
[ck2cti] Fix a Python 3 incompatibility
2013-06-17 14:20:34 +00:00
Ray Speth
0f13a7159e
[ck2cti] Improve performance of duplicate reaction check
...
Old method was O(N^2). New method is essentially O(N).
2013-06-17 14:20:26 +00:00
Ray Speth
7eae48abba
[ck2cti] Show line numbers of unmarked duplicate reactions
2013-06-17 14:20:23 +00:00
Ray Speth
f9fcfc562e
[ck2cti] Permit lower case keywords in Chemkin input files
...
Although the specification of the file format doesn't appear to allow lower
case keywords, many mechanisms are distributed using them.
2013-06-17 14:20:19 +00:00
Ray Speth
e013e8b966
Add __version__ attribute to (legacy) Python module
2013-06-13 22:50:40 +00:00
Ray Speth
9740980c5d
Deprecate class GRI_30_Kinetics
2013-06-13 22:50:14 +00:00
Ray Speth
1c7256e702
Make ck2cti compatible with Python 3
2013-06-08 02:01:23 +00:00
Ray Speth
9e9fe849bc
Install ctml_writer with Cython module
2013-06-08 02:01:18 +00:00
Ray Speth
1cf8d9c8ea
Classes in ctml_writer derive from object
2013-06-08 02:01:08 +00:00
Ray Speth
99c533c2eb
Make ctml_writer compatible with Python 3
2013-06-08 02:00:59 +00:00
Ray Speth
39770d6a48
[Cython] Fix Python 3 compatibility issue
2013-06-05 03:08:59 +00:00
Ray Speth
e667978655
[Cython] Allow setting state while holding specific properties constant
...
The value "None" is used to indicate the property or properties being held
constant.
2013-05-31 15:56:36 +00:00
Ray Speth
8ab5b27121
[Cython] Check property setters for the correct number of arguments
2013-05-31 15:56:25 +00:00
Ray Speth
8292de3ee8
[Python] Add deprecation warnings for the old Python module
...
The old Python module will be removed after releasing Cantera 2.1.
2013-05-31 15:56:16 +00:00
Ray Speth
0b00122062
[Cython] Add support for setting state using entropy + specifc volume
2013-05-31 15:55:57 +00:00
Ray Speth
81b8845b8e
[Cython] Fix memory leaks in Wall and ReactorNet
...
The underlying C++ objects were not being deleted in the destructors for the
Python objects. Moving them to be non-pointer members of the Python wrapper
classes fixes this problem.
2013-05-31 15:55:53 +00:00