Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ Equivalent of SolutionArray #137

Closed
ischoegl opened this issue Feb 21, 2022 Discussed in #119 · 0 comments · Fixed by Cantera/cantera#1426
Closed

C++ Equivalent of SolutionArray #137

ischoegl opened this issue Feb 21, 2022 Discussed in #119 · 0 comments · Fixed by Cantera/cantera#1426
Labels
feature-request New feature request

Comments

@ischoegl
Copy link
Member

ischoegl commented Feb 21, 2022

Abstract

In Python, the SolutionArray class offers a convenient way of handling multiple states. Equivalent objects are not available for other API's, where in particular a means for efficient file I/O would be important. While there now is the ability to save to YAML as ASCII text (see Cantera/cantera#1112), this will create unnecessarily large files for large mechanisms.

Discussed in #119

Originally posted by ischoegl October 6, 2021
In the Python API, SolutionArray objects hold multiple states, which allows for efficient manipulation of time series, spatial profiles etc. The implementation of this feature uses Python (Cython) exclusively, where an equivalent capability does not exist in the C++ core. Beyond manipulation of data sets, SolutionArray objects also offers a convenient vehicle to save and load data (e.g. CSV, HDF5), where interoperability between different interfaces would be beneficial.

This discussion is meant to collect some ideas within this context.

Other Thoughts

For a potential underlying storage structure, I am also wondering whether the discussion in #91 should be given some thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant