| 1 | model test
|
|---|
| 2 | Modelica.Electrical.Analog.Basic.Ground ground1 annotation(
|
|---|
| 3 | Placement(visible = true, transformation(origin = {0, -30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|---|
| 4 | Modelica.Electrical.Analog.Basic.Resistor resistor1 annotation(
|
|---|
| 5 | Placement(visible = true, transformation(origin = {0, 10}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|---|
| 6 | // comment at the very beginning and followed by a new line
|
|---|
| 7 |
|
|---|
| 8 | equation
|
|---|
| 9 | connect(resistor1.n, ground1.p) annotation(
|
|---|
| 10 | Line(points = {{0, 0}, {0, -20}}, color = {0, 0, 255}));
|
|---|
| 11 | annotation(
|
|---|
| 12 | uses(Modelica(version = "3.2.2")));
|
|---|
| 13 | end test;
|
|---|