Commit graph

28 commits

Author SHA1 Message Date
Ray Speth
3e4ccd4027 [Thermo] Make modification of discontinuous NASA polynomials optional
Adding the attribute allow_discontinuities="true" to a phase's
'thermo' node (CTML) or adding 'allow_discontinuous_thermo' to a
phase's 'options' argument (CTI) will disable the automatic adjustment
of the provided polynomials so that enthalpy and entropy are
continuous at the midpoint temperature.
2013-12-09 01:34:06 +00:00
Ray Speth
9651b16b16 [ctml] Fix constructor for stoichiometric_solid phase
Error introduced in r2579
2013-12-06 23:45:22 +00:00
Ray Speth
1a291b47fe [CTI] Add optional 'note' field to Phase definitions
The note field is preserved when converting to XML, and can be used to
store extra information used by applications other than Cantera.
2013-12-05 20:54:08 +00:00
Ray Speth
c76ddefa5f Fix spelling errors 2013-07-26 21:33:50 +00:00
Ray Speth
000e374b6c [ctml_writer] Fix a Python 2.6 compatibility issue
Python 2.6 needs some extra help when trying to execute code
containing Windows (CRLF) line endings.
2013-07-18 19:07:10 +00:00
Ray Speth
da95339706 [ctml_writer] Add support for chemically activated reactions 2013-07-06 21:44:05 +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
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
7ca8d1830e [ctml_writer] Updated constants to have more accurate values 2013-01-11 22:56:22 +00:00
Ray Speth
845b73405e Merge bug fixes from 2.0 maintenance branch 2012-10-30 15:46:10 +00:00
Ray Speth
1de94e0ee1 Fixed handling of falloff reactions with specific third bodies 2012-08-28 22:36:26 +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
96114edb46 Fixed names of some executable scripts
Also added shebang line to ctml_writer
2012-06-05 19:56:21 +00:00
Ray Speth
bdac195cb0 Added input file documentation for Chebyshev and P-log rate expressions 2012-05-29 18:03:31 +00:00
Ray Speth
a78755b971 Fixed some undefined references in the CTI documentation 2012-05-18 22:42:03 +00:00
Ray Speth
754faa3b13 Added option to ignore third-body efficiencies for undeclared species
To enable this option, in the phase definition, add
'skip_undeclared_third_bodies' to the list passed as the 'options'
argument.
2012-05-18 22:41:58 +00:00
Ray Speth
eb6c7659b8 ctml_writer accepts 'id' argument as lower case
This maintains compatibility with existing (<=1.8) input files, at the
cost of being poor Python style since it overloads the built-in 'id'
function.
2012-05-13 22:41:17 +00:00
Ray Speth
02ccf4f715 Improved formatting of TypeErrors encountered in ctml_writer.py 2012-04-04 18:45:07 +00:00
Ray Speth
47f3bac7ae Added documentation for the classes used in CTI files 2012-04-04 18:45:03 +00:00
Ray Speth
938d767fde Replaced deprecated syntax in ctml_writer.py 2012-03-30 23:48:29 +00:00
Ray Speth
8386df50b9 ctml_writer now handles Chebyshev and P-log rate expressions 2012-03-30 23:47:27 +00:00
Ray Speth
6c29c0fe84 Syntax errors in CTI files now show more context lines 2012-03-16 14:44:31 +00:00
Ray Speth
82d467944f Eliminated temporary files from the ct2ctml conversion process
Added libstringstream, which maps stdin and stdout to std::iostream.
Using this library means we no longer create either the temporary .py
file or the ct2ctml.log file.

This also eliminates the synchronization problems that motivated the
sleep commands around the system call, so cti to ctml conversions are
significantly faster now.
2012-03-09 22:59:21 +00:00
Ray Speth
6cb4bd93ce Cleaned up whitespace in all Python files using reindent.py
4 spaces per indentation level, no tabs, no trailing whitespace,
and a single newline at end of each file.
2012-02-27 18:13:05 +00:00
Ray Speth
2528df0f75 Reorganized source tree structure
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.

All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00
Renamed from Cantera/python/ctml_writer.py (Browse further)