7019
|
1 ## Copyright (C) 1997, 1998, 2007 John W. Eaton |
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
|
18 |
2689
|
19 ## The `oregonator'. |
3162
|
20 ## |
|
21 ## Reference: |
|
22 ## |
|
23 ## Oscillations in chemical systems. IV. Limit cycle behavior in a |
|
24 ## model of a real chemical reaction. Richard J. Field and Richard |
|
25 ## M. Noyes, The Journal of Chemical Physics, Volume 60 Number 5, |
|
26 ## March 1974. |
2689
|
27 |
|
28 function dx = oregonator (x, t) |
|
29 |
|
30 dx = zeros (3, 1); |
|
31 |
|
32 dx(1) = 77.27*(x(2) - x(1)*x(2) + x(1) - 8.375e-06*x(1)^2); |
|
33 dx(2) = (x(3) - x(1)*x(2) - x(2)) / 77.27; |
|
34 dx(3) = 0.161*(x(1) - x(3)); |
|
35 |
|
36 end |