Commit graph

6849 commits

Author SHA1 Message Date
Ray Speth
d2a1bf1e6a [CI] Use updated upstream packages to build docs
The issues which forced the use of patched versions of these packages
have been resolved.
2018-09-19 17:59:59 -04:00
Ray Speth
33591282f5 [SCons] Use Cython from the targeted copy of Python
Use the Cython module from the Python installation specified by
'python_cmd', rather than the Python installation that is running
SCons. This allows complilation of Cantera for Python versions that
aren't supported by SCons (e.g. Python 3.4).
2018-09-19 17:59:59 -04:00
Ray Speth
d6da006e3e [SCons] Only build the Python package for Python 3.x 2018-09-19 17:59:59 -04:00
Ray Speth
dcb7f34b4a [SCons] Remove non-functional python_array_home option
This option has been broken since before Cantera 2.3.0, so must have
been unused.
2018-09-19 17:59:59 -04:00
Ray Speth
e2cfb7f505 [CI] Use Python 3 exclusively for Travis and Appveyor builds 2018-09-19 17:59:59 -04:00
Ray Speth
9df98d6ac1 [SCons] show any unexpected output from command to check numpy version 2018-09-19 17:59:59 -04:00
g3bk47
1166c74127 add std:: to "inner_product" and "accumulate"
This only works because the "dot" function is always called with std::vector<T>::iterator as input so that "argument dependent lookup" introduces the std namespace to the function. If the dot function is called like this "dot(v.data(), v.data()+v.size(), v.data())", where "v" is a std::vector and the input are plain pointers, the compiler will not find "inner_product". The same is true for the use of "accumulate".
2018-09-14 13:56:48 -04:00
Ray Speth
b0b66d7211 [Python] Make transport properties accessible with the Water() function 2018-09-07 23:24:23 -04:00
Ray Speth
0ade0acf18 [Transport] Relax requirements of thermo model for WaterTransport
The ThermoPhase object used by the WaterTransport model can be any
reasonably-accurate equation of state for water.
2018-09-07 23:24:23 -04:00
Ray Speth
426c2bc56e [Transport] Move calculations into WaterTransport class
Calculating viscosity and thermal conductivity in the WaterProps class
was just an unnecessary level of indirection.
2018-09-07 23:24:23 -04:00
Ray Speth
ff4958a720 [Transport] Migrate wtWater test to GTest test suite 2018-09-07 23:24:23 -04:00
Ray Speth
b0deb41708 [Transport] Make WaterTransport constructible using newTransportMgr
This makes it possible to specify the WaterTransport model in XML input files,
and to use the model from Python and Matlab.

Resolves #289
2018-09-07 23:24:23 -04:00
Ray Speth
d9f9f69fc3 [SCons/Test] Regression tests also look for input files in test/data
This allows the elimination of a number of duplicate input files.
2018-09-07 23:24:23 -04:00
Ray Speth
f46df83841 [Thermo] Make WaterSSTP constructible using newPhase
This makes it possible to create a WaterSSTP phase using an XML input file, and
use this model from Python and Matlab.
2018-09-07 23:24:23 -04:00
Ray Speth
ef40d4418d [Doc] Fix some Doxygen warnings 2018-08-28 16:45:49 -04:00
Ray Speth
b7f3ab561b Fix compiler warnings issued by Visual Studio 2015 2018-08-28 16:45:49 -04:00
Ray Speth
fc7c85f8d1 [clib] Fix some size_t related compiler warnings 2018-08-28 16:45:49 -04:00
Ray Speth
719dbcc650 Fix warnings about Cabinet::s_storage
Recent versions of clang++ warn that instantiation of a templated variable is
required at a certain point where no definition is available. Declaring such a
definition to be available is fine with older versions of clang++ as well, but
causes linker errors with g++, so this change is only applied when using
clang++.
2018-08-28 16:45:49 -04:00
Ray Speth
833d79aeb6 Fix compiler warning about declaration of BandMatrix::PivData 2018-08-28 16:45:49 -04:00
Ray Speth
51263193de Bump version to 2.5.0a1 2018-08-28 16:45:49 -04:00
Ray Speth
e4362d37e7 [Kinetics] Check for non-existent species in reaction orders
When the nonreactant_orders option was enabled, specifying reactant orders for
species which were not present in the phase previously resulted in out-of-bounds
memory access.
2018-08-28 16:40:43 -04:00
Ray Speth
c4e89ac5da [Doc] Fix another error in SRI reaction docstring 2018-08-27 20:27:04 -04:00
g3bk47
a1f9a178e0 Correct doxygen string for SRI reactions
Should be "T^e" instead of "exp(\frac{-e}{T})" according to CHEMKIN theory guide and actual code in https://github.com/Cantera/cantera/blob/master/src/kinetics/Falloff.cpp#L101 .
2018-08-27 20:15:35 -04:00
Ray Speth
8f2468da52 [SCons/Doc] Fix installation of Doxygen docs
Fixes regression introduced in b84d3e3, where the organization of files in the built
documentation changed.

Fixes #553
2018-08-24 09:24:45 -04:00
Ray Speth
fefc008ed2 [Matlab] Fix definition of isFlow
Caused most Matlab flame simulations to fail, e.g. those using
CounterFlowDiffusionFlame.m or flame.m. Fixes regression introduced in c1067aa.

Fixes #554
2018-08-23 16:45:28 -04:00
Ray Speth
7a697a4047 [Matlab] Fix warnings about use of deprecated AxiStagnFlow class 2018-08-23 16:31:17 -04:00
Ray Speth
f1d8d9b1b9 Bump version for 2.4.0 release 2018-08-20 18:52:09 -04:00
Ray Speth
0417d31d0e [Thermo] Fix constness of PureFluidPhase setTemperature and setDensity 2018-08-20 18:45:57 -04:00
Ray Speth
af51a61ab1 [Python] Fix building MSI for Python 3.7 module
Workaround for https://bugs.python.org/issue34251 for Python 3.7.0
2018-08-20 18:45:57 -04:00
Bryan W. Weber
af4ccaee09 Fix typos in system_googletest build config option 2018-08-20 18:45:46 -04:00
Bryan W. Weber
323c7370db
Update deploy location for dev docs 2018-08-20 15:10:04 -04:00
Bryan W. Weber
ff91457b5a
Clean the correct folder after building the minimal Python interface 2018-08-20 15:06:54 -04:00
Bryan W. Weber
1ca6c5eb40
Change all github.io links to cantera.org links 2018-08-20 15:06:28 -04:00
Ray Speth
dc5ec06a0c [Python/Examples] Rewrite combustor.py to be more useful
This updated example eliminates the complicated and inefficient "hydrogen
radical igniter" as a method for starting a well-stirred reactor.
2018-08-17 14:17:51 -04:00
Ray Speth
2f67c9969d [Python/Examples] Add a more useful example of time-dependent mass flow rate
In this example, a time-dependent mass flow rate function is used to inject a
specific fuel mass into a reactor. This is a more practical use case for this
capability than the fictitious hydrogen radical igniter used in combustor.py.
2018-08-17 14:17:51 -04:00
Ray Speth
a68c048bfa [Thermo] Relax warning threshold for heat capacity discontinuities
Discontinuities in heat capacity, in contrast to enthalpy and entropy, are less
of a problem and are not always indicative of problems with a mechanism. As
such, a looser tolerance on this quantity is reasonable.

This threshold eliminates warnings from the nDodecane_Reitz.cti input file included with Cantera.
2018-08-17 14:17:51 -04:00
Ray Speth
d3f49e74cb [Python] Fix display of information from errors in callback functions 2018-08-17 14:17:51 -04:00
Ray Speth
820b9de4b0 [Test/1D] Try to make TestIonBurnerFlame more reliable 2018-08-14 14:58:18 -04:00
Ray Speth
331e11366a [1D/Python] Respect 'refine_grid' option when using 'auto' solver 2018-08-14 14:31:32 -04:00
Ray Speth
57b38ce40f [1D] Use tighter tolerances and bounds for charged species
Looser tolerances can lead to instabilities, especially in cases where negative
concentrations of charged species are found at the end of the first solving
stage.
2018-08-14 14:31:13 -04:00
Ray Speth
e7a48375dc Bump version to 2.4.0b2 2018-08-10 22:51:18 -04:00
Ray Speth
166249869b [Python/1D] Rename IonFlameBase.set_solvingStage to set_solving_stage
Lowercase with underscores matches the PEP8 style used elsewhere
2018-08-10 18:15:36 -04:00
Ray Speth
a54ab2f3ef [Doc] Update docs related to StFlow restructuring 2018-08-10 18:15:36 -04:00
Ray Speth
ac8612f36b [Doc] Add IonFlow and related classes to Sphinx docs 2018-08-10 18:15:36 -04:00
bangshiuh
ee633f3e16 [1D] Change Poisson equation to first-order difference 2018-08-10 18:15:36 -04:00
bangshiuh
3ade3335de [1D] Deprecate class FreeFlame and class AxiStagnFlow 2018-08-10 18:15:36 -04:00
bangshiuh
5082a212c4 [1D/Examples] Add example burner_ion_flame 2018-08-10 18:15:36 -04:00
bangshiuh
2527869536 [1D/Python] Create BurnerIonFlame and add test
Create a base class (IonFlameBase) for both IonFreeFlame and BurnerIonFlame, and
use the set_axisymmetric_flow() and set_free_flow() methods to select the flow
type.

Also combines FreeFlow and AxisymmetricStagnationFlow classes into class
IdealGasFlow.
2018-08-10 18:15:36 -04:00
bangshiuh
a5762ea6b6 [1D] Add function to set flow type and make IonFlow inherit from StFlow 2018-08-10 18:15:36 -04:00
Ray Speth
c1067aa6e9 [1D] Move functions from FreeFlame and AxiStagnFlow into StFlow
This makes it possible to implement alternative constitutive relations
(e.g. ionized or non-ideal gases) as a derived class from StFlow and have them
support all of the standard flame configurations (freely propagating, burner
stabilized, counterflow).
2018-08-10 18:15:36 -04:00