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

Unable to restore ImpingingJet from HDF5 #1580

Closed
speth opened this issue Aug 9, 2023 · 0 comments · Fixed by #1585
Closed

Unable to restore ImpingingJet from HDF5 #1580

speth opened this issue Aug 9, 2023 · 0 comments · Fixed by #1585

Comments

@speth
Copy link
Member

speth commented Aug 9, 2023

Problem description

The Sim1D.restore method fails for flames that use the ImpingingJet class.

Steps to reproduce

  1. Run samples/python/onedim/stagnation_flame.py
  2. Run the following commands:
import cantera as ct
gas = ct.Solution('h2o2.yaml')
flame = ct.ImpingingJet(gas)
flame.restore('stagnation_flame_data/stagnation_flame.h5', 'mdot-0')

Behavior

File build/python/cantera/_onedim.pyx:1665, in cantera._onedim.Sim1D.restore()

CanteraError: 
*******************************************************************************
CanteraError thrown by SolutionArray::setLoc:
Unable to set location in empty SolutionArray.
*******************************************************************************

System information

  • Cantera version: main branch at 4b30fa7
  • OS: macOS 13.3
  • Python 3.11, HDF5 1.14.1, HighFive 2.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant