-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from AlbertoCuadra/develop
Validations
- Loading branch information
Showing
16 changed files
with
204 additions
and
99 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
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
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
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
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
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
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
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
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,27 @@ | ||
function run_validation_TP_1 | ||
% Run test validation_TP_1: | ||
% Contrasted with: NASA's Chemical Equilibrium with Applications software | ||
% Problem type: Equilibrium composition at defined T and p | ||
% Temperature [K] = 2500; | ||
% Pressure [bar] = 1; | ||
% Equivalence ratio [-] = 0.5:0.01:4 | ||
% Initial mixture: C6H6 + AIR_IDEAL (79% N2 + 21% O2) | ||
% List of species considered: ListSpecies('Soot Formation Extended') | ||
|
||
% Inputs | ||
Fuel = 'C6H6'; | ||
prefixDataName = Fuel; | ||
filename = {strcat(prefixDataName, '_air1_TP.out'), strcat(prefixDataName, '_air1_TP2.out'), strcat(prefixDataName, '_air1_TP3.out')}; | ||
LS = 'Soot Formation Extended'; | ||
DisplaySpecies = {'CO2', 'CO', 'H2O', 'H2', 'O2', 'N2', 'He', 'Ar',... | ||
'HCN','H','OH','O','CN','NH3','CH4','C2H4','CH3',... | ||
'NO','HCO','NH2','NH','N','CH','Cbgrb'}; | ||
% Combustion Toolbox | ||
results_CT = run_CT('ProblemType', 'TP', 'Temp', 2500, 'Species', LS,... | ||
'S_Fuel', Fuel,'S_Oxidizer', 'O2',... | ||
'S_Inert', 'N2', 'EquivalenceRatio', 0.5:0.01:4); | ||
% Load results CEA | ||
results_CEA = data_CEA(filename, DisplaySpecies); | ||
% Display validation (plot) | ||
plot_molar_fractions_validation(results_CT, results_CEA, 'phi', 'Xi', DisplaySpecies); | ||
end |
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,27 @@ | ||
function run_validation_TP_2 | ||
% Run test validation_TP_2: | ||
% Contrasted with: NASA's Chemical Equilibrium with Applications software | ||
% Problem type: Equilibrium composition at defined T and p | ||
% Temperature [K] = 2500; | ||
% Pressure [bar] = 1; | ||
% Equivalence ratio [-] = 0.5:0.01:4 | ||
% Initial mixture: C6H6 + O2 | ||
% List of species considered: ListSpecies('Soot Formation Extended') | ||
|
||
% Inputs | ||
Fuel = 'C6H6'; | ||
prefixDataName = Fuel; | ||
filename = {strcat(prefixDataName, '_O2_TP.out'), strcat(prefixDataName, '_O2_TP2.out'), strcat(prefixDataName, '_O2_TP3.out')}; | ||
LS = 'Soot Formation Extended'; | ||
DisplaySpecies = {'CO2', 'CO', 'H2O', 'H2', 'O2', 'N2', 'He', 'Ar',... | ||
'HCN','H','OH','O','CN','NH3','CH4','C2H4','CH3',... | ||
'NO','HCO','NH2','NH','N','CH','Cbgrb'}; | ||
% Combustion Toolbox | ||
results_CT = run_CT('ProblemType', 'TP', 'Temp', 2500, 'Species', LS,... | ||
'S_Fuel', Fuel,'S_Oxidizer', 'O2',... | ||
'S_Inert', [], 'EquivalenceRatio', 0.5:0.01:4); | ||
% Load results CEA | ||
results_CEA = data_CEA(filename, DisplaySpecies); | ||
% Display validation (plot) | ||
plot_molar_fractions_validation(results_CT, results_CEA, 'phi', 'Xi', DisplaySpecies); | ||
end |
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,27 @@ | ||
function run_validation_TP_3 | ||
% Run test validation_TP_3: | ||
% Contrasted with: NASA's Chemical Equilibrium with Applications software | ||
% Problem type: Equilibrium composition at defined T and p | ||
% Temperature [K] = 2500; | ||
% Pressure [bar] = 1; | ||
% Equivalence ratio [-] = 0.5:0.01:4 | ||
% Initial mixture: CH3OH + O2 | ||
% List of species considered: ListSpecies('Soot Formation Extended') | ||
|
||
% Inputs | ||
Fuel = 'CH3OH'; | ||
prefixDataName = Fuel; | ||
filename = {strcat(prefixDataName, '_O2_TP.out'), strcat(prefixDataName, '_O2_TP2.out'), strcat(prefixDataName, '_O2_TP3.out')}; | ||
LS = 'Soot Formation Extended'; | ||
DisplaySpecies = {'CO2', 'CO', 'H2O', 'H2', 'O2', 'N2', 'He', 'Ar',... | ||
'HCN','H','OH','O','CN','NH3','CH4','C2H4','CH3',... | ||
'NO','HCO','NH2','NH','N','CH','Cbgrb'}; | ||
% Combustion Toolbox | ||
results_CT = run_CT('ProblemType', 'TP', 'Temp', 2500, 'Species', LS,... | ||
'S_Fuel', Fuel,'S_Oxidizer', 'O2',... | ||
'S_Inert', [], 'EquivalenceRatio', 0.5:0.01:4); | ||
% Load results CEA | ||
results_CEA = data_CEA(filename, DisplaySpecies); | ||
% Display validation (plot) | ||
plot_molar_fractions_validation(results_CT, results_CEA, 'phi', 'Xi', DisplaySpecies); | ||
end |
Oops, something went wrong.