Ray Speth
c865843d8a
[Cython] Fix compilation issue when using Clang
...
Cherry-pick of trunk r2663.
2014-01-23 02:13:51 +00:00
Ray Speth
9f156c04fc
[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.
Cherry-pick of trunk r2590.
2014-01-23 02:12:36 +00:00
Ray Speth
5386d6b304
[ctml] Fix constructor for stoichiometric_solid phase
...
Error introduced in r2579
2013-12-06 23:45:22 +00:00
Ray Speth
81cf00260d
[ck2cti] Add support for species names containing '+' and '='
2013-12-06 23:15:24 +00:00
Ray Speth
44181d5edf
[ck2cti/Test] Eliminate confusing messages from expected errors
...
Suppress error messages from tests of ck2cti that use bad input to
test that input validation is working correctly.
2013-12-06 23:15:21 +00:00
Ray Speth
c9b4d3dbe8
[ck2cti] Add support for truncated section header names
...
Accept truncated section names such as 'REAC' for 'REACTIONS' and
'ELEM' for 'ELEMENTS'.
2013-12-06 23:15:18 +00:00
Ray Speth
ff842a1a08
[Cython] Direct log output to sys.stdout
...
This fixes the problem of some output (notably from the 1D solver)
going to std::cout when that is not the primary output location,
e.g. when using IDLE or the IPython QtConsole.
2013-12-06 23:15:14 +00:00
Ray Speth
58a4183e55
[Matlab] Remove broken ck2ctml function
...
There are three problems with this function. It does not work, since
it calls ctmethods with the wrong number of arguments. Even if that
were fixed, it wouldn't do what it claims, as the method it calls
generates a CTI file, not an XML file. Finally, it is redundant, as
the 'ck2cti' function can be used for generating the CTI file, and the
CTI to XML conversion is handled automatically when importing the
phase.
Therefore, this function is being removed.
2013-12-06 23:15:08 +00:00
Ray Speth
a8111887bf
[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
c7d69ac863
[Cython] Expose global 'appdelete' method
...
Occasionally useful for debugging memory leaks
2013-12-05 20:54:06 +00:00
Ray Speth
cd572403df
Fix issues with pure fluids near temperature limits
...
Fixes Issue 186.
2013-11-12 23:44:51 +00:00
Ray Speth
a7bd7c6a7a
[Cython] Add 'atomic_weight' method and 'atomic_weights' property
...
Resolves Issue 185.
2013-11-12 23:44:46 +00:00
Ray Speth
904e3e66e9
[ck2cti] Accept reaction units declared in either order
...
That is, energy followed by quantity or quantity followed by energy.
2013-10-21 22:13:00 +00:00
Ray Speth
94f1b35b79
[ck2cti] Partial support for scientific notation in stoichiometric coefficients
...
This won't work for positive exponents, because the '+' will still be
interpreted as a delimiter between terms of the reaction expression.
2013-10-21 01:55:18 +00:00
Ray Speth
6d5b7999de
[SCons] Use specified 'python_compiler' to link Python module
...
Fixes Issue 179.
2013-10-15 17:06:35 +00:00
Ray Speth
f871dd8cf0
[SCons] Add 'python_compiler' option for Cython module compilation
2013-10-15 14:59:31 +00:00
Ray Speth
2de0ae6350
[SCons/Cython] Fix library_dirs to include BLAS/LAPACK directory
2013-09-30 01:54:12 +00:00
Ray Speth
8498123689
[ck2cti] Show line number for some parsing errors
2013-09-30 01:54:00 +00:00
Ray Speth
a6f4c111e7
[Cython] Add declarations for free functions to _cantera.pxd
2013-09-30 01:53:40 +00:00
Ray Speth
0458eb736f
[Cython] Add __init__.pxd to allow 'from cantera cimport ...'
2013-09-28 18:18:23 +00:00
Ray Speth
a6ce399374
[Cython] Move extra Cython-related headers to main include directory
2013-09-28 18:18:12 +00:00
Ray Speth
332569114e
[Cython] Install headers needed for derived Cython modules
2013-09-25 23:05:21 +00:00
Ray Speth
7520170f30
[Cython] Improve support for building derived Cython modules
...
The .pxd file now contains declarations for all of the cdef classes,
and is installed with the module.
2013-09-25 22:57:36 +00:00
Ray Speth
717a2367b1
[Transport] Add electricalConductivity method to all language interfaces
...
Thanks to user 'hencken' for the patch.
Resolves Issue 171.
2013-08-23 17:43:55 +00:00
Ray Speth
1cedf904df
[Doc] Add all Python examples to the Sphinx docs
2013-08-22 21:46:27 +00:00
Ray Speth
8d7f48d031
[Cython] Minor reorganization of examples
2013-08-22 21:46:17 +00:00
Ray Speth
3d5ac35c6f
[Test] Avoid exact comparisons of floating point numbers
2013-08-21 19:49:37 +00:00
Ray Speth
32ea4fd924
[SCons] Fix to skip Python startup messages
...
This fixes an issue when the Python interpreter prints startup messages that
appear before the expected output lines. Known to be a problem with the Anaconda
Python distribution.
2013-08-16 17:25:04 +00:00
Ray Speth
d60629ead5
[Cython] Fix syntax errors in MixMaster for Python 3
...
Backticks are not allowed in Python 3 (equivalent to repr)
2013-08-14 17:56:05 +00:00
Ray Speth
a22ceda566
[Scons] Fix build order dependencies for python modules
2013-08-14 17:55:51 +00:00
Ray Speth
dfe5945cd6
[Matlab] Add access to class FlowReactor
2013-08-02 23:17:54 +00:00
Ray Speth
ea3ac2fc91
[Test] Fix file name used for Cython pdep tests
2013-08-02 23:17:49 +00:00
Ray Speth
3fe2cd9bbb
[Cython] Fix format strings for compatibility with Python 2.6
2013-08-02 23:17:45 +00:00
Ray Speth
c32b54a47d
[ck2cti] Fix for reading files with no final 'END' keyword
2013-08-02 23:17:38 +00:00
Ray Speth
cc75faf402
[Matlab] Add support for additional reactor types
...
Matlab interface now supports ConstPressureReactor, IdealGasReactor, and
IdealGasConstPressureReactor.
2013-07-31 18:14:47 +00:00
Ray Speth
03786fd07b
[Python] Add support for IdealGasReactor and IdealGasConstPressureReactor
2013-07-31 18:14:45 +00:00
Ray Speth
9b6354b0c0
[SCons] Fix generation of ctpath.m
...
Was failing because of dependency on dynamically-generated 'python_module_loc'
variable.
2013-07-31 18:14:42 +00:00
Ray Speth
615c3124fb
[Reactor] Fix sensitivity parameter order for constant pressure reactors
...
This matches the behavior of Reactor, where the parameter order is
determined by the order of the reactions in the mechanism.
2013-07-30 15:57:37 +00:00
Ray Speth
8724bc9f04
[Cython] Fix generation of MSI installer when using Python 2.x
...
The old patch to distutils only worked on Python 3.x, since distutils
uses old-style classes which do not support property objects.
2013-07-29 01:38:01 +00:00
Ray Speth
f320290c51
[SCons] Fix Python module path in setup_cantera and post-install message
...
In particular, this fixes paths for Linux distros that put Python modules in
'lib64/pythonX.Y/site-packages'.
Also fixes the reported installation path for the Python module on Windows.
2013-07-29 01:37:57 +00:00
Ray Speth
5bd01da0fa
Fix deprecation warnings in SOFC example
2013-07-26 21:33:54 +00:00
Ray Speth
c76ddefa5f
Fix spelling errors
2013-07-26 21:33:50 +00:00
Ray Speth
6fbf5d35ed
[Cython] Make critial / saturation properties available for all phase types
...
Any ThermoPhase class which overrides the appropriate methods will work,
and classes that don't will raise an exception.
2013-07-23 15:31:09 +00:00
Ray Speth
4d406f2ff4
[Doc] Update compilation instructions related to Cython module
2013-07-23 15:30:53 +00:00
Ray Speth
fa1d9e1ca9
[Cython] Use scipy when necessary to support older Python versions
...
Fixes an incompatibility with Python 2.6 and 3.1. Scipy is not
required when using Python 2.7 or 3.2+.
2013-07-23 15:30:51 +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
0fddd6a129
[Thermo] Fix errors in setState_SPorSV
...
This corrects the behavior in cases where the correct temperature is below the
nominal minimum temperature for the phase.
Add test cases for this and analogous cases for the maximum temperature and
setState_HPorUV.
Fixes Issue 151.
2013-07-18 19:07:14 +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
a20fd58000
[1D] Fix save/restore when mechanism size differs
...
The failures were caused when attempting to restore the tolerance vectors, which
have a value for each species. Since these tolerances are usually the same for
all species, the last value in the array can be used to extend the array to the
required length.
Also add some tests for this feature.
2013-07-18 00:04:13 +00:00