Commit graph

5673 commits

Author SHA1 Message Date
Ray Speth
ce21b08d41 [Python] Document ThermoPhase DP, DPX, and DPY properties 2015-07-03 00:14:35 -04:00
Ray Speth
07f25621f3 [SCons] Fix include order when compiling Cython module 2015-07-01 12:24:49 -04:00
Ray Speth
9a4bc3c34f [Doc] Fix typo in Planck constant units
Fixes #280.
2015-07-01 12:04:36 -04:00
Ray Speth
812cbc4bc4 Fix user-provided BLAS/LAPACK dir in Cantera.mak
Fixes an error introduced in 5720d7cf90.
2015-06-30 23:22:46 -04:00
Ray Speth
94316d8416 [Python/Examples] Demonstrate a non-trivial velocity function
This shows how the velocity function can be used to implement a wall where the
expansion rate coefficient is a function of time.

Also extend the integration interval for this example to actually demonstrate
ignition of both mixtures.
2015-06-24 15:20:00 -04:00
Ray Speth
d373e0751e Remove unnecessary explicit specification of namespace Cantera 2015-06-24 14:45:55 -04:00
Ray Speth
079ef0caf9 Update comments regarding critical / saturation properties 2015-06-24 13:26:47 -04:00
Ray Speth
140da430c0 Check for non-existent species in setMass/MoleFractionsByName 2015-06-24 13:05:28 -04:00
Ray Speth
c4bb938b1b [Equil] Hide verbose output at default log level 2015-06-24 13:05:28 -04:00
Ray Speth
f252ff16cb [Test] Move "ChemEquil_gri_pairs" to GTest suite
Also extend test to cover MultiPhase and VcsNonideal solvers as well.
2015-06-24 13:05:28 -04:00
Ray Speth
4273fe865d [Doc] Update list of SCons options shown in Sphinx docs 2015-06-23 23:15:40 -04:00
Ray Speth
0590b2cda8 [Reactor] Deprecate possibly-ambiguous names in componentIndex
Resolves #274.
2015-06-22 18:12:05 -04:00
Ray Speth
eb75e8b6cc [SCons] Fix BLAS/LAPACK-related variables in Cantera.mak
* Fix logic for when BLAS/LAPACK libraries need to be explicitly listed
* ctlapack and ctblas are no longer separate libraries
2015-06-22 16:53:04 -04:00
Ray Speth
4efad93a6d [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 11:56:56 -04:00
Ray Speth
6f7241b08b Remove dead code from class Application 2015-06-21 19:01:15 -04:00
Ray Speth
1d7104a96b Fix race condition when Python 2 and Python 3 tests run in parallel 2015-06-19 14:23:45 -04:00
Ray Speth
c446686c85 [SCons] Fix test summary when tests are run in parallel 2015-06-19 11:53:07 -04:00
Ray Speth
be24e9daf1 [Reactor] Move reactor contents check into ReactorBase::contents
The check introduced in f6f868fe28 takes place too late, as the pointer to
ReactorBase.m_thermo has already been dereferenced at this point. Most compilers
let this pass, but it is techincally incorrect.
2015-06-18 17:51:46 -04:00
Ray Speth
f6f868fe28 [Reactor] Check for Reactor contents before installing FlowDevice
Fixes #279.
2015-06-18 14:37:54 -04:00
Ray Speth
c0fa589b8c [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-18 12:18:59 -04:00
Kyle Niemeyer
cd545af5ed [Python/Thermo] Added functions for getting species thermo parameters
Resolves #275; Closes #276; Closes #277
2015-06-17 22:57:51 -04:00
Ray Speth
30d1d5ea99 [Test] Move "ChemEquil_gri_matrix" to GTest suite
This also modifies the test to explicitly test each of the equilibrium solvers,
so that failures in any one solver aren't hidden by the fact that a different
solver works for a particular initial condition.
2015-06-17 14:38:11 -04:00
Ray Speth
c2344377ac [Test] Move "ChemEquil_red1" to GTest suite
The old version of this test didn't actually check any meaninful results. The
ChemEquil and VCS solvers are both able to solve this problem, but the
MultiPhase solver currently fails. Also, the BasisOptimize function may fail
depending on the order that the elements are specified in the input file.
2015-06-16 16:16:21 -04:00
Ray Speth
e34b2739b2 [Test] Move "negATest" to GTest suite 2015-06-16 16:16:21 -04:00
Bryan W. Weber
60827267b7 Add MATLAB interface to the setState_RP function 2015-06-15 17:47:37 -04:00
Bryan W. Weber
ca6e228e22 Move setPressure to a more logical location 2015-06-15 17:47:37 -04:00
Bryan W. Weber
0b92ef20e5 Add the missing getters to the Python tests 2015-06-15 17:47:37 -04:00
Bryan W. Weber
20455056f8 Add Python interface for setState_RP + tests 2015-06-15 17:47:37 -04:00
Bryan W. Weber
8e58a45edb Overload setState_RP for IdealGasPhase
Use the ideal gas law to compute the temperature corresponding to the
given density and pressure.
2015-06-15 17:47:37 -04:00
Bryan W. Weber
5d215b7e86 Add base class functions to set density and pressure simultaneously
They have the names setState_RP, setState_RPX, and setState_RPY. These
base class functions mirror the TP, TPX, TPY set, except that RP is not
implemented, because it depends on the EOS of the system. We cannot use
the normal setPressure because it sets the state by calculating the
density, but RP will specify the density.
2015-06-15 17:46:51 -04:00
Ray Speth
2f7e05040c [ck2cti] Improve handling of single T-range thermo data 2015-06-15 16:47:54 -04:00
Ray Speth
b25167e4b9 [ck2cti] Print the current thermo entry when an error is encountered 2015-06-15 16:26:41 -04:00
Ray Speth
6994d56587 [Doc] Sphinx reads version info from config.h 2015-06-14 20:00:54 -04:00
Ray Speth
484eff996b Use short form of cantera_version when looking for data directory 2015-06-14 19:51:00 -04:00
Ray Speth
eefffa78b9 [SCons] Use defined 'cantera_version' when building MSI 2015-06-14 19:47:33 -04:00
Ray Speth
7f847c3877 [SCons] Miscellaneous cleanup of SConstruct/SConscript files 2015-06-13 23:29:58 -04:00
Ray Speth
31d04f04b0 [Thermo] Remove unnecessary copy constructors & assignment operators
These just did the same thing as the compiler-generated ones, so there's
no reason for these to exist.
2015-06-13 22:41:37 -04:00
Ray Speth
76344ea628 [SCons] Attempt auto-detection of libraries for Boost.Thread 2015-06-12 19:19:57 -04:00
Ray Speth
430c59634a [Doc] Extend sphinxdoc theme instead of overwriting CSS file
Overwriting the CSS file caused styles to fall out-of-date with the HTML
generated by newer versions of Sphinx. This way, we just need to maintain a few
customizations to the base theme.
2015-06-12 18:34:44 -04:00
Ray Speth
8d4e9bff6e [Reactor] Make argument to ReactorNet.step optional and deprecated
The value of this argument has almost no effect on the integrator, and
frequently confuses users since the ReactorNet can end up at a time either
greater or less than the specified time. By removing this argument, the
distinction betwen step() and advance(t) becomes much more clear.
2015-06-11 14:03:20 -04:00
Ray Speth
392b0f5692 [Reactor] Do not use argument to step/advance to set the max time step
Allow CVODES to take arbitrarily large timesteps by default. If a maximum time
step is desired, it can be set explicitly.
2015-06-11 14:03:20 -04:00
Ray Speth
fa90d095f0 [Travis] Use newer Cython version so that Python module works
Don't build Python 3 module for Python 3.2 (no longer supported).
2015-06-11 11:38:40 -04:00
Ray Speth
a6b3c23750 [SCons] Remove unnecessary check for Python 3 Cython module
We use the Python 2 version of Cython to generate the .cpp file which is
separately compiled for both Python 2 and Python 3.
2015-06-10 22:56:49 -04:00
Ray Speth
aa7f5a2728 Add build script for Travis CI 2015-06-10 19:34:24 -04:00
Steven DeCaluwe
7426fca71a Adding RedlichKwongMFTP::cv_mole 2015-06-09 13:01:57 -06:00
Ray Speth
217d780233 Fix calls to CanteraError with blank or incorrect first argument
The first argument should be the function name from which the exception was
thrown. Leaving this blank makes it difficult to track down the location of the
exception.
2015-06-09 12:03:57 -04:00
Ray Speth
8dcde36d20 Fix invalid iterator usage in Application::close_XML_File
The iterator 'b' is invalidated by calling erase(b), which means that the
subsequent call to ++b results in undefined behavior. This was identified by
segfaults in the Matlab unit test on OS X.
2015-06-08 17:20:54 -04:00
Ray Speth
2256cd03de [Doc] Homebrew formula no longer supports '--devel' option
The '--devel' option is apparently only meant for pointing at tagged development
releases, rather than the tip of a branch.
2015-06-08 13:46:37 -04:00
Ray Speth
9ca2c16bc3 [SCons] Fix running test suite with minimal Python module 2015-06-08 11:52:02 -04:00
Ray Speth
c512e2bcbb [Doc] Update installation instructions for Cantera 2.2.0 2015-06-05 15:29:06 -04:00