Commit Graph

10177 Commits

Author SHA1 Message Date
Ingmar Schoegl
7a07ff3810 [unittest] Update test suite
Update test-python-onedim, test-oneD and test-clib
2023-03-18 17:21:07 -04:00
Ingmar Schoegl
f3cc240799 [samples] Update oneD samples 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
a0f7c40f32 [Python] Reintroduce FreeFlow and AxisymmetricFlow 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
a91970b2b4 [Python] Update Sim1D construction 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
60d5e33d9a [Python] Instantiate Domain1D objects from factory
In addition, deprecate IdealGasFlow::flow_type
2023-03-18 17:21:07 -04:00
Ingmar Schoegl
40ee0524dc [clib] Convert DomainCabinet to SharedCabinet 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
7df55ad0bf [oneD] Construct Sim1D from shared pointers 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
0df4cb4328 Add Interface to cantera/core.h 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
2b86bf4757 [unittest] Add coverage of new clib functions 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
e577ee1ca9 [clib] Implement soln_setTransportModel 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
065afc5ea2 [matlab] Replace magic number domain types 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
01b88b090d [samples] Replace show_solution by show 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
9073fae2d2 [oneD] Deprecate Domain1D::domainType 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
ee28caa2e3 [clib] Create domain_type3 to interface with Domain1D::type 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
8eb06393fa [oneD] Deprecate showSolution in favor of show 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
c58f6f71fb [oneD] Move spreadRate to Boundary1D 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
4833a88b1f [oneD] Introduce StFlow::isFree 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
4210e86f65 [oneD] Deprecate StFlow::flowType 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
358512a6f8 [oneD] Introduce Domain1D::type 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
a5172b12bf [oneD] Implement DomainFactory 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
0c5fc1db27 Make SolutionArray::share a member function 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
26d73a3396 [SolutionArray] Restrict scope of helper functions 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
b95d3f27c0 [Python] Drop hidden SolutionArray properties 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
b356ec52af [unittest] Update Python SolutionArray tests 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
d516d25879 [unittest] Add SolutionArray/Storage to google tests 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
9fd1218047 [samples] Update HDF support in Python samples 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
65110ff667 [Python] Deprecate legacy HDF support with h5py
Disable creation of HDF using h5py

Redirect SolutionArray.write_hdf to SolutionArray.save in order
to prevent new files with deprecated HDF format.
2023-03-16 10:13:02 -04:00
Ingmar Schoegl
a266de05f2 [Python] Link SolutionArray states to C++ core
Base class SolutionArrayBase (implemented in solythonbase.pyx) is used
as interface
2023-03-16 10:13:02 -04:00
Ingmar Schoegl
9462857152 [data] Save legacy HDF format files for testing
Files written using legacy HDF format introduced in Cantera 2.5.
All files are created based on the test suite of Cantera 2.6.

Note: legacy (h5py-based) writer removed in Cantera 3.0; format remains
readable with native (HighFive-based) HDF support.
2023-03-16 10:13:02 -04:00
Ingmar Schoegl
6d1835c722 [SolutionArray] Rework SolutionArray and Storage
This is a squashed commit implementing the following:
- Make data shareable and sliceable
- Order SolutionArray extra entries
- Switch extra to AnyValue
- Use AnyValue in addExtra
- Set/get extra entries as AnyMap
- Set/get components as AnyValue
- Refine extra component handling
- Add shape information in C++
- Add additional HDF storage modes
- Access entries as 'loc' rather than 'index' (This change of
  nomenclature is inspired by pandas, where the index refers to the
  indexing column, while location refers to the row.
- Update HDF subfolder logic
- Address edge cases in HDF Storage wrapper
- Fix edge cases in SolutionArray
2023-03-16 10:13:02 -04:00
Ingmar Schoegl
a177366c29 [base] Add new C++ SolutionArray methods 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
67a98336ce [Python] Accept numpy types for python_to_anyvalue
Also expose AnyValue utility functions from _utils.pyx
2023-03-16 10:13:02 -04:00
Ingmar Schoegl
bfa7545d53 [Python] Stringify None to "" 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
8c6a2282b9 [AnyValue] Add service functions 2023-03-16 10:13:02 -04:00
Ingmar Schoegl
cbddc73177 Ignore .DS_Store files 2023-03-16 10:13:02 -04:00
Ray Speth
b076ed9643 Standardize on lowercase 'none' as empty model name
Deprecate 'None'
2023-03-13 22:58:24 -05:00
Ray Speth
23ebd13dbf Deprecate XML-era transport names 'Mix' and 'Multi'
Fixes #1425
2023-03-13 22:58:24 -05:00
Ray Speth
fde6650a0b Deprecate most XML-era model names 2023-03-13 22:58:24 -05:00
Ray Speth
4e16561b95 Eliminate usage of and deprecate Phase::moleFractdivMMW 2023-03-13 22:58:24 -05:00
Ray Speth
7ce825aebd Deprecate integer-based instantiation of tpx::Substance 2023-03-13 22:58:24 -05:00
Ray Speth
adb49c3c18 Deprecate unused methods of PDSS classes 2023-03-13 22:58:24 -05:00
Ray Speth
ebf7cb6bb1 Document reasons for providing activity coefficient derivatives 2023-03-13 22:58:24 -05:00
Ray Speth
125e150380 Remove unnecessary non-implementatiosn of getdlnActCoeffdlnN_diag 2023-03-13 22:58:24 -05:00
Ray Speth
9153ef23ab Deprecate class MaskellSolidSolnPhase
This phase model is incomplete, has numerous thermodynamic consistency
issues as documented in #1321, and has no known non-trivial examples.

Resolves #1321
2023-03-13 22:58:24 -05:00
Ray Speth
5e50be34f3 [Doc] Fix building Sphinx docs on macOS
macOS doesn't allow passing DYLD_LIBRARY_PATH through a shell, so
we need to use subprocess.call to be able to call sphinx-build while
including build/lib in the library path. The need to have the library
path set for this is a result of the transition to linking the Python
module against a shared version of libcantera.
2023-03-13 22:58:24 -05:00
Ray Speth
f04ea58338 Deprecate class IonsFromNeutralVPSSTP and class PDSS_IonsFromNeutral
This model has had a request for tests/examples out for many years (#267)
with no response, and the addition of consistency tests revealed multiple
errors in the implementation (documented in #1322). Further, there is no
mathematical description of the model or references to literature to use
as a reference in trying to correct any of these issues.

Resolves #1322.
2023-03-13 22:58:24 -05:00
Ray Speth
922402575a Deprecate unused methods of class Transport 2023-03-13 22:58:24 -05:00
Ray Speth
26578861d2 Deprecate unused/redundant methods of class Kinetics 2023-03-13 22:58:24 -05:00
Ray Speth
a69206c724 Deprecate unused methods of class ThermoPhase 2023-03-13 22:58:24 -05:00
Ray Speth
d1a57424d7 Deprecate unused methods of class Phase 2023-03-13 22:58:24 -05:00