Added key words for Matlab Examples

This commit is contained in:
ssun30 2022-09-07 20:47:34 -04:00 committed by Ray Speth
parent 4331aec4ad
commit 0a27dcd1f8
21 changed files with 24 additions and 6 deletions

View File

@ -54,10 +54,6 @@ classdef Reactor < handle
r.type = char(typ);
r.id = callct('reactor_new', typ);
if r.id < 0
error(geterr);
end
if isa(content, 'Solution')
r.insert(content);
elseif ~(isa(contents, 'double') && contents == 0)

View File

@ -10,6 +10,7 @@
% The catalytic combustion mechanism is from Deutschman et al., 26th
% Symp. (Intl.) on Combustion,1996 pp. 1747-1754
%
% Keywords: combustion, catalysis, 1D flow, surface chemistry
%% Initialization

View File

@ -11,7 +11,6 @@
%
% Requires: cantera >= 2.6.0, pandas >= 0.25.0, matplotlib >= 2.0
% Keywords: surface chemistry, kinetics
%
%% Initialization

View File

@ -4,6 +4,7 @@
% opposed-flow diffusion flame for Ethane in Air. This example is the same
% as the diffusion_flame.py example without radiation.
%
% Keywords: combustion, 1D flow, diffusion flame, plotting
%% Initialization

View File

@ -4,6 +4,7 @@ function equil(g)
% This example computes the adiabatic flame temperature and equilibrium
% composition for a methane/air mixture as a function of equivalence ratio.
%
% Keywords: combustion, equilibrium, plotting
clear all
close all

View File

@ -3,6 +3,7 @@
% This script simulates a burner-stablized lean hydrogen-oxygen flame
% at low pressure.
%
% Keywords: combustion, 1D flow, burner-stabilized flame, plotting
%% Initialization

View File

@ -2,6 +2,7 @@
%
% This script simulates a stagnation-point ethane-air flame.
%
% Keywords: combustion, 1D flow, strained flame, diffusion flame, plotting
%% Initialization

View File

@ -5,6 +5,7 @@ function plotdata = ignite(g)
% it using one of MATLAB's ODE integrators, rather than using the
% Cantera Reactor class.
%
% Keywords: combustion, reactor network, ignition delay, plotting
clear all
close all

View File

@ -1,6 +1,8 @@
function ignite_hp(gas)
% IGNITE_HP Solves the same ignition problem as 'ignite', but uses
% function conhp instead of reactor.
%
% Keywords: combustion, user-defined model, ignition delay, plotting
clear all
close all

View File

@ -2,6 +2,8 @@ function ignite_uv(gas)
% IGNITE_UV Solves the same ignition problem as 'ignite2', except
% function conuv is used instead of reactor.
%
% Keywords: combustion, user-defined model, ignition delay, plotting
clear all
close all
cleanup

View File

@ -4,6 +4,8 @@ function isentropic(g)
% In this example, the area ratio vs. Mach number curve is computed for a
% hydrogen/nitrogen gas mixture.
%
% Keywords: thermodynamics, compressible flow, plotting
clear all
close all
cleanup

View File

@ -19,6 +19,7 @@
% open-source software Cantera, Electrochim. Acta 323, 134797 (2019),
% https://doi.org/10.1016/j.electacta.2019.134797
%
% Keywords: surface chemistry, kinetics, electrochemistry, battery, plotting
%% Initialization

View File

@ -17,6 +17,7 @@ function periodic_cstr
% conditions needed to see the oscillations came from Bob Kee,
% Colorado School of Mines
%
% Keywords: combustion, reactor network, well-stirred reactor, plotting
clear all
close all

View File

@ -20,8 +20,9 @@
% Advanced Propulsion and Power Laboratory
% Virginia Tech
%
% Keywords: combustion, user-defined model, compressible flow, plotting
%% Clear all variables, close all figures, clear the command line:
%% Initialization
clear all
close all

View File

@ -5,6 +5,7 @@ function prandtl1(g)
% mixture in chemical equilibrium for P = 1 atm and a range of temperatures
% and elemental O/(O+H) ratios.
%
% Keywords: equilibrium, transport, plotting
clear all
close all

View File

@ -4,6 +4,7 @@ function prandtl2(g)
% This example does the same thing as prandtl1, but using the
% multicomponent expression for the thermal conductivity.
%
% Keywords: transport, equilibrium, multicomponent transport, plotting
clear all
close all

View File

@ -1,5 +1,8 @@
function [work, efficiency] = rankine(t1, p2, eta_pump, eta_turbine)
% This example computes the efficiency of a simple vapor power cycle.
%
% Keywords: thermodynamics, thermodynamic cycle, non-ideal fluid
help rankine
% create an object representing water

View File

@ -5,6 +5,7 @@ function reactor1(g)
% kinetics simulations. Here the parameters are set so that the reactor is
% adiabatic and very close to constant pressure.
%
% Keywords: combustion, reactor network, ignition delay, plotting
clear all
close all

View File

@ -5,6 +5,7 @@ function reactor2(g)
% kinetics simulations. Here the parameters are set so that the reactor is
% adiabatic and constant volume.
%
% Keywords: combustion, reactor network, ignition delay, plotting
clear all
close all

View File

@ -3,6 +3,7 @@
% This example illustrates how to use class 'Reactor' for zero-dimensional
% simulations including both homogeneous and heterogeneous chemistry.
%
% Keywords: catalysis, combustion, reactor network, plotting
%% Initialization