Commit Graph

10194 Commits

Author SHA1 Message Date
Jongyoon Bae
b583cadc89 Fix reference class as SurfPhase in test 2023-03-18 17:25:00 -04:00
Jongyoon Bae
23732b2cba Remove redundant variables in initThermo 2023-03-18 17:25:00 -04:00
Jongyoon Bae
f9db845d18 Remove redundant variables in PolynomialDependency 2023-03-18 17:25:00 -04:00
Jongyoon Bae
5fe32cea54 CoverageDependentSurfPhase updates
- fixed AssertThrowMsg
- deleted unused rxns in example yaml
- reverted cython thermo docstring and blank lines
- removed kwarg in updateThermo()
2023-03-18 17:25:00 -04:00
Jongyoon Bae
125334b84e Nest dependency objects inside CoverageDependentSurfPhase class
- changed errors to InputFileError
- grouped methods in docstrings
- add a blank line between docstring and declaration
2023-03-18 17:25:00 -04:00
Jongyoon Bae
1753ebd5c5 Improve CoverageDependentSurfPhase documentation
- added doxygen docstring
- fixed the class description in the heading
- fixed inline math texts, and void function descriptions
2023-03-18 17:25:00 -04:00
Jongyoon Bae
1af28a9696 combined PiecewiseDependency into Interpolative Dependency 2023-03-18 17:25:00 -04:00
Jongyoon Bae
c7f1647760 All lines modified to below 88 char 2023-03-18 17:25:00 -04:00
Jongyoon Bae
43b8f805ce enabled spell checker and fixed typos 2023-03-18 17:25:00 -04:00
Jongyoon Bae
0d205d19d9 rectified thermo.pyx 2023-03-18 17:25:00 -04:00
Jongyoon Bae
a580c52ffc revised covdepthermo main code block
reformatted covdep_test

revised constructors
2023-03-18 17:25:00 -04:00
Jongyoon Bae
c4bbb39235 removed unnecessary parts from example yaml 2023-03-18 17:25:00 -04:00
Jongyoon Bae
f121f3cab0 Initial implementation of CoverageDependentSurfPhase 2023-03-18 17:25:00 -04:00
Ingmar Schoegl
2884a08f71 [1D] Use StFlow::fixed_mdot when applicable 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
bf4ab52ca3 [clib] Add bdry_setSpreadRate/bdry_spreadRate 2023-03-18 17:21:07 -04:00
Ingmar Schoegl
ad761c36b0 [clib] Replace doublereal in definition files
While declarations no longer use doublereal, instances were not replaced
in definition files.
2023-03-18 17:21:07 -04:00
Ingmar Schoegl
43d4086c5b [sphinx] Add FreeFlow and AxisymmetricFlow 2023-03-18 17:21:07 -04:00
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