-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01ac2b2
commit 93a5683
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
% ------------------------------------------------------------------------- | ||
% EXAMPLE: HP_NATURAL_GAS | ||
% | ||
% Compute adiabatic temperature and equilibrium composition at constant | ||
% pressure (e.g., 1.01325 bar) for lean to rich natural gas (0.85% CH4, ... | ||
% 0.10% C2H6, 0.0035% CO2)-air mixtures at standard conditions, a set of | ||
% 24 species considered and a set of equivalence ratios phi contained in | ||
% (0.5, 5) [-] | ||
% | ||
% Soot formation == {'CO2','CO','H2O','H2','O2','N2','Ar','Cbgrb',... | ||
% 'C2','C2H4','CH','CH3','CH4','CN','H',... | ||
% 'HCN','HCO','N','NH','NH2','NH3','NO','O','OH'} | ||
% | ||
% See wiki or list_species() for more predefined sets of species | ||
% | ||
% @author: Alberto Cuadra Lara | ||
% PhD Candidate - Group Fluid Mechanics | ||
% Universidad Carlos III de Madrid | ||
% | ||
% Last update July 22 2022 | ||
% ------------------------------------------------------------------------- | ||
|
||
%% INITIALIZE | ||
self = App('Soot formation'); | ||
%% INITIAL CONDITIONS | ||
self = set_prop(self, 'TR', 300, 'pR', 1 * 1.01325, 'phi', 0.5:0.01:5); | ||
self.PD.S_Fuel = {'CH4', 'C2H6', 'CO2'}; | ||
self.PD.N_Fuel = [0.85, 0.1, 0.0035]; | ||
self.PD.S_Oxidizer = {'N2', 'O2', 'Ar', 'CO2'}; | ||
self.PD.ratio_oxidizers_O2 = [78.084, 20.9476, 0.9365, 0.0319] ./ 20.9476; | ||
%% ADDITIONAL INPUTS (DEPENDS OF THE PROBLEM SELECTED) | ||
self = set_prop(self, 'pP', self.PD.pR.value); | ||
%% SOLVE PROBLEM | ||
self = solve_problem(self, 'HP'); | ||
%% DISPLAY RESULTS (PLOTS) | ||
post_results(self); |