1% -------------------------------------------------------------------------
2% EXAMPLE: HP MIXTEMP
3%
4% Compute adiabatic temperature and equilibrium composition at constant
5% pressure (e.g., 1.01325 bar) for lean to rich CH4-air mixtures at
6% standard conditions except for the air which is at 380 K. Also, a set
7% of 26 species considered and a set of equivalence ratios phi contained
8% in (0.5, 5) [-]
9%
10% Soot formation == {'CO2','CO','H2O','H2','O2','N2','He','Ar','Cbgrb',...
11% 'C2','C2H4','CH','CH','CH3','CH4','CN','H',...
12% 'HCN','HCO','N','NH','NH2','NH3','NO','O','OH'}
13%
14% See wiki or list_species() for more predefined sets of species
15%
16% @author: Alberto Cuadra Lara
17% PhD Candidate - Group Fluid Mechanics
18% Universidad Carlos III de Madrid
19%
20% Last update July 22 2022
21% -------------------------------------------------------------------------
22
23%% INITIALIZE
24self = App('Soot formation');
25%% INITIAL CONDITIONS
26self = set_prop(self, 'pR', 1 * 1.01325, 'phi', 0.5:0.01:5);
27self.PD.S_Fuel = {'CH4'};
28self.PD.S_Oxidizer = {'N2', 'O2', 'Ar', 'CO2'};
29self.PD.ratio_oxidizers_O2 = [78.084, 20.9476, 0.9365, 0.0319] ./ 20.9476;
30
31self.PD.T_Fuel = 300;
32self.PD.T_Oxidizer = [380, 380, 380, 380];
33%% ADDITIONAL INPUTS (DEPENDS OF THE PROBLEM SELECTED)
34self = set_prop(self, 'pP', self.PD.pR.value);
35%% SOLVE PROBLEM
36self = solve_problem(self, 'HP');
37%% DISPLAY RESULTS (PLOTS)
38post_results(self);