source: branches/rate/sample/auto/ab_dae.mso @ 904

Last change on this file since 904 was 388, checked in by Argimiro Resende Secchi, 15 years ago

Adding AUTO DAE examples.

File size: 436 bytes
Line 
1
2using "types";
3
4FlowSheet ab_dae
5
6        PARAMETERS
7        p1 as Real;
8        p2 as Real;
9        p3 as Real;
10
11        VARIABLES
12        u1 as Real;
13        u2 as Real;
14        u3 as Real;
15
16        SET
17
18        p1 = 0;
19        p2 = 14;
20        p3 = 2;
21
22        EQUATIONS
23
24    diff(u1)*'s' = -u1 + p1 * (1 - u1) * u3;
25    diff(u2)*'s' = -u2 + p1 * p2 * (1 - u1) * u3 - p3 * u2;
26    u3 = exp(u2);
27
28        INITIAL
29        u1 = 1;
30        u2 = 1;
31
32        OPTIONS
33        TimeEnd = 5;
34        TimeStep = 0.2;
35#       Dynamic = false;
36end
Note: See TracBrowser for help on using the repository browser.