File sample.mso, 480 bytes (added by Rodolfo Rodrigues, 14 years ago) 
sample

Line  

1  

2  Model device 

3  PARAMETERS 

4  outer N as Integer; 

5  outer A(N) as Real; 

6  outer B(N) as Real; 

7  

8  M as Integer; 

9  C(M) as Real; 

10  D(M) as Real; 

11  

12  SET 

13  M = 2; 

14  C = [1,2]; 

15  D = [2,4]; 

16  

17  VARIABLES 

18  X as Real; 

19  Y as Real; 

20  

21  EQUATIONS 

22  X = sum(A*B); 

23  

24  Y = sum(C*D); 

25  end 

26  

27  

28  FlowSheet sample 

29  PARAMETERS 

30  N as Integer; 

31  A(N) as Real; 

32  B(N) as Real; 

33  

34  DEVICES 

35  D as device; 

36  

37  SET 

38  N = 2; 

39  A = [1,2]; 

40  B = [2,4]; 

41  

42  OPTIONS 

43  Dynamic = false; 

44  end 

Download in other formats: