Commit Graph
7829 Commits
Author SHA1 Message Date
Raymond Speth aae64d9b7b [Input] Remove deprecated input files and phase definitions 2021-02-16 14:00:57 -05:00
Raymond Speth 9ce04ba4e1 [SCons] Remove deprecated compilation options 2021-02-16 14:00:57 -05:00
Raymond Speth 2ef2cb05cd Bump version to 2.6.0a1 2021-02-16 14:00:57 -05:00
Bryan W. Weber b0bace7822 Bump to 2.5.1 v2.5.1 2021-02-12 16:57:15 -05:00
Bryan W. Weber 4ffa0bbccf [Doc] Remove Gitter references from README
Update text of installation instructions.
2021-02-12 16:57:15 -05:00
Bryan W. Weber 41f90431e3 Replace some "e.g." with "for instance" 2021-02-12 16:57:15 -05:00
Bryan W. Weber 44ed2642ca [SCons] Add configuration for Sphinx options
The default will exit the Sphinx build with error code 1 if any warnings
are encountered, but it will print all the warnings from a single run.

Since all the warnings from Sphinx are now resolved, this change means
that any CI failures due to warnings from Sphinx should be fixed before
merging a pull request.
2021-02-12 16:57:15 -05:00
Bryan W. Weber daa36668e7 [SCons] Fix Sphinx docs build in parallel
The Sphinx build requires both the Cython module to have been built and
the doxygen run to have finished. When running the build in parallel
with scons build -j#, there was the possibility that Sphinx could run
before all its dependencies were built. This change adds dependencies
for the Sphinx builder on Doxygen and the Cython module, resolving the
problem.
2021-02-12 16:57:15 -05:00
Bryan W. Weber a35344d74f [SCons] Avoid shadowing built-in str type 2021-02-12 16:57:15 -05:00
Bryan W. Weber 4ff4b78d5e [Sphinx] Fix spurious warnings in __init__ docs
This has been bugging me for years, and I'm very happy to have finally
fixed it! To debug this, I used the -vv output from sphinx-build to
inspect what autodoc was doing. autodoc seemed to have no problem
reading the source, but it was indeed generating reST with unmatched
emphasis and strong markers. Although it really seems like autodoc
should be able to handle this case, apparently it can't. Then, I was
reading the autodoc documentation when I noticed this idea of an event
handler, a function that gets called whenever a particular event
happens. I realized I could get in and munge the docstring text to
replace any unescaped splats with escaped ones.
2021-02-12 16:57:15 -05:00
Bryan W. Weber 4947fa6a4f [Doc] Fix NumPy intersphinx location
Use pathlib to read configuration file for Cantera's current version.
This avoids leaving the file handle open.
2021-02-12 16:57:15 -05:00
Bryan W. Weber 667a52d274 [Doc] Fix missing function for flow controllers
The flow controller base class added a new function in 2.5.0, which is
not overriden by the child classes. Make sure that this function is
documented.
2021-02-12 16:57:15 -05:00
Bryan W. Weber 15806ec400 [Doc] Fix Sphinx warnings about spacing and types 2021-02-12 16:57:15 -05:00
Bryan W. Weber 45c7b2bd27 [Doc] Thermo docstring formatting more consistent
- Use two backticks where links to methods/properties are not intended
- Move examples to be before the parameter list
- Consistently format parameter descriptions
2021-02-12 16:57:15 -05:00
Bryan W. Weber fbea55a64b [Doc] Fix Sphinx warnings for unintended unindent
It seems that one space and one tab character were causing warnings
from Sphinx about the docstring of equivalence_ratio. That is resolved
in this change and the example is moved to its more typical place above
the parameters.
2021-02-12 16:57:15 -05:00
Bryan W. Weber bb67472b70 [Doc] Update doxygen configuration
Doxygen was warning about unused options. The Doxyfile was updated by
running doxygen -u.
2021-02-12 16:57:15 -05:00
Bryan W. Weber 526c26e328 [Cython] Rename mixFrac argument
This changes the argument name from mixFrac to mixture_fraction, to be
more idomatic Python.
2021-02-12 16:57:15 -05:00
Bryan W. Weber d9506818f4 [CI] Cap maximum Sphinx version
Sphinx 4.0 (from the main branch) is incompatible with several
extensions we use (katex, matlabdomain). Set a maximum for the Sphinx
version installed during the CI run to avoid unintentional breakage.
2021-02-12 16:57:15 -05:00
Raymond Speth 4f265d11a7 [Doc] Fix missing Python class member documentation
Sphinx 1.8 deprecated the 'autodoc_default_flags' option. It appears
to have stopped working without warning in more recent versions.
2021-02-09 22:18:20 -05:00
Raymond Speth 6ce695d96d Bump version to 2.5.0
Update 'cantera-version' in all YAML files to correspond to the stable
release.
v2.5.0
2021-02-08 13:28:55 -05:00
Raymond Speth 94f641583f [Input] Add transitional ohmech-multi phase to h2o2.yaml
Matches the definition in h2o2.cti. Like what we are doing with the
gri30.cti -> gri30.yaml transition, this phase name is immediately
deprecated.
2021-02-08 13:28:55 -05:00
Raymond Speth aea1ff829e [SCons] Don't invite use of sudo to install 2021-02-08 13:28:55 -05:00
Raymond Speth d7b5eeb844 [SCons] Fix install path logic for minimal Python module
Handle the same special cases that we take care of for the full Python
module.

Fixes #969
2021-02-08 13:28:55 -05:00
Raymond Speth 1ef269cb1a [Doc] Add man pages for YAML conversion scripts 2021-02-08 13:28:55 -05:00
Raymond Speth 3bba25fa02 Fix 'execute' bit on SRI test data file 2021-02-08 13:28:55 -05:00
Raymond Speth b475012911 [SCons] Print installation location of minimal Python package 2021-02-08 13:28:55 -05:00
Raymond Speth b165daf075 [SCons] Sundials versions up to 5.7 have been tested 2021-02-08 13:28:55 -05:00
Raymond Speth 8ea37ee0fb [Python] Update shebang lines to specify Python 3 2021-02-08 13:28:55 -05:00
Raymond Speth 2ed1d27485 Bump version to 2.5.0rc1 v2.5.0rc1 2021-02-05 11:29:55 -05:00
Raymond Speth 0edaf316ac [SCons] Fix compilation of f77 sample with clang+gfortran
Compiling demo_ftnlib.cpp as a shared object (with -fPIC) fixes an
error about being unable to relocate some pthread-related symbol.
2021-02-05 11:29:55 -05:00
Raymond Speth c9811e8e0a [SCons] Suppress deprecation warnings caused by Cython
The deprecation warnings previously observed only on macOS are also
emitted when using Clang 10.0 on Linux. Also, despite supposedly being
resolved in Cython 0.29.14, I still get these warnings in Cython
0.29.21.
2021-02-05 11:29:55 -05:00
Ray Speth 2d6030853b Fix MinGW warning about CreateFile arguments 2021-02-05 11:29:55 -05:00
Ray Speth 072cb815ea [SCons] Don't compile Sundials Fortran interface
Cantera doesn't use this part of Sundials, and bundling all of these
files into the cantera library leads to linker errors when compiling
with MinGW and on macOS, due to redefinition of symbols like
'F2C_CVODE_matrix'.
2021-02-05 11:29:55 -05:00
Ray Speth f2e127eec2 Fix MinGW warning about NOMINMAX redefinition 2021-02-05 11:29:55 -05:00
Bryan W. Weber 185aa977af [Cython] Fix deprecation warning in NumPy 1.20
NumPy 1.20 deprecates numpy namespace aliases to built-in types, such as
int, float, and object. Explicit specification of the precision with
float64 is still supported and does not need to be changed. See:
https://github.com/numpy/numpy/releases/tag/v1.20.0 and
https://github.com/numpy/numpy/pull/14882
2021-02-03 11:55:42 -05:00
Raymond Speth dceb911dd2 [Test/Reactor] Adjust tolerance for species sensitivity test
Previous tightening of integration tolerances in 9832c88 seems to
generate integrator failures for some configurations.

Resolves #937
2021-02-02 14:08:15 -05:00
Raymond Speth b3f36860f1 [Input] Include species T-min and T-max in conversions to YAML 2021-01-29 21:35:40 -05:00
Raymond Speth 272398e6e1 [Test] Fix badly-formated floats in XML input files 2021-01-29 21:35:40 -05:00
Raymond Speth 8c0da723a2 [Input] Add T-min and T-max fields to YAML species thermo 2021-01-29 21:35:40 -05:00
Raymond Speth 692d8fadf4 [Thermo] Make default T_max for species infinity
For the constant-cp (ConstCpPoly) and piecewise-gibbs (Mu0Poly)
species thermo models, the default min and max temperature were both
zero. Because Cantera rarely checks these temperature bounds, use of
these defaults is fine in most cases, but causes confusing errors on
the rare occasions where the bounds are accessed, as in the "gibbs"
(MultiPhase) equilibrium solver.

Setting the default max temperature to infinity avoids these confusing
errors without introducing an arbitrary default value or the
requirement to always specify temperature limits.
2021-01-29 21:35:40 -05:00
Raymond Speth 81aa2c2938 Deprecate nasa.yaml
Prefer the more specific files nasa_gas.yaml and nasa_condensed.yaml
2021-01-29 21:35:40 -05:00
Raymond Speth ea9b2699ee [Thermo] Fix argument name for IdealGasPhase::setToEquilState
Completes update started in f5f12caa8
2021-01-29 21:35:40 -05:00
Raymond Speth 918368ea0a [Kinetics/Doc] Add missing minus signs in Plog docs
Corresponds to fix applied in Cantera/cantera-website#116
2021-01-29 21:35:40 -05:00
Ingmar Schoegl 85b8f23c35 Mark _allowGasPhase override as not intended for general use 2021-01-29 13:39:28 -05:00
Ingmar Schoegl f092244bec [thermo] Avoid spurious WaterPropsIAPWS::density failures
Some initial guesses fail (see GitHUb issue #577, or starting with an initial
density guess equl to the critical density); running an alternative initial
guess prevents spurious failures (fix is a band-aid).
2021-01-29 13:39:28 -05:00
Ingmar Schoegl ac1274fa0a [thermo] Finalize liquid-water-IAPWS95 updates 2021-01-29 13:39:28 -05:00
Ingmar Schoegl 25dc38e997 [thermo] Clarify WaterSSTP::type 2021-01-29 13:39:28 -05:00
Ingmar Schoegl 4ba894df55 [thermo] Add IAPWS as alternative backend to existing Water wrapper
While the current 'liquid-water-IAPWS95' thermo model only implements liquid
(and supercritical) states, the underlying IAPWS formulation can be extended
beyond in future revisions.

- avoid 'liquid' as part of the nomenclature
- YAML phase name is updated to `water-iapws95`
- Instead of creating a new wrapper, `iapws95` is added as an alternative
  backend to the existing `Water` class
2021-01-29 13:39:28 -05:00
Ingmar Schoegl 1880e2402c [thermo] Implement phaseOfMatter for WaterSSTP class 2021-01-29 13:39:28 -05:00
Ingmar Schoegl fe7bd2101f [unittests] Add/update tests for LiquidWater object 2021-01-29 13:39:28 -05:00