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

Adding AUTO DAE examples.

File size:
409 bytes

Line  

1  

2  using "types"; 

3  

4  FlowSheet ab 

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  

15  SET 

16  

17  p1 = 0; 

18  p2 = 14; 

19  p3 = 2; 

20  

21  EQUATIONS 

22  

23  diff(u1)*'s' = u1 + p1 * (1  u1) * exp(u2); 

24  diff(u2)*'s' = u2 + p1 * p2 * (1  u1) * exp(u2)  p3 * u2; 

25  

26  INITIAL 

27  u1 = 1; 

28  u2 = 1; 

29  

30  OPTIONS 

31  TimeEnd = 5; 

32  TimeStep = 0.2; 

33  # Dynamic = false; 

34  end 

Note: See
TracBrowser
for help on using the repository browser.