mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Added key words for Matlab Examples
This commit is contained in:
parent
4331aec4ad
commit
0a27dcd1f8
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
%
|
||||
% Requires: cantera >= 2.6.0, pandas >= 0.25.0, matplotlib >= 2.0
|
||||
% Keywords: surface chemistry, kinetics
|
||||
%
|
||||
|
||||
%% Initialization
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
%
|
||||
% This script simulates a stagnation-point ethane-air flame.
|
||||
%
|
||||
% Keywords: combustion, 1D flow, strained flame, diffusion flame, plotting
|
||||
|
||||
%% Initialization
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user