Cantera / cantera

Chemical kinetics, thermodynamics, and transport tool suite
https://cantera.org
Other
582 stars 342 forks source link

Unable to restore ImpingingJet from HDF5 #1580

Closed speth closed 10 months ago

speth commented 10 months ago

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