Commit Graph

417 Commits

Author SHA1 Message Date
Ingmar Schoegl
0827444065 [oneD] Rename StFlow to Flow1D 2024-06-23 14:15:27 -04:00
Ray Speth
b4fa5318b4 [1D] Update formatting related to two point flame control 2024-06-21 14:23:34 -04:00
Christopher Neal
b1c683b691 fixed whitespace errors 2024-06-21 14:23:34 -04:00
Christopher Neal
9fd067dbaa formatting changes & documentation/samples tweaks 2024-06-21 14:23:34 -04:00
Christopher Neal
7b2cace4c4 improved comments for control point picking, added more tests, updated example script 2024-06-21 14:23:34 -04:00
Christopher Neal
b357c79f53 updates to docstrings, code logic, and tests for two-point control 2024-06-21 14:23:34 -04:00
Christopher Neal
a5221ac503 added a documentation section and an example 2024-06-21 14:23:34 -04:00
Ray Speth
4d509b5423 [Python] Fix Numpy 2.0 compatibility issues 2024-06-19 10:27:10 -04:00
Ray Speth
4565a55e40 [Examples] Fix use of deprecated pint unit formatter 2024-06-10 21:17:16 -05:00
Ray Speth
1a6f711795 [Transport] Handle empty string as transport model more consistently
The empty string / Python None object correspond to the 'none' transport
model, never to the 'default' transport model defined by the YAML file.

Resolves #1680
2024-06-10 21:17:16 -05:00
Ray Speth
b39c64aee8 Migrate CSTR example from Jupyter
Co-authored-by: Santosh Shanbhogue <santosh.shanbhogue@gmail.com>
2024-04-20 07:37:18 -05:00
Ray Speth
9576bd084c Migrate interactive path diagram example from Jupyter
Co-authored-by: Sai Krishna <sirumalla.s@husky.neu.edu>
2024-04-20 07:37:18 -05:00
Ray Speth
76cc445a29 Revise nonideal shock tube example based on Jupyter Notebooks
Brings in some updates based on nonideal_shock_tube.ipynb and
batch_reactor_ignition_delay_NTC.ipynb.

Co-authored-by: Santosh Shanbhogue <santosh.shanbhogue@gmail.com>
Co-authored-by: Steven DeCaluwe <steven.decaluwe@gmail.com>
2024-04-20 07:37:18 -05:00
Ray Speth
a230d54da5 Migrate 1D packed bed example from Jupyter
Co-authored-by: Gandhali Kogekar <gkogekar@gmail.com>
2024-04-20 07:37:18 -05:00
Ray Speth
5077786b02 Revise twin flame example based on Jupyter
Re-draw figure from Jupyter example as an SVG.

Co-authored-by: Santosh Shanbhogue <santosh.shanbhogue@gmail.com>
2024-04-20 07:37:18 -05:00
Ray Speth
1fda1c022f Migrate flame convergence analysis example from Jupyter
Co-authored-by: Richard West <r.west@northeastern.edu>
2024-04-20 07:37:18 -05:00
Ray Speth
3fdd45e357 [Doc] Automatically ignore unwanted Matplotlib output in gallery 2024-04-20 07:37:18 -05:00
Ray Speth
32a6d3da4e Revise flame speed sensitivity example based on Jupyter version
Co-authored-by: Santosh Shanbhogue <santosh.shanbhogue@gmail.com>
2024-04-20 07:37:18 -05:00
Ray Speth
e97aed10fc Revise lithium ion battery example based on Jupyter version
Co-authored-by: Steven DeCaluwe <steven.decaluwe@gmail.com>
2024-04-20 07:37:18 -05:00
Ray Speth
908ee90267 Migrate nonideal equation of state example from Jupyter
Co-authored-by: Gandhali Kogekar <gkogekar@gmail.com>
Co-authored-by: Bryan W. Weber <bryan.w.weber@gmail.com>
2024-04-20 07:37:18 -05:00
Ray Speth
9a33c9532a [Examples] Move input for coverage dependent surface to submodule 2024-04-11 08:57:01 -04:00
Ray Speth
3da2d27b22 [Examples] Move input files for PorousMediaBurner.py to submodule 2024-04-11 08:57:01 -04:00
Ray Speth
9ec376ec06 Move Itikawa example mechanism to data repo 2024-04-11 08:57:01 -04:00
Ingmar Schoegl
8a789676cf [0D] Deprecate direct thermo/kinetics setters 2024-04-10 23:03:52 -04:00
Bang-Shiuh Chen
192fd64cf3 [sample, data] add plasma.py and oxygen-plasma-itikawa.yaml 2024-03-28 10:55:04 -04:00
Ingmar Schoegl
4b4e790f5a [MATLAB-legacy] Remove samples 2024-03-28 09:27:10 -04:00
Ingmar Schoegl
dc98dfe5f5 [samples] Discontinue use of zeroD insert 2024-02-20 21:56:45 -05:00
Ingmar Schoegl
71e4ccba6d [samples] Use numpy.trapz instead of scipy version
Avoids DeprecationWarning: "'scipy.integrate.trapz' is deprecated
in favour of 'scipy.integrate.trapezoid' and will be removed in
SciPy 1.14.0".
2024-01-23 18:54:17 -05:00
Ray Speth
7efb996335 [Test] Run C++ programs from User Guide as part of test suite 2024-01-16 17:17:39 -05:00
Ray Speth
3903cacf30 [Examples] Embed fixed temperature file for burner-stabilized flame 2023-10-03 11:23:39 -04:00
Ray Speth
5dacf66bda [Examples] Make author acknowledgments more consistent 2023-10-03 11:23:39 -04:00
Ray Speth
faadf015ee Add Matlab examples to sphinx-gallery 2023-10-03 11:23:39 -04:00
Ray Speth
6eb4f08907 Add clib example to sphinx-gallery 2023-10-03 11:23:39 -04:00
Ray Speth
732e7e89fa Add Fortran examples to sphinx-gallery 2023-10-03 11:23:39 -04:00
Ray Speth
f720a573db [Doc] Add C++ examples to sphinx-gallery 2023-10-03 11:23:39 -04:00
Ray Speth
c49c95d666 [Doc] Add remaining Python examples to sphinx-gallery
Introduce a monkey patch to avoid executing specific examples that
won't run under sphinx-gallery.
2023-10-03 11:23:39 -04:00
Ray Speth
9db15111b6 [Doc] Use sphinx-tags to enable finding examples by tag 2023-10-03 11:23:39 -04:00
Ray Speth
666f4d474c [Doc] Minimal working sphinx-gallery integration
This includes just the Python "kinetics" examples to start
2023-10-03 11:23:39 -04:00
Ray Speth
9696e27ea6 Fix a broken link to pint docs in sound_speed_units.py 2023-09-24 15:17:42 -04:00
ThorstenZirwes
2f3ba6a577 add missing porosity to PorousMediaBurner.py
The chemical source term of the gas-phase temperature equation was missing the porosity
2023-09-08 09:52:35 -05:00
Ray Speth
0e12271d34 [Examples] Return non-zero status after error
Allows the SCons test runner to detect errors running these samples
2023-08-27 04:15:16 -07:00
Ray Speth
309bf34a73 Remove code deprecated in Cantera 3.0
This takes care of simple removals of deprecated methods/classes
2023-08-26 19:03:02 -07:00
Ray Speth
5bb1e879d2 [Examples] Avoid deprecated function use in BVP example 2023-08-26 19:03:02 -07:00
Ray Speth
ca1bd8abf0 [Examples] Add missing equation-of-state fields for LiC6 species 2023-08-26 19:03:02 -07:00
Ray Speth
8e2ab16acb [SCons] Clean up generated build scripts for clib demo 2023-08-21 17:27:32 -06:00
Ray Speth
2820749d0f [SCons] Fix cleanup of -isysroot flags in package builds
Also filter out paths referring to conda build environment
2023-08-21 17:27:32 -06:00
Ray Speth
54ede24657 [Samples] Check for missing input in clib demo 2023-08-21 17:27:32 -06:00
Ray Speth
08c1f84071 [SCons] Improve setting compiler in sample SConstruct files
For package builds, do not specify compiler. Otherwise, specify the
same compilers that were used to build Cantera.

In both cases, allow CC, CXX, etc. environment variables to override
the settings in SConstruct.
2023-08-21 17:27:32 -06:00
Ray Speth
c67d003c2f [SCons] Workaround for SCons ignoring RPATH in sample SConstruct files 2023-08-21 17:27:32 -06:00
Ray Speth
a26e2a5bca [SCons] Fix OpenMP flags in generated CMakeLists.txt files
The two values need to be combined as a single string to prevent CMake
from interpreting them as a list and inserting a semicolon that results
in a broken compiler command that looks like this:

    g++ -I/some/path;-fopenmp source_file.cpp ...
2023-08-21 17:27:32 -06:00