Commit graph

156 commits

Author SHA1 Message Date
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
121f039ea1 [ck2cti] Simplify constructors by using kwargs 2013-01-11 22:56:02 +00:00
Ray Speth
ad64554528 [ck2cti] Improved PEP8-compliance 2013-01-11 22:55:59 +00:00
Ray Speth
205706f5dd [Reactor] Avoid a segfault when using phases with no Kinetics 2013-01-07 18:08:23 +00:00
Ray Speth
c2151f1aaf [Cython] Made punctuation more consistent in docstrings
This improves the appearance of the generated docstrings for the properties of
FlameBase.
2013-01-04 21:37:15 +00:00
Ray Speth
edca92305d Enabled test of isothermalCompressibility
This test now passes as a result of merging the maintenance branch into trunk.
2013-01-04 21:37:12 +00:00
Ray Speth
68a312dc55 [Cython] Added array-valued properties to FlameBase 2013-01-04 21:37:08 +00:00
Ray Speth
589c27c161 [Cython] Made FlameBase and children regular Python classes
This makes it easier to make programmatic modifications to these classes and
extend them from pure Python code.
2013-01-04 21:37:01 +00:00
Ray Speth
f53ad9b47b [Cython] Added Sphinx docs for composite classes & importing 2012-12-26 23:56:24 +00:00
Ray Speth
8652963e6f [Cython] Modified tests to avoid unexpected failures 2012-12-26 23:56:04 +00:00
Ray Speth
a852400384 [SCons] Build the Cython module with debug symbols when requested 2012-12-26 23:56:01 +00:00
Ray Speth
0ff4964184 [Cython/1D] Relax grid tolerances on tests to reduce run times 2012-12-26 23:55:58 +00:00
Ray Speth
695b6b1266 [Cython] Skip sensitivity-related tests when Sundials is not present 2012-12-26 23:55:54 +00:00
Ray Speth
86db08ac88 Added __version__ attribute to the Cython module 2012-12-26 23:55:51 +00:00
Ray Speth
4991ada305 [SCons] Refactored configuration/compilation of the Cython module 2012-12-26 23:55:48 +00:00
Ray Speth
dafcc9e024 [SCons] Specify the compiler to use for the Cython module
This fixes problems encountered when using EPD on Windows, where the
default compiler for Python is MinGW.
2012-12-26 23:55:46 +00:00
Ray Speth
ea7d447864 [Cython] Updated test of 1D save / restore functionality 2012-12-18 00:14:35 +00:00
Ray Speth
833ca13dc1 [1D/Python] Set pressure when restoring solution from XML file
This partially addresses Issue 90.
2012-12-18 00:11:24 +00:00
Ray Speth
1e91bd59af [1D/Cython] Set pressure when restoring solution from XML file
This partially addresses Issue 90.
2012-12-18 00:10:48 +00:00
Ray Speth
14426bfc86 [1D] Added loglevel argument to control output from save and restore
Passing loglevel=0 to Sim1D::save or Sim1D::restore will suppress all output
from these functions. The default loglevel maintains the normal level of output.
2012-12-18 00:09:29 +00:00
Ray Speth
b4218203d2 [Cython] Added tests for the 1D simulation interface 2012-12-18 00:08:08 +00:00
Ray Speth
e150fb4c45 [Cython] Added examples that use the new API for the 1D flame solver 2012-12-18 00:06:36 +00:00
Ray Speth
9601895b98 [Cython] Fixed problems with unicode strings in Python 2 2012-12-18 00:04:54 +00:00
Ray Speth
b277818347 [Cython] Added infrastructure for installing examples
This includes automatic conversion of the samples from Python 3 syntax to Python
2 syntax when building the Python 2 version of the module and the "3to2" script
is available.
2012-12-18 00:03:03 +00:00
Ray Speth
306ac961c0 [Cython] Implemented specializations of Sim1D for standard flame types
FreeFlame, BurnerFlame, and CounterflowDiffusionFlame
2012-12-18 00:01:28 +00:00
Ray Speth
fb933d5c89 [Cython] Implemented methods of class Domain1D and Sim1D 2012-12-18 00:00:01 +00:00
Ray Speth
49803de297 [Cython] Added declarations for 1D simulation components 2012-12-17 23:59:48 +00:00
Ray Speth
55dec034ed Merge branch '2.0' into 'trunk'
Conflicts:
	README
	SConstruct
	configure.ac
	doc/sphinx/conf.py
2012-12-13 22:58:38 +00:00
Ray Speth
2805db17e9 [Python] Added interface to "setGridMin" in relevant 1D classes 2012-12-06 17:31:49 +00:00
Ray Speth
54e4b17aa5 [Matlab] Corrected error messages generated by setState_SP 2012-11-30 22:50:47 +00:00
Ray Speth
76a24eb9ce [1D] Create initial guess before showSolution() 2012-11-14 21:07:24 +00:00
Ray Speth
3fec861d1f [Cython] Added tests for sensitivity analysis 2012-11-02 20:07:32 +00:00
Ray Speth
fe6b5d3c0b Changed the ordering of Reactor sensitivity coefficients
The order now matches the order in which the corresponding sensitivity reactions
are added to the ReactorNet, regardless of the order in which Reactors and Walls
are added to the network.

Sensitivity parameter names can be accessed using the "sensitivityParameterName"
method of ReactorNet, and the "sensParamID" methods of Reactor and Wall have
been removed as they no longer meaningful.
2012-11-02 20:07:25 +00:00
Ray Speth
b3e25ee963 Modified Reactor::updateState to get sensitivity analysis working
Sensitivity analysis requires that the system responds appropriately to small
perturbations in the solution, a condition which is not satisfied when using the
default iterative method implemented by ThermoPhase::setState_UV. Instead, we
now use Newton's method to calculate the mixture temperature to within a small
multiple of machine precision.
2012-11-02 20:07:21 +00:00
Ray Speth
e34ac55f4f [Cython] Added sensitivity analysis to Reactor / ReactorNet 2012-11-02 20:07:15 +00:00
Ray Speth
845b73405e Merge bug fixes from 2.0 maintenance branch 2012-10-30 15:46:10 +00:00
Ray Speth
59b34ce549 [Cython] Extract wall surface properties into a separate class 2012-10-30 15:34:35 +00:00
Ray Speth
20dbfc9b98 Modified test tolerances to fix a test failure on Windows 2012-10-25 15:05:11 +00:00
Ray Speth
771192fa9a [Cython] Fixed choosing equilibrium solver by name 2012-10-24 15:42:13 +00:00
Ray Speth
11a11bea79 Removing deprecated / nonfunctional methods from Reactor
These functions / variables are for driving the time integration, which is
handled entirely by ReactorNet.
2012-10-12 20:34:33 +00:00
Ray Speth
2134e5d570 [Cython] Added documentation for Reactor and related classes 2012-10-10 18:25:34 +00:00
Ray Speth
9cfd620175 [Cython] Added tests for Reactor networks 2012-10-10 18:25:30 +00:00
Ray Speth
7869bd09c3 [Cython] Fixed implementation of absolute error tolerances in unit tests 2012-10-10 18:25:26 +00:00
Ray Speth
5252c41a80 [Cython] Full implementation of zero-dimensional reactor networks 2012-10-10 18:25:20 +00:00
Ray Speth
ced2e6c978 [Cython] Generalized interface to Func1
It is now possible to use any callable Python object when the Cantera C++ core
requires an instance of Func1.
2012-10-10 18:25:06 +00:00
Ray Speth
051a08933f Added tests for Cython Transport class 2012-09-06 20:00:05 +00:00
Ray Speth
4ff9e61e0d Added docstrings for Cython Transport class 2012-09-06 19:59:58 +00:00
Ray Speth
777d10ddb8 Fixed parsing Python configuration variables on Windows
str.splitlines() works on all types of newline characters
2012-09-06 19:59:54 +00:00
Ray Speth
5f2ec1f11d Added ability to switch between transport models in the Cython module 2012-09-06 19:59:45 +00:00
Ray Speth
a9132d1fc3 Added core Transport methods to Cython module 2012-09-06 19:59:39 +00:00