Ticket #5545: TestConnection.mo

File TestConnection.mo, 614 bytes (added by Francesco Casella, 5 years ago)
Line 
1model TestConnection
2 Modelica.Electrical.Analog.Basic.Resistor resistor annotation(
3 Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
4 Modelica.Thermal.HeatTransfer.Components.HeatCapacitor capacitor annotation(
5 Placement(visible = true, transformation(origin = {30, 22}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
6equation
7 connect(resistor.n, capacitor.port) annotation(
8 Line(points = {{10, 0}, {30, 0}, {30, 12}, {30, 12}}, color = {0, 0, 255}));
9
10annotation(
11 uses(Modelica(version = "3.2.3")));end TestConnection;