I am trying to model Kerosene detonation using SD toolbox on MATLAB.
For this purpose I intend to use n-dodecane as the surrogate. I found from the Explosion Dynamics Website, that JetSurf2.cti would be useful for this. I am new to both Cantera and SD toolbox environment. When I try to run this code -
1. comp = 'C12H26:2 O2:37 N2:137.64 CO2:0.074 Ar:1.665';
2. mech = 'JetSurf2.cti';
3. P1=1.01e5;
4. T1=298.13;
5. gas1=GRI30('Mix');
6. set(gas1,'Temperature',T1,'Pressure',P1,'MoleFractions',comp);
7. Dcj = CJspeed1(P1, T1, comp, mech);
8. gas2= PostShock_eq2(Dcj,P1, T1, comp, mech, 'Mix');
I get the following errors -
***********************************************************************
CanteraError thrown by Phase::setMoleFractionsByName:
Unknown species 'C12H26'
***********************************************************************
Error in phase_set (line 5)
ctmethods(30, n, -job, a);
Error in ThermoPhase/setMoleFractions (line 42)
phase_set(tp.tp_id, 30, x);
Error in ThermoPhase/set (line 96)
setMoleFractions(tp, val);
Error in Untitled (line 6)
set(gas1,'Temperature',T1,'Pressure',P1,'MoleFractions',comp);
Any help with this is appreciated.
After a bit of googling, I suspect I am initializing the wrong gas object.
Any help with this will be appreciated.....