model PUMP Modelica.Fluid.Vessels.OpenTank LOWERLAKE(height = 102, level(start = 1886.7), crossArea = 93.8, level_start = 1886.7, use_T_start = false, use_portsData = false, use_HeatTransfer = false, s(each start = 1905.2)) annotation( Placement(transformation(origin = {-78, -24}, extent = {{-20, -20}, {20, 20}}))); Modelica.Fluid.Vessels.OpenTank UPPERLAKE(nPorts = 1, height = 86.5, crossArea = 19.3, level(start = 2376), s(each start = 2407.6), level_start = 2376, use_T_start = false, use_portsData = false) annotation( Placement(transformation(origin = {70, 66}, extent = {{-20, -20}, {20, 20}}))); Modelica.Fluid.Pipes.StaticPipe pipe(length = 250, isCircular = false) annotation( Placement(visible = true, transformation(origin = {-30, -26}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Fluid.Pipes.StaticPipe pipe1(nParallel = 1, length = 260, isCircular = false) annotation( Placement(visible = true, transformation(origin = {44, -26}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Fluid.Machines.Pump pump annotation( Placement(visible = true, transformation(origin = {12, -26}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Mechanics.Rotational.Sources.Speed speed(exact = false) annotation( Placement(transformation(origin = {-84, 50}, extent = {{-10, -10}, {10, 10}}))); equation connect(UPPERLAKE.ports[1], pipe1.port_b) annotation( Line(points = {{70, 46}, {70, -26}, {54, -26}}, color = {0, 127, 255})); connect(pipe1.port_a, pump.port_b) annotation( Line(points = {{34, -26}, {22, -26}}, color = {0, 127, 255})); connect(pump.port_a, pipe.port_b) annotation( Line(points = {{2, -26}, {-20, -26}}, color = {0, 127, 255})); connect(pipe.port_a, LOWERLAKE.ports[1]) annotation( Line(points = {{-40, -26}, {-57, -26}, {-57, -44}, {-78, -44}}, color = {0, 127, 255})); connect(speed.flange, pump.shaft) annotation( Line(points = {{-74, 50}, {10, 50}, {10, -16}, {12, -16}})); annotation( uses(Modelica(version = "4.0.0"))); end PUMP;