Ticket #5447: TestUnitMultiples3.mo

File TestUnitMultiples3.mo, 3.1 KB (added by massimo ceraolo, 4 years ago)
Line 
1model TestUnitMultiples
2 Modelica.SIunits.PerUnit f = sin(time*10);
3 Modelica.SIunits.Voltage v_small= 1e-20*f;
4 Modelica.SIunits.Voltage v_16= 1e-16*f;
5 Modelica.SIunits.Voltage v_15 = 1e-15*f;
6 Modelica.SIunits.Voltage v_14 = 1e-14*f;
7 Modelica.SIunits.Voltage v_13 = 1e-13*f;
8 Modelica.SIunits.Voltage v_12= 1e-12*f;
9 Modelica.SIunits.Voltage v_11 = 1e-11*f;
10 Modelica.SIunits.Voltage v_10 = 1e-10*f;
11 Modelica.SIunits.Voltage v_9 = 1e-9*f;
12 Modelica.SIunits.Voltage v_8 = 1e-8*f;
13 Modelica.SIunits.Voltage v_7 = 1e-7*f;
14 Modelica.SIunits.Voltage v_6 = 1e-6*f;
15 Modelica.SIunits.Voltage v_5 = 1e-5*f;
16 Modelica.SIunits.Voltage v_4 = 1e-4*f;
17 Modelica.SIunits.Voltage v_3 = 1e-3*f;
18 Modelica.SIunits.Voltage v_2 = 1e-2*f;
19 Modelica.SIunits.Voltage v_1 = 1e-1*f;
20 Modelica.SIunits.Voltage v0= 1*f;
21 Modelica.SIunits.Voltage v1 = 1e1*f;
22 Modelica.SIunits.Voltage v2 = 1e2*f;
23 Modelica.SIunits.Voltage v3 = 1e3*f;
24 Modelica.SIunits.Voltage v4 = 1e4*f;
25 Modelica.SIunits.Voltage v5 = 1e5*f;
26 Modelica.SIunits.Voltage v6 = 1e6*f;
27 Modelica.SIunits.Voltage v7 = 1e7*f;
28 Modelica.SIunits.Voltage v8 = 1e8*f;
29 Modelica.SIunits.Voltage v9 = 1e9*f;
30 Modelica.SIunits.Voltage v10 = 1e10*f;
31 Modelica.SIunits.Voltage v11 = 1e11*f;
32 Modelica.SIunits.Voltage v12 = 1e12*f;
33 Modelica.SIunits.Voltage v13 = 1e13*f;
34 Modelica.SIunits.Voltage v14 = 1e14*f;
35 Modelica.SIunits.Voltage v15 = 1e15*f;
36 Modelica.SIunits.Voltage v16 = 1e16*f;
37 Modelica.SIunits.Voltage v_large= 1e20*f;
38
39 Modelica.SIunits.PerUnit g = cos(time*10);
40 Modelica.SIunits.Current i_small= 1e-20*g;
41 Modelica.SIunits.Current i_16= 1e-16*g;
42 Modelica.SIunits.Current i_15 = 1e-15*g;
43 Modelica.SIunits.Current i_14 = 1e-14*g;
44 Modelica.SIunits.Current i_13 = 1e-13*g;
45 Modelica.SIunits.Current i_12= 1e-12*g;
46 Modelica.SIunits.Current i_11 = 1e-11*g;
47 Modelica.SIunits.Current i_10 = 1e-10*g;
48 Modelica.SIunits.Current i_9 = 1e-9*g;
49 Modelica.SIunits.Current i_8 = 1e-8*g;
50 Modelica.SIunits.Current i_7 = 1e-7*g;
51 Modelica.SIunits.Current i_6 = 1e-6*g;
52 Modelica.SIunits.Current i_5 = 1e-5*g;
53 Modelica.SIunits.Current i_4 = 1e-4*g;
54 Modelica.SIunits.Current i_3 = 1e-3*g;
55 Modelica.SIunits.Current i_2 = 1e-2*g;
56 Modelica.SIunits.Current i_1 = 1e-1*g;
57 Modelica.SIunits.Current i0= 1*g;
58 Modelica.SIunits.Current i1 = 1e1*g;
59 Modelica.SIunits.Current i2 = 1e2*g;
60 Modelica.SIunits.Current i3 = 1e3*g;
61 Modelica.SIunits.Current i4 = 1e4*g;
62 Modelica.SIunits.Current i5 = 1e5*g;
63 Modelica.SIunits.Current i6 = 1e6*g;
64 Modelica.SIunits.Current i7 = 1e7*g;
65 Modelica.SIunits.Current i8 = 1e8*g;
66 Modelica.SIunits.Current i9 = 1e9*g;
67 Modelica.SIunits.Current i10 = 1e10*g;
68 Modelica.SIunits.Current i11 = 1e11*g;
69 Modelica.SIunits.Current i12 = 1e12*g;
70 Modelica.SIunits.Current i13 = 1e13*g;
71 Modelica.SIunits.Current i14 = 1e14*g;
72 Modelica.SIunits.Current i15 = 1e15*g;
73 Modelica.SIunits.Current i16 = 1e16*g;
74 Modelica.SIunits.Current i_large= 1e20*g;
75
76
77
78annotation(
79 uses(Modelica(version = "3.2.3")));
80end TestUnitMultiples;