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
Write_csv does not work for impingJet with radiation_enabled #986
Comments
Hi! Thank you for reporting this. Can you also include any error messages you get as a result of running this code? Thanks! Please also include the other information requested in the template, including the version of Cantera and how you installed it. |
Confirming on 2.5.1 (stock conda) based on the input provided ...
|
I get the following output: Simulation with radiation, multicomponent diffusion and Soret effect : ************ Solving on 6 point grid with energy equation enabled ************ .............................................................................. Problem solved on [6] point grid(s). .............................................................................. ******************** Solving with grid refinement enabled ******************** .............................................................................. Problem solved on [6] point grid(s). .............................................................................. .............................................................................. Problem solved on [11] point grid(s). .............................................................................. .............................................................................. Problem solved on [21] point grid(s). .............................................................................. .............................................................................. Problem solved on [41] point grid(s). .............................................................................. .............................................................................. Problem solved on [76] point grid(s). .............................................................................. .............................................................................. Problem solved on [77] point grid(s). .............................................................................. ******************* Solving with multicomponent transport ******************** ************************ Solving with Soret diffusion ************************ .............................................................................. Problem solved on [77] point grid(s). .............................................................................. |
the same as the contributor. |
When analyzing a stagnation flame including radiation, write_csv fails although the solver completed successfully.
import cantera as ct
gas = ct.Solution('GRI30.yaml')
gas.TPX = 293.150000, 405300.000000, 'O2:0.195618, CH4:0.068466, N2:0.735915'
f = ct.ImpingingJet(gas=gas, width=0.010000)
f.inlet.mdot = 0.600000
f.inlet.X = 'O2:0.195618, CH4:0.068466, N2:0.735915'
f.inlet.T = 293.150000
f.inlet.spread_rate = 14.000000
f.surface.T = 445.000000
f.set_grid_min(1.00e-04)
print ('Simulation with radiation, multicomponent diffusion and Soret effect :')
f.transport_model = 'Multi'
f.energy_enabled = True
f.soret_enabled = True
f.radiation_enabled = True
f.set_refine_criteria(ratio = 3.000000, slope = 0.030000, curve = 0.075000, prune = 0.010000)
f.set_initial_guess(products='equil')
f.solve(loglevel=1, refine_grid=True, auto=True)
f.write_csv('result.csv',quiet=False)
The text was updated successfully, but these errors were encountered: