From dd297256fffb6f339e5efac7ac42e33a2c324a15 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 16 Jun 2014 22:01:31 +0000 Subject: [PATCH] [Matlab/Samples] Update to use IdealGasReactor --- samples/matlab/periodic_cstr.m | 2 +- samples/matlab/reactor1.m | 2 +- samples/matlab/reactor2.m | 2 +- samples/matlab/surfreactor.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/matlab/periodic_cstr.m b/samples/matlab/periodic_cstr.m index 0aa766ab7..bffbf45c0 100644 --- a/samples/matlab/periodic_cstr.m +++ b/samples/matlab/periodic_cstr.m @@ -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. diff --git a/samples/matlab/reactor1.m b/samples/matlab/reactor1.m index 26a2a958c..90b61994e 100644 --- a/samples/matlab/reactor1.m +++ b/samples/matlab/reactor1.m @@ -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'); diff --git a/samples/matlab/reactor2.m b/samples/matlab/reactor2.m index 52c21ff14..a0627e9b5 100644 --- a/samples/matlab/reactor2.m +++ b/samples/matlab/reactor2.m @@ -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}); diff --git a/samples/matlab/surfreactor.m b/samples/matlab/surfreactor.m index 160019504..33018eeac 100644 --- a/samples/matlab/surfreactor.m +++ b/samples/matlab/surfreactor.m @@ -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