Commit graph

586 commits

Author SHA1 Message Date
Bryan W. Weber
cc8ada13f4 [Doc] Correct docs for setState_*sat in Matlab
Correct the documentation to clarify that a vector must be passed in to
these functions, not a single value.
2015-10-24 20:35:51 -04:00
Bryan W. Weber
7489c2f1f7 [Matlab] Fix setState_sat*.m functions
Fix the setState_satLiquid and setState_satVapor functions so that they call the main set
method instead of the underlying C++ layer. Resolves #299.
2015-10-24 20:35:42 -04:00
Ray Speth
99b3e7ea1b [Python] Fix handling of bad input to 'stringify'
Cases where a string is required but a non-string is provided will now generate
an exception instead of substituting the empty string.
2015-10-24 20:32:42 -04:00
Ray Speth
051b9d1f51 [Test] Fix deprecation warnings in Python tests
This also fixes support for Numpy 1.10, which removes the 'skiprows' keyword.
2015-10-24 20:30:19 -04:00
Ray Speth
3662ccdacf [Python] Prevent renaming of Python extension module
In Cygwin, some versions of SCons append a 'cyg' prefix to DLL names, which
breaks the Python extension module that is supposed to be named just
'_cantera.dll'.
2015-09-09 18:59:19 -04:00
Ray Speth
ffb703ecfd Fix multiprocessing example when using Python 3
In Python 3, 'map' returns an object which evalutes the function as it is
consumed, not when 'map' is called. Therefore, the correct comparison to
pool.map(...) is list(map(...)).
2015-09-09 18:59:19 -04:00
Ray Speth
a79ee8e07a Fix multiprocessing example to actually get the indicated property 2015-09-09 18:59:19 -04:00
Bryan W. Weber
7d2e3813eb Fix syntax error in a Python example 2015-09-09 18:59:19 -04:00
Ray Speth
832cf99927 Fix definition of elemental mole fraction
The elemental mole fractions should be invariant under composition changes which
conserve atoms.
2015-09-09 18:59:18 -04:00
Ray Speth
479a9da0bd [Python/1D] Fix FlameBase.write_csv
Also add a test for this method
2015-09-09 18:59:18 -04:00
Ray Speth
07257443e3 Fix race condition when Python 2 and Python 3 tests run in parallel 2015-09-09 18:59:18 -04:00
Ray Speth
98c2aa82e7 [SCons] Fix include order when compiling Cython module 2015-09-09 16:32:02 -04:00
Ray Speth
d0c62ada84 [Kinetics] Fix handling of integral, explicit reaction orders
If any of the reaction orders differ from the corresponding stoichiometric
coefficients, the reaction needs to be handled as the general case, instead of
just when the orders are non-integral.
2015-06-22 12:11:42 -04:00
Ray Speth
2aec189ddc [Reactor] Check for Reactor contents before installing FlowDevice
Fixes #279.
2015-06-22 12:11:29 -04:00
Ray Speth
c5bc4d3412 [Reactor] Fix segfaults in updateMassFlowRate due to unset parameters
The downstream and upstream Reactors, the "master" flow controller, and the
coefficient arrays were being read without checking that they had been
initialized.

Fixes #278.
2015-06-22 12:11:09 -04:00
Ray Speth
835b81a6f8 [MixMaster] Display more useful error messages
Include the full text of the original exception, and print this to the terminal
as well.
2015-06-02 11:05:35 -04:00
Ray Speth
a677409283 [MixMaster] Fix displaying of errors when using Python 2 2015-06-02 11:05:35 -04:00
Ray Speth
eafcc1d991 [Python/Thermo] Add setter for PureFluid.X in the two-phase region 2015-05-30 11:30:11 -04:00
Ray Speth
e292caa187 [Python] Add Kinetics.reactions() method which returns all Reactions 2015-05-28 12:38:50 -04:00
Ray Speth
859aee18ef [Python] ThermoPhase.species() returns all Species objects 2015-05-28 12:38:50 -04:00
Ray Speth
dcf7a2bdff [Python] Replace _have_sundials() with __sundials_version__
Resolves #259.
2015-05-26 16:47:38 -04:00
Ray Speth
0552c8a46e [Python/Reactor] Fix ReactorNet.verbose property
Fixes #260
2015-05-26 11:42:29 -04:00
Ray Speth
341b137766 [Doc] Capitalize proper nouns and acronyms 2015-05-25 20:58:44 -04:00
Ray Speth
51c8d7365a [Doc] Fix spelling errors 2015-05-25 20:57:19 -04:00
Ray Speth
ae5132060e [Python] Adjust names to avoid namespace clutter 2015-05-25 00:00:52 -04:00
Ray Speth
0f6f9c8f5a [Python] Add functions for evaluating rate constants 2015-05-24 20:03:21 -04:00
Ray Speth
af3e34ccb0 [Python] Add repr functions to Species/Reaction classes 2015-05-24 19:45:26 -04:00
Ray Speth
6bec1029e7 [Python/Doc] clarify reaction path properties that can be set 2015-05-24 18:23:23 -04:00
Ray Speth
ba9c9c768f [Kinetics] Use the name 'ThreeBodyReaction' consistently 2015-05-11 16:35:46 -04:00
Ray Speth
946b7abfc5 [Python] Implement 'allow_negative_pre_exponential_factor' property 2015-05-11 16:26:32 -04:00
Ray Speth
f5b2fc37df [Python] Use name 'pre_exponential_factor' consistently 2015-05-11 16:16:44 -04:00
Ray Speth
9e9f03288a [Kinetics] Implement modifyReaction for InterfaceKinetics 2015-05-08 11:07:41 -04:00
Ray Speth
62cd325036 [Kinetics] Implement modifyReaction for gas-phase reactions 2015-05-07 18:31:40 -04:00
Ray Speth
14b41ea338 [Python/Doc] Update docs for Solution and Interface 2015-05-06 21:15:02 -04:00
Ray Speth
d470486bee [Python] Reactants and products can be specified in Reaction constructor 2015-05-06 21:15:01 -04:00
Ray Speth
9824edcb86 [Python] Update docs for Species and Reaction 2015-05-06 21:15:01 -04:00
Ray Speth
646654b7d0 [Python] Fix declarations of some methods which can throw exceptions 2015-05-06 21:15:01 -04:00
Ray Speth
658ce5d73b [Python] Return 'None' if thermo or transport are undefined 2015-05-06 21:15:00 -04:00
Ray Speth
a4252480aa [Python] Add setter for Species.transport 2015-05-06 21:15:00 -04:00
Ray Speth
00ed585f18 [Python] Adding example demonstrating submechanism extraction 2015-05-06 21:14:59 -04:00
Ray Speth
08f0fb5bf6 [1D/Examples] Use np.genfromtxt in fixed-T flame example 2015-05-06 21:14:59 -04:00
Ray Speth
27726c3072 [Python/1D] Use initial gas composition as state of flame inlet
This eliminates the need to set the inlet temperature and composition explicitly
for configurations where only one composition needs to be specified (i.e. all
premixed configurations).
2015-05-06 21:14:58 -04:00
Ray Speth
982846acf7 [Python] Add mechanism reduction example using Species and Reactions 2015-05-05 15:02:57 -04:00
Ray Speth
d8ed6135ea [Python] Skip undeclared third bodies when adding Reactions
This needs to be the default behavior, since reactions can currently only be
added from the constructor.
2015-05-05 13:47:50 -04:00
Ray Speth
d68c41197e [Python/Doc] Document GasTransportData 2015-05-05 11:34:07 -04:00
Ray Speth
18e2ab7c8d [Python/Doc] Document Reaction and derived classes 2015-05-05 11:34:07 -04:00
Ray Speth
dd62e6061e [Python] Add setters for InterfaceReaction properties 2015-05-05 11:00:25 -04:00
Ray Speth
be2d08f7c2 Remove a leftover debugging print statement 2015-05-05 11:00:25 -04:00
Ray Speth
4ea96b810d [Python] Document Species, SpeciesThermo, and derived classes 2015-05-05 11:00:25 -04:00
Ray Speth
9af5d5835a [Python] Handle 'charge' and 'size' arguments to class Species 2015-05-05 11:00:25 -04:00