Hi,
I am trying to retrieve the radiative_heat_loss from a counter flow diffusion flame, but it only returns an error saying that IdealGasFlow objects have no attribute called radiative_heat_loss.
Thank you in advance,
Simon
Here is a MWE of the problem I am working on.
import cantera as ct
# ---------- Conditions ---------
T_in = 300 # K
P_in = ct.one_atm
width = 0.0127 # [m] distance between jets
oxidizer = 'O2:0.21 N2:0.79'
fuel = 'CO:0.5 H2:0.5'
T_in_oxidizer = 300 # K
T_in_fuel = 300 # K
V_oxidizer = 0.3175 # m/s
V_fuel = 0.3807 # m/s
# ---------- Initiate gas ----------
gas = ct.Solution('gri30.xml')
gas.X = fuel
gas.TP = T_in, P_in
density_fuel = gas.density_mass
gas.X = oxidizer
gas.TP = T_in, P_in
density_oxidizer = gas.density_mass
gas.set_equivalence_ratio(1, fuel, oxidizer)
mdot_oxidizer = V_oxidizer * density_oxidizer # kg/s/m^2
mdot_fuel = V_fuel * density_fuel # kg/s/m^2
# ---------- Initiate flame ----------
f = ct.CounterflowDiffusionFlame(gas, width=width)
f.P = P_in
f.oxidizer_inlet.X = oxidizer
f.fuel_inlet.X = fuel
f.oxidizer_inlet.mdot = mdot_oxidizer # kg/m^2s
f.fuel_inlet.mdot = mdot_fuel # kg/m^2s
f.oxidizer_inlet.T = T_in
f.fuel_inlet.T = T_in
f.set_boundary_emissivities(0.0, 0.0)
f.set_refine_criteria(ratio=2.0, slope=0.2, curve=0.2, prune=0.0)
# --------- Solve the flame using mixture-averaged transport model ----------
f.radiation_enabled = True
f.solve(loglevel=0, auto=True)
# --------- Solve the flame using multi component transport model ----------
f.radiation_enabled = True
f.transport_model = 'Multi'
f.soret_enabled = True
f.solve(loglevel=0)
qdot = f.flame.radiative_heat_loss
print(qdot)