1 | package TestDynamicSelection
|
---|
2 | model Circular
|
---|
3 | Real x;
|
---|
4 | Real y;
|
---|
5 | Real vx;
|
---|
6 | Real vy;
|
---|
7 | Real Fx;
|
---|
8 | Real Fy;
|
---|
9 | parameter Real m = 1;
|
---|
10 | parameter Real L = 1;
|
---|
11 | equation
|
---|
12 | der(x) = vx;
|
---|
13 | der(y) = vy;
|
---|
14 | m*der(vx) = Fx;
|
---|
15 | m*der(vy) = Fy;
|
---|
16 | x^2 + y^2 = 1;
|
---|
17 | Fx*y-Fy*x = 0;
|
---|
18 | end Circular;
|
---|
19 |
|
---|
20 | model Test1
|
---|
21 | extends Circular(
|
---|
22 | x(start = 1-1e-10 ,fixed = true),
|
---|
23 | y(start = -1e-5),
|
---|
24 | vx(start = 0),
|
---|
25 | vy(start = 10, fixed = true));
|
---|
26 | end Test1;
|
---|
27 |
|
---|
28 | model Test2
|
---|
29 | extends Circular(
|
---|
30 | x(start = 0, fixed = true),
|
---|
31 | y(start = 1),
|
---|
32 | vx(start = -10, fixed = true),
|
---|
33 | vy(start = 0));
|
---|
34 | end Test2;
|
---|
35 |
|
---|
36 |
|
---|
37 | end TestDynamicSelection;
|
---|