-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathP.mo
More file actions
40 lines (38 loc) · 645 Bytes
/
Copy pathP.mo
File metadata and controls
40 lines (38 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package P
model M01
parameter Real p = 3;
parameter Real q = 10;
final parameter Real r = 2;
Real x, y, z;
Real a, b, c;
Real d, e, f, g;
equation
x = b;
y = p*x + a;
z - x = q;
a = 10;
b - a = r;
c + a - 2 = 14;
d = 40;
e = 0;
f = 50;
c+ d+ e +x +a = 0;
end M01;
model M1
parameter Real p = 3;
M01 m01(p = p);
M01 m02(p = p);
M01 m03(p = p);
M01 m04(p = p);
M01 m05(p = p);
M01 m06(p = p);
M01 m07(p = p);
M01 m08(p = p);
M01 m09(p = p);
M01 m10(p = p);
end M1;
model S1
M1 m1(p = 1);
M1 m2(p = 2);
end S1;
end P;