Commit Graph

2258 Commits

Author SHA1 Message Date
Ray Speth
58a5c6a1a8 [Delegator] Improve error messages when return types are missing 2023-01-21 17:43:37 -06:00
Ray Speth
0392d6553e [SCons] Avoid unnecessary rebuilds of wheel
Fixes a regression introduced in 0958f7cf.
2023-01-21 17:43:37 -06:00
Ray Speth
49c06fd679 Fix inclusion of function arguments in Sphinx docs
Resolves #1408
2023-01-21 17:43:37 -06:00
Ray Speth
7515ecc5b1 Improve error messages for unimplemented ExtensibleRate methods 2023-01-21 17:43:37 -06:00
Ray Speth
c336f2470d Update documentation for ExtensibleRate 2023-01-21 17:43:37 -06:00
Ray Speth
5e5e7dfd23 Remove need for prefixing required delegates 2023-01-21 17:43:37 -06:00
Ray Speth
199c98b300 [Python] Allow use of '__slots__' in Extensible classes 2023-01-21 17:43:37 -06:00
Ray Speth
f687bfdbf7 Implement ExtensibleRateData for Python interface 2023-01-21 17:43:37 -06:00
Ray Speth
2e65ab1ed5 Allow Solution to hold references to external wrappers 2023-01-21 17:43:37 -06:00
bangshiuh
1fa20b7b75 [interface, thermo] fix PlasmaPhase by adding the inheritance 2023-01-15 11:35:27 -06:00
bangshiuh
a1d393087b delete unused except +translate_exception 2023-01-15 11:35:27 -06:00
bangshiuh
5f40aac79f [interface] add electron pressure 2023-01-15 11:35:27 -06:00
Ingmar Schoegl
d1d0027e9b [OneD] Improve naming of Domain1D objects 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
834c39bfb0 [OneD] Remove legacy YAML serialization 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
ef8b62dec7 [OneD] Return header data when loading via Sim1D::restore 2023-01-12 14:05:37 -05:00
Ray Speth
f550faa477 [Python] Defer import of h5py until time of use
This avoids potential conflicts between the versions of libhdf5 linked
to the Cantera library and h5py, which could occur when a C++ main
application made use of the Python ExtensibleRate class.
2023-01-12 14:05:37 -05:00
Ingmar Schoegl
df3d6f96fc [Python] Deprecate Sim1D.write_hdf 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
85efbc1bdd Ensure HDF5 can be read by SolutionArray.read_hdf 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
f5dc973ee5 Implement HDF5 compression 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
c6aa334830 Refine HDF5 support infrastructure 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
2d97dafbd9 Mark new features 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
d9c576016c [Python] Add methods to test pre-existing YAML converters 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
240f9bba19 [Python] Add utility to query HDF support 2023-01-12 14:05:37 -05:00
Ingmar Schoegl
957dd2414b [yaml2ck] Fix explicit third body reaction output
Prior to this fix, third body efficiencies were erroneously specified
for third body reactions with explicit collision partners (see #1415).
2023-01-04 09:07:29 -05:00
ssun30
2ce92eac2e Fixed Matlab legacy examples and added missing blank lines.
Added Su Sun to AUTHORS.
2022-12-15 07:16:04 +01:00
Ray Speth
2fafee813d Drop support for Python 3.7 2022-11-21 09:00:30 -06:00
Ray Speth
bae69c00d4 Fix sourcegen compatibility with Python 3.8 2022-11-03 19:37:50 -05:00
Corey Randall
03b60bd7b7 update C++ syntax to comply with community conventions 2022-10-09 20:06:06 -05:00
Corey Randall
ba5d5f892d modified syntax for consistency with other code, added comment for interface_current 2022-10-09 20:06:06 -05:00
Corey Randall
9fa8d30ab4 removed unneeded constants import from cython interface kinetics.pyx file 2022-10-09 20:06:06 -05:00
Corey Randall
3262435b8b updated interface_current and test to be written in C++ 2022-10-09 20:06:06 -05:00
Corey Randall
84a643c6b5 interface_current method and accompanying test added 2022-10-09 20:06:06 -05:00
Ingmar Schoegl
760ea59edd [oneD] Ensure Python API passes Solutions to boundaries 2022-09-28 21:01:46 -04:00
Ingmar Schoegl
3dfb13e8be [oneD] Add Solution to ReactingSurf1D objects 2022-09-28 21:01:46 -04:00
Ray Speth
7ace1bc40f Update documentation of "version added" 2022-09-11 10:59:30 -04:00
Ray Speth
82a76e8a81 Ensure registration of extension rates in host Cantera library
If a user application is linked statically to the Cantera library,
ExtensibleRate objects need to be registered in this copy of the Cantera
library rather than the one that is embedded in the Python module.
This is achieved by accessing the ReactionRateFactory from the main
application rather than from the Python module.
2022-09-11 10:59:30 -04:00
Ray Speth
58af2ea06e Add more documentation for ExtensibleRate 2022-09-11 10:59:30 -04:00
Ray Speth
71ac8d0c9d Provide user-defined name for ExtensibleRate objects 2022-09-11 10:59:30 -04:00
Ray Speth
bf1e2b4b73 Implement delegation of ReactionRate::setParameters 2022-09-11 10:59:30 -04:00
Ray Speth
da59a9044a Use decorator to register ExtensibleRate objects 2022-09-11 10:59:30 -04:00
Ray Speth
cd7b90ff97 Register ExtensibleRate types with ReactionRateFactory 2022-09-11 10:59:30 -04:00
Ray Speth
4f45b14c98 Scan user-provided Python module for ExtensibleRate classes 2022-09-11 10:59:30 -04:00
Ray Speth
0958f7cf31 [SCons] Extract Python module-building environment setup 2022-09-11 10:59:30 -04:00
Ray Speth
9875cb49f4 Make Delegator ownership optional for ExtensibleRate 2022-09-11 10:59:30 -04:00
Ray Speth
6e23308948 Pass an arbitrary argument to user rate function 2022-09-11 10:59:30 -04:00
Ray Speth
9dcb02c00b Minimal implementation of ExtensibleRate 2022-09-11 10:59:30 -04:00
Anthony Walker
c91e9eba6f Version documentation for MoleReactors 2022-09-09 13:51:46 -04:00
Anthony Walker
08698845e6 Updates to documentation
Co-authored-by: Ingmar Schoegl <ischoegl@lsu.edu>
2022-09-09 13:51:46 -04:00
Anthony Walker
a999ead68f Implements MoleReactor and ConstPressureMoleReactor, tests, and docs.
This commit implements MoleReactor and ConstPressureMoleReactor classes,
it adds the appropriate python interfaces for them, it also adds a test
comparing surface chemistry of mole reactors to traditional reactors.

test_component_names had a bug because the network was not initialized
so self.net.n_vars was 0 and the loop was never entered. Adding a line
to initialize the network reveal that the test failed for
IdealGasMoleReactor so the appropriate lines were added to fix it.

Add wrappers for Extensible...MoleReactor, update docs, comment fixes.
2022-09-09 13:51:46 -04:00
Ingmar Schoegl
d67a1aa4b4 Address review comments
Co-authored-by: Bryan Weber <bryan.w.weber@gmail.com>
2022-09-05 13:28:19 -04:00