Hi,
I've used Cantera for years for burner stabilized and freely propagating flames. But now I'm trying to set up a case where I have a solid phase, which melts to create a liquid layer, which in turn generates a gas phase. This gas phase then burns. I've got my CTI file down and I am trying to set up a Sim1D problem (using python) but I'm pretty much totally stuck. The way I envisioned this working is:
solid phase -> ideal_interface (solid -> liquid) -> liquid phase -> ideal_interface (liquid -> gas) -> gas phase
The solid and liquid phases don't react with in them, but the heat transfer through them is important and the liquid layer will change in size with pressure (and the thickness is something I would like to have as a result, not as an input). After trying for a few days to figure out how to tackle this, I tried to set up a simpler problem and can't even get that to work. What I am trying now is:
# Build the domain. We will have a solid, the solid->liquid interface, the liquid, the liquid->gas
# interface, then a freeflow gas flow
liquid_surface = ct.ReactingSurface1D(phase=gas)
liquid_surface.set_kinetics(liquid_gas)
liquid_surface.T = surf_temp
gas_domain = ct.FreeFlow(gas, grid=initial_grid)
gas_domain.set_steady_tolerances(default=tol_ss)
gas_domain.set_transient_tolerances(default=tol_ts)
sim = ct.Sim1D((liquid_surface, gas_domain))
# See what happens now?
sim.set_initial_guess()
sim.show_solution()
gas_domain.energy_enabled = False
sim.solve(loglevel, refine_grid=False)
sim.show_solution()
and then bad things happen. It throws an error about a singular matrix and when I look in the bandmatrix.csv file, almost everything is nan.
I'm pretty much at a loss on how to actually use anything other than the gas phase. So I have a few questions:
1. Is what I am trying to do (with the solid->liquid->gas flame) even possible?
2. Are there any good examples somewhere of using ideal_interfaces or setting up a simulation domain other than the pre-existing ones?
3. Is there anything obviously wrong in the very simple setup I showed here?
Thanks,
Tim