Commit graph

6800 commits

Author SHA1 Message Date
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
Bryan W. Weber
045f3d37bf [Doc] Fix CSS font specification for Alabaster theme
The font themes must be specified as a string rather than a list.
2018-08-10 11:20:31 -04:00
Ray Speth
fb68cae145 [Thermo] Keep PureFluidPhase state data consistent
Previously, calls to setTemperature, setDensity, and setState_TR did not result
in the underlying Substance object being updated. In addition, the
isothermalCompressibility and thermalExpansionCoeff methods did not synchronize
the state.

Now, setting the state of the PureFluidPhase object always sets the state of the
Substance object, and no synchronization is required in property calculation
functions.
2018-08-03 15:18:30 -04:00
Ray Speth
b5b542d10b [Test/Matlab] Run TestImport on all platforms
This portion of the Matlab test suite was being skipped on some platforms and/or
Matlab versions. Switching to the 'classdef' style of tests fixes the problem.
2018-08-02 18:17:22 -04:00
Ray Speth
4911539b56 [1D] Refine grid after expanding domain width
The test for a sufficiently wide domain short circuits the normal control logic
which makes a call to refine() after each successful steady-state solve. This
caused failures for certain cases where sucessive solutions on wider grids with
only a few points still failed to satisfy the gradient criterion at the edges of
the domain.
2018-08-02 17:51:31 -04:00
Ray Speth
5f556acd34 [Doc/CI] Only upload docs from Cantera/cantera
Decrypting the SSH key will fail from any other fork
2018-07-30 19:40:36 -04:00
Ray Speth
1864e8fd6c [Doc/CI] Fix Doxygen exclude pattern to not exclude all files on Travis
On Travis, the build directory '/home/travis/build/cantera' matched the (no
longer needed) exclude pattern of ' /build/*', causing all source files to be
skipped.
2018-07-30 19:40:24 -04:00
Ray Speth
677efd82d5 [Test/Matlab] Collect pass/fail data for individual tests 2018-07-30 11:25:27 -04:00
Ray Speth
bdaabc0428 [Test/Matlab] Improve behavior when Matlab tests fail
Outright failures of the Matlab test suite which result in the test log file not
being written no longer cause SCons to abort. Instead, they are logged as a
major test failure, similar to the behavior of the Python test suite.
2018-07-30 11:25:27 -04:00
Ray Speth
fd57936b18 [ck2cti] Fix spurious 'unexpected output' warnings
When calling ck2cti via the C++ wrapper function, the output of the
'convertMech' function (usually an empty list) would be printed. Fixes a bug
introduced in db90a7c.
2018-07-30 11:25:27 -04:00
Ray Speth
e79cf6f8cb [Transport] Add temperature dependence of rotational relaxation
Results in increase in mixture-averaged thermal conductivity of ~1% or less, and
a similar increase in laminar flame speeds, at least for some test cases.
2018-07-30 10:47:49 -04:00
Ray Speth
c3ba264284 [1D] Fix IonFlame instability due to negative electron concentration 2018-07-30 10:47:49 -04:00
Bryan W. Weber
053267e254 [Doc] Generate XML output with Doxygen
This output will be useful to generate links from the website pages to
the C++ documentation; see Cantera/cantera-website#16
2018-07-29 17:47:14 -04:00
Bryan W. Weber
b84d3e3f79 [Doc] Enable generation of subdirectories to store the output
The files kinetics.h and onedim.h are present as high-level application 
include files and as lower-level implementation include files. Doxygen 
generates HTML documentation for all files in the same folder, and on 
case-insensitive file systems, the documetation for the application and 
the implementation files will shadow each other. This commit enables the 
option to put documentation files into subfolders in the root directory, 
hopefully separating these "duplicate" files
2018-07-29 17:47:14 -04:00
Bryan W. Weber
0d559778a7 [Doc] Update the Mathjax version for Doxygen 2018-07-29 17:47:14 -04:00
Bryan W. Weber
33840414e5 [CI] Fix Appveyor warnings about scripts not on PATH
Apparently new versions of NumPy include scripts that Pip feels the need
to warn aren't on the PATH. However, we don't use these scripts, so
disable the warning
2018-07-29 17:47:14 -04:00
Bryan W. Weber
7e1b6a1489 [Doc/CI] Build the docs after testing and upload to cantera.org
Use an ssh key with write access to cantera.org to rsync the built docs. Only
runs on non-pull-request builds of the master branch.

The sphinxcontrib-doxylink and sphinxcontrib-katex packages have bugs
that are fixed in our forks, so we have to install from the forks.
2018-07-29 17:47:14 -04:00
Bryan W. Weber
d33e67c36c [Doc] Put titles on raw links to main site 2018-07-29 17:47:14 -04:00
Bryan W. Weber
c28bc0235f Fix missing raw string in Cython docstring 2018-07-29 17:47:14 -04:00
Bryan W. Weber
d2252037c6 Fix docstring of Matlab CounterFlowDiffusionFlame.m 2018-07-29 17:47:14 -04:00
Bryan W. Weber
549463683d Fix Sphinx and Doxygen warning messages about moved content 2018-07-29 17:47:14 -04:00
Bryan W. Weber
4ea9d35a2b Add the CTI API documentation back to the main index page 2018-07-29 17:47:14 -04:00
Bryan W. Weber
3fae1c1a9a Remove pages moved to the new website 2018-07-29 17:47:14 -04:00
Bryan W. Weber
9670c5dac6 Remove most content from Sphinx docs index page
It's all moved elsewhere on the new site.
2018-07-29 17:47:14 -04:00
Bryan W. Weber
2f3a0122d6 [Doc] Fix some style typos in the Doxygen docs 2018-07-29 17:47:14 -04:00
Bryan W. Weber
dbc3df1687 Switch Sphinx docs to KaTeX instead of MathJax 2018-07-29 17:47:14 -04:00
Bryan W. Weber
e8d28b0e89 Redo layout.html to match the style of and to add links to the main site
We need to replace most of the Sphinx-defaults with things that look
like our new Nikola website and that link to places in the Nikola
website.
2018-07-29 17:47:14 -04:00
Bryan W. Weber
2a7aed8968 Switch to the alabaster theme for API documentation 2018-07-29 17:47:14 -04:00
Bryan W. Weber
3052701250 Remove Mathjax todo that has already been done 2018-07-29 17:47:14 -04:00
Bryan W. Weber
21db5d84f3 Move Matlab docs out of the code-docs subfolder
Now that examples are gone, it's not needed anymore.
2018-07-29 17:47:14 -04:00
Bryan W. Weber
b68a87d624 Make Matlab doc sections more consistent with Python sections 2018-07-29 17:47:14 -04:00
Bryan W. Weber
d57f1d147d Minor formatting change in GRI30 Matlab docstring 2018-07-29 17:47:14 -04:00
Bryan W. Weber
7a69386b8d Remove unused SConscript functions for building Python examples 2018-07-29 17:47:14 -04:00
Bryan W. Weber
e7f346cddf Fix references to examples in docstrings
Seems like the best bet is an absolute link, since the examples are no
longer in the Sphinx-generated docs
2018-07-29 17:47:14 -04:00
Bryan W. Weber
e81cac9582 [Examples] Remove building Matlab examples into the docs
They have moved to the new website
2018-07-29 17:47:14 -04:00
Bryan W. Weber
71072c43db Remove unneeded files from the Matlab samples 2018-07-29 17:47:14 -04:00
Bryan W. Weber
cc9c8e5633 Remove "Migrating" docs
It's been a few versions since we changed the Python module.
2018-07-29 17:47:14 -04:00
Bryan W. Weber
7b6d04c381 [Examples] Remove building Python examples into the documentation 2018-07-29 17:47:14 -04:00
Ray Speth
1b605133d8 [Transport/Test] Add test of CK_Mode 2018-07-11 15:41:42 -04:00
Ray Speth
435f28641e [Transport] Indicate value of CK_Mode flag in transportType string 2018-07-11 15:40:28 -04:00
Ray Speth
35aa8be61e [Transport] Fix to enable 'CK_Mix' and 'CK_Multi' model specifications
These model strings were being treated in TransportFactory in a way that
effectively resulted in creation of regular 'Mix' and 'Multi' transport objects.
2018-07-11 14:13:16 -04:00
Ray Speth
333d388f90 [SCons] Improve transition from system_googletest to googletest option 2018-07-09 15:24:25 -04:00
Ray Speth
9bad354553 Mark googletest-based tests as failures if googletest is not available 2018-07-09 15:24:25 -04:00
band-a-prend
fb4a36b1ca [SCons] implement 'googletest' option
New scons build option introduced to replace 'system_googletest'
and allow to not use 'googletest' module while running test
(all tests that require this module could be omited)

New option description:
'googletest',

"""Select whether to use gtest/gmock from system
   installation ('system'), from a Git submodule ('submodule'), to decide
   automatically ('default') or don't look for gtest/gmock ('none')
   and don't run tests that depend on gtest/gmock.
   If this option is set then it suppress the deprecated 'system_googletest' option."""

Old option is still presented and mentioned as 'deprecated'.
Option 'googletest' supresses the old 'system_googletest' one.
2018-07-09 15:24:25 -04:00
BangShiuh
5c783c708f [Transport/Test] Add tests for IonTransport properties 2018-06-15 10:44:46 -04:00
BangShiuh
1245a694e5 [Test/1D] change TestIonFlame to use IonGasTransport 2018-06-15 10:44:46 -04:00
BangShiuh
fa9b9374cf [1D] Add polyfit for electron transport profile 2018-06-15 10:44:46 -04:00
bangshiuh
f7852ad84c [Transport] Add use Blancs law to calculate mobilities 2018-06-15 10:44:46 -04:00
bangshiuh
eeb27d84a9 [1D] Remove charge neutrality solver option from IonFlow 2018-06-15 10:44:46 -04:00
BangShiuh
3a0f46eb56 [Transport] Add class IonGasTransport 2018-06-15 10:44:46 -04:00