mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Fixed typos in several classes and samples
This commit is contained in:
parent
b1add10557
commit
810ed62758
@ -63,7 +63,7 @@ classdef Interface < handle & ThermoPhase & Kinetics
|
||||
nsp = s.nSpecies;
|
||||
xx = zeros(1, nsp);
|
||||
pt = libpointer('doublePtr', xx);
|
||||
callct('surf_getCoverages', surfID, xx);
|
||||
callct('surf_getCoverages', surfID, pt);
|
||||
c = pt.Value;
|
||||
end
|
||||
|
||||
|
@ -57,6 +57,22 @@ classdef Kinetics < handle
|
||||
|
||||
%% Get scalar attributes
|
||||
|
||||
function n = kineticsSpeciesIndex(kin, name, phase)
|
||||
% KINETICSSPECIESINDEX
|
||||
%
|
||||
% Get the species index in the Kinetics class.
|
||||
%
|
||||
% :param name:
|
||||
% String name of the species.
|
||||
% :param phase:
|
||||
% String name of the phase.
|
||||
% :return:
|
||||
% Index of the species.
|
||||
%
|
||||
|
||||
n = callct('kin_speciesIndex', kin.kinID, name, phase);
|
||||
end
|
||||
|
||||
function n = multiplier(kin, irxn)
|
||||
% Get the multiplier for reaction rate of progress.
|
||||
%
|
||||
@ -69,11 +85,20 @@ classdef Kinetics < handle
|
||||
n = callct('kin_multiplier', kin.kinID, irxn-1);
|
||||
end
|
||||
|
||||
function n = nPhases(kin)
|
||||
% Get the number of phases.
|
||||
%
|
||||
% :return:
|
||||
% Integer number of phases.
|
||||
|
||||
n = callct('kin_nPhases', kin.kinID);
|
||||
end
|
||||
|
||||
function n = nReactions(kin)
|
||||
% Get the number of reactions.
|
||||
%
|
||||
% :return:
|
||||
% Integer number of reactions
|
||||
% Integer number of reactions.
|
||||
|
||||
n = callct('kin_nReactions', kin.kinID);
|
||||
end
|
||||
@ -87,6 +112,19 @@ classdef Kinetics < handle
|
||||
n = callct('kin_nSpecies', kin.kinID);
|
||||
end
|
||||
|
||||
function n = phaseIndex(kin, phase)
|
||||
% PHASEINDEX
|
||||
%
|
||||
% Get the index of a phase.
|
||||
%
|
||||
% :param phase:
|
||||
% String name of the phase.
|
||||
% :return:
|
||||
% Index of the phase.
|
||||
|
||||
n = callct('kin_phaseIndex', kin.kinID, phase);
|
||||
end
|
||||
|
||||
function n = stoichReactant(kin, species, rxns)
|
||||
% Get the reactant stoichiometric coefficients.
|
||||
%
|
||||
|
@ -38,7 +38,7 @@ classdef ReactorSurface < handle
|
||||
|
||||
s.surfID = callct('reactorsurface_new', 0);
|
||||
s.reactor = -1;
|
||||
if r.id < 0
|
||||
if s.surfID < 0
|
||||
error(geterr);
|
||||
end
|
||||
|
||||
|
@ -75,7 +75,7 @@ classdef Wall < handle
|
||||
|
||||
x.type = char(typ);
|
||||
x.id = callct('wall_new', x.type);
|
||||
if x.index < 0
|
||||
if x.id < 0
|
||||
error(geterr);
|
||||
end
|
||||
x.left = -1;
|
||||
|
@ -21,3 +21,4 @@ if ~libisloaded(ct)
|
||||
'addheader','ctrpath','addheader','ctsurf');
|
||||
end
|
||||
disp('Cantera is ready for use');
|
||||
clear all
|
||||
|
@ -6,6 +6,12 @@ function plotdata = ignite(g)
|
||||
% Cantera Reactor class.
|
||||
%
|
||||
|
||||
clear all
|
||||
close all
|
||||
cleanup
|
||||
clc
|
||||
|
||||
tic
|
||||
help ignite
|
||||
|
||||
if nargin == 1
|
||||
@ -101,4 +107,6 @@ function plotdata = ignite(g)
|
||||
ylabel('Mass Fraction');
|
||||
title('OH Mass Fraction');
|
||||
end
|
||||
|
||||
toc
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user