Ticket #4871: Test.mo

File Test.mo, 1.3 KB (added by Francesco Casella, 7 years ago)
Line 
1model Test
2 Modelica.Electrical.Analog.Basic.Ground ground annotation(
3 Placement(visible = true, transformation(origin = {-38, -36}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
4 Modelica.Electrical.Analog.Basic.Resistor R(R = 1000) annotation(
5 Placement(visible = true, transformation(origin = {-10, 22}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
6 Modelica.Electrical.Analog.Basic.Capacitor C(C = 1e-6) annotation(
7 Placement(visible = true, transformation(origin = {14, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
8 Modelica.Electrical.Analog.Sources.SineVoltage source(V = 1, freqHz = 1000) annotation(
9 Placement(visible = true, transformation(origin = {-38, -6}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
10equation
11 connect(C.n, ground.p) annotation(
12 Line(points = {{14, -10}, {14, -10}, {14, -26}, {-38, -26}, {-38, -26}}, color = {0, 0, 255}));
13 connect(R.n, C.p) annotation(
14 Line(points = {{0, 22}, {14, 22}, {14, 10}, {14, 10}}, color = {0, 0, 255}));
15 connect(source.p, R.p) annotation(
16 Line(points = {{-38, 4}, {-38, 4}, {-38, 22}, {-20, 22}, {-20, 22}}, color = {0, 0, 255}));
17 connect(ground.p, source.n) annotation(
18 Line(points = {{-38, -26}, {-38, -26}, {-38, -16}, {-38, -16}}, color = {0, 0, 255}));
19 annotation(
20 uses(Modelica(version = "3.2.2")));
21end Test;