-
Notifications
You must be signed in to change notification settings - Fork 0
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
1146e50
commit 4c95542
Showing
29 changed files
with
147,049 additions
and
128,054 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,2 @@ | ||
# macOS | ||
*.DS_Store |
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 |
---|---|---|
@@ -1,22 +1,35 @@ | ||
% Initialize | ||
self = App('Soot formation extended'); | ||
|
||
% Initial conditions | ||
self = set_prop(self, 'TR', 300, 'pR', 1, 'phi', 0.5:0.01:4); | ||
self.PD.S_Fuel = {'C2H2_acetylene'}; | ||
self.PD.S_Oxidizer = {'N2', 'O2'}; | ||
self.PD.ratio_oxidizers_O2 = [79, 21] ./ 21; | ||
|
||
% Additional inputs (depends of the problem selected) | ||
self = set_prop(self, 'pP', self.PD.pR.value); | ||
|
||
% Solve problem | ||
self = solve_problem(self, 'HP'); | ||
|
||
% Miscellaneous | ||
self.Misc.display_species = {'CO2', 'CO', 'H2O', 'H2', 'O2', 'N2',... | ||
'HCN', 'H', 'OH', 'O', 'CN', 'NH3', 'CH4', 'C2H4',... | ||
'CH3', 'NO', 'HCO', 'NH2', 'NH', 'N', 'CH', 'Cbgrb'}; | ||
|
||
% Display output (plots) | ||
post_results(self); | ||
% Import packages | ||
import combustiontoolbox.databases.NasaDatabase | ||
import combustiontoolbox.core.* | ||
import combustiontoolbox.equilibrium.* | ||
|
||
% Get Nasa database | ||
DB = NasaDatabase(); | ||
|
||
% Define chemical system | ||
system = ChemicalSystem(DB, 'soot formation extended'); | ||
|
||
% Initialize mixture | ||
mix = Mixture(system); | ||
|
||
% Define chemical state | ||
set(mix, {'C2H2_acetylene'}, 'fuel', 1); | ||
set(mix, {'N2', 'O2'}, 'oxidizer', [79, 21] / 21); | ||
|
||
% Define properties | ||
mixArray = setProperties(mix, 'T', 300, 'p', 1, 'equivalenceRatio', 0.5:0.01:4); | ||
|
||
% Initialize solver | ||
solver = EquilibriumSolver('problemType', 'HP'); | ||
|
||
% Solve problem | ||
solver.solveArray(mixArray); | ||
|
||
% Set displaySpecies | ||
displaySpecies = {'CO2', 'CO', 'H2O', 'H2', 'O2', 'N2',... | ||
'HCN','H','OH','O','CN','NH3','CH4','C2H4','CH3',... | ||
'NO','HCO','NH2','NH','N','CH','Cbgrb'}; | ||
solver.plotConfig.displaySpecies = displaySpecies; | ||
|
||
% Generate report | ||
report(solver, mixArray); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
28,435 changes: 0 additions & 28,435 deletions
28,435
sample/input/example_1_gui/gui_34_vertical_labels.svg
This file was deleted.
Oops, something went wrong.
55,182 changes: 55,182 additions & 0 deletions
55,182
sample/input/example_1_gui/gui_cuadra2024_labels_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
% Example 2 | ||
% Example 2 | ||
run_validation_TP_CEA_6() |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
% Example 3 | ||
% Example 3 | ||
run_validation_SHOCK_POLAR_SDToolbox_2() |
Binary file not shown.
2,878 changes: 2,317 additions & 561 deletions
2,878
sample/output/example_1/example_1_molar_composition.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
4,273 changes: 3,453 additions & 820 deletions
4,273
sample/output/example_1/example_1_properties.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.