[Matlab/Samples] Update to use IdealGasReactor
This commit is contained in:
parent
049c9a1960
commit
dd297256ff
4 changed files with 4 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ upstream = Reservoir(gas);
|
|||
% Now set the gas to the initial temperature of the reactor, and create
|
||||
% the reactor object.
|
||||
set(gas, 'T', t, 'P', p);
|
||||
cstr = Reactor(gas);
|
||||
cstr = IdealGasReactor(gas);
|
||||
|
||||
% Set its volume to 10 cm^3. In this problem, the reactor volume is
|
||||
% fixed, so the initial volume is the volume at all later times.
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ P = oneatm
|
|||
set(gas,'T',1001.0,'P',P,'X','H2:2,O2:1,N2:4');
|
||||
|
||||
% create a reactor, and insert the gas
|
||||
r = Reactor(gas);
|
||||
r = IdealGasReactor(gas);
|
||||
|
||||
% create a reservoir to represent the environment
|
||||
a = IdealGasMix('air.cti');
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ nsp = nSpecies(gas);
|
|||
set(gas,'T',1001.0,'P',oneatm,'X','H2:2,O2:1,N2:4');
|
||||
|
||||
% create a reactor, and insert the gas
|
||||
r = Reactor(gas);
|
||||
r = IdealGasReactor(gas);
|
||||
|
||||
% create a reactor network and insert the reactor
|
||||
network = ReactorNet({r});
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ setTemperature(surf, t);
|
|||
nsp = nSpecies(gas);
|
||||
|
||||
% create a reactor, and insert the gas
|
||||
r = Reactor(gas);
|
||||
r = IdealGasReactor(gas);
|
||||
setInitialVolume(r, 1.0e-6)
|
||||
|
||||
% create a reservoir to represent the environment
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue