Ticket #5395: TestEachDisplayUnit.mo

File TestEachDisplayUnit.mo, 524 bytes (added by Francesco Casella, 6 years ago)
Line 
1package TestEachDisplayUnit
2 model M
3 parameter Modelica.SIunits.Density d[3];
4 annotation(
5 Icon(graphics = {Rectangle(origin = {-1, 0}, extent = {{-99, 100}, {101, -100}}), Text(origin = {4, 11}, extent = {{-66, 53}, {66, -53}}, textString = "M")}));
6 end M;
7
8 model S
9 M m(d(displayUnit = "kg/m3") = {1000, 900, 950}) annotation(
10 Placement(visible = true, transformation(origin = {0, -2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
11 equation
12
13 end S;
14end TestEachDisplayUnit;