Commit graph

48 commits

Author SHA1 Message Date
Ray Speth
59564659b3 [Cython] Move equilibrium tests from old Python module to Cython module 2013-12-09 01:34:41 +00:00
Ray Speth
6ec7d04839 [Cython] Move pure fluid tests from old Python module to Cython module 2013-12-09 01:34:36 +00:00
Ray Speth
24e3f99da4 [Cython] Move kinetics tests from old Python module to Cython module 2013-12-09 01:34:30 +00:00
Ray Speth
70a728c8f7 [Cython] Move thermo tests from old Python module to Cython module 2013-12-09 01:34:25 +00:00
Ray Speth
a289e6f613 [ck2cti] Add support for species names containing '+' and '=' 2013-12-06 23:15:24 +00:00
Ray Speth
af0b0f2211 [Python/Test] Run tests that were being accidentally ignored 2013-12-05 20:54:11 +00:00
Ray Speth
346f9e196f [Cython] Use unittest2 when necessary to support Python 2.6 2013-07-23 15:30:47 +00:00
Ray Speth
ab7775e67e [Cython] Fix Python 2.6 compatibility issues with sys.version_info
The "major" attribute is a new feature in Python 2.7.
2013-07-18 22:39:26 +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
f1e5183431 [ck2cti] Fix to allow species names starting with special characters 2013-07-08 01:35:15 +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
9631f44d29 [Python] Fixed some more incompatibilities with Python 2.6 2013-05-24 20:14:14 +00:00
Ray Speth
7430e11aa5 [Test] Fixed regression in Python 2.6 support
Support for the implcit handling of positional arguments with "{}" isn't
available until Python 2.7.
2013-05-24 17:47:24 +00:00
Ray Speth
5d353c1ad4 [Test] Improved messages generated by chemkinConverterTest 2013-04-24 21:47:10 +00:00
Ray Speth
dc279dcbab [Test] Ensure that the local Python module is the one being imported
Explicitly set 'interfaces/python' as the first entry in sys.path, rather
than reyling on the PYTHONPATH environment variable, which is sometimes
superseded, e.g. by virtualenv.
2013-04-24 21:47:04 +00:00
Ray Speth
183af676d5 [ck2cti] Added support for the UNITS keyword 2013-01-11 22:56:25 +00:00
Ray Speth
da67bc122c [Test] Refactored to eliminate repeated code in ck2cti tests 2013-01-11 22:56:19 +00:00
Ray Speth
8ae3ca5a17 [ck2cti] Refactored to add class Parser and remove global variables 2013-01-11 22:56:16 +00:00
Ray Speth
60d44997e0 [ck2cti] Added '--permissive' flag to ignore certain errors 2013-01-11 22:56:12 +00:00
Ray Speth
994acf84ea [ck2cti] Added ability to convert falloff reactions with explicit third bodies
For reactions written as: R1+R2(+S1)=P1(+S1), the implication is that
the third-body efficiencies for all colliders besides S1 are zero.
2013-01-11 22:56:05 +00:00
Ray Speth
f82c6e50c7 SCons runs the unit tests for the Cython module 2012-09-06 19:58:32 +00:00
Ray Speth
c0f2734719 Added tests for converting chemkin-format transport data with ck2cti.py
Includes tests that check to make sure the converter detects duplicate and
missing species.
2012-08-29 18:30:58 +00:00
Ray Speth
01a9bdcf58 Fixed handling of explicit reaction orders for some reactions
For reactions with unity reactant stoichiometric coefficients, explicit values
for the forward reaction order were being ignored while setting up the
StoichManager.

Added a few tests that confirm that these rates are being calculated correctly.
2012-08-17 16:43:13 +00:00
Ray Speth
f23c4fa940 Added a test for handling of explicit reaction orders in Chemkin input files 2012-08-17 16:43:02 +00:00
Ray Speth
7a327abb16 Added test for handling of explicit reverse rate constants in Chemkin input files 2012-08-17 16:42:53 +00:00
Ray Speth
eb9441182d Added test for converting "SRI" falloff functions from Chemkin input files 2012-08-17 16:42:43 +00:00
Ray Speth
bcb79d9cd3 Convert .cti files in data/inputs to .xml as part of the buld process
The full set of .cti and .xml files to be installed is placed in build/data (for
use by the test suite) and copied to the CANTERA_DATA folder on installation.
2012-08-02 15:47:45 +00:00
Ray Speth
4e0fea7079 Added a test for converting Chebyshev and P-log reactions with ck2cti.py 2012-07-26 20:50:23 +00:00
Ray Speth
7472136e44 Converter tests now check some kinetics parameters 2012-07-26 20:49:33 +00:00
Ray Speth
9801b03a50 Moved nasa9_reader test to Python 2012-07-26 20:49:26 +00:00
Ray Speth
13e188381d Moved ck2cti tests to the Python test suite 2012-07-26 20:49:18 +00:00
Ray Speth
97acc868fb Added a test where an unbalanced reaction is detected 2012-07-26 20:49:14 +00:00
Ray Speth
db57f3a200 Added test to confirm that ck2cti.py detects missing thermo data 2012-07-26 20:49:06 +00:00
Ray Speth
0e21bfd0e0 Introduced a test suite for Chemkin-format mechanism conversions 2012-07-26 20:49:01 +00:00
Ray Speth
15b12608e3 Corrected labels on output from compareTimeSeries 2012-05-24 16:30:10 +00:00
Ray Speth
761c2589e3 Added a test for reactors with wall interactions 2012-05-24 16:29:23 +00:00
Ray Speth
c7af9ddf81 Improved convergence when solving for pure fluid saturated states 2012-05-11 15:27:33 +00:00
Ray Speth
ea589078f5 Added tests for pure fluid equations of state
The tests include basic consistency requirements as well as
comparisons to reference data where possible.
2012-05-07 18:20:11 +00:00
Ray Speth
e2d2ba4e3d Added 'assertNear' for comparing floats in Python unit tests
This method compares floats using combined absolute and relative tolerances,
instead of the "number of decimal digits" that TestCase.assertAlmostEqual uses.
2012-05-07 18:20:08 +00:00
Ray Speth
a42199f62a Added tests for overconstrained equilibrium problems 2012-04-12 21:35:40 +00:00
Ray Speth
b58ba638be Added some tests for the equilibrium solvers 2012-04-12 21:35:36 +00:00
Ray Speth
9be5c325f1 Added a Python reactor network test 2012-03-30 23:46:19 +00:00
Ray Speth
50bef3ee5c Fixed an environment issue with Python subprocesses 2012-03-09 22:54:21 +00:00
Ray Speth
a304b7393b Fixed Python unit tests to work with Python 2.6 2012-02-27 18:16:16 +00:00
Ray Speth
d60c06127b Added tests for some methods of the Python Solution class 2012-02-27 18:13:53 +00:00
Ray Speth
b0ccecf4e4 Added machinery for running Python unit tests 2012-02-27 18:12:42 +00:00