| 1 | model test
|
|---|
| 2 | Modelica.Electrical.Analog.Basic.Resistor resistor(R = 1) annotation(
|
|---|
| 3 | Placement(visible = true, transformation(origin = {0, 20}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|---|
| 4 | protected
|
|---|
| 5 | Real test = 123;
|
|---|
| 6 | Modelica.Electrical.Analog.Basic.Ground ground annotation(
|
|---|
| 7 | Placement(HideResult=true, visible = true, transformation(origin = {0, -10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|---|
| 8 | equation
|
|---|
| 9 | connect(resistor.n, ground.p) annotation(
|
|---|
| 10 | Line(points = {{0, 10}, {0, 10}, {0, 0}, {0, 0}}, color = {0, 0, 255}));
|
|---|
| 11 | annotation(
|
|---|
| 12 | uses(Modelica(version = "3.2.2")));
|
|---|
| 13 | end test;
|
|---|