model pumpstorageddam OpenHPL.Waterway.Reservoir upperlake annotation( Placement(visible = true, transformation(origin = {-88, 62}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.Waterway.Pipe intake annotation( Placement(visible = true, transformation(origin = {-54, 62}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.Waterway.SurgeTank surgeTank annotation( Placement(visible = true, transformation(origin = {-22, 62}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.Waterway.PenstockKP penstockKP annotation( Placement(visible = true, transformation(origin = {8, 62}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.Waterway.Fitting fitting annotation( Placement(visible = true, transformation(origin = {-52, -6}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.Waterway.Pipe discharge annotation( Placement(visible = true, transformation(origin = {44, -6}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.Waterway.Reservoir lowerlake annotation( Placement(visible = true, transformation(origin = {76, -6}, extent = {{-10, -10}, {10, 10}}, rotation = 180))); Modelica.Blocks.Sources.Ramp guidevaneCONTROL(duration = 950, height = 0.8, offset = 0.09, startTime = 10) annotation( Placement(visible = true, transformation(origin = {-26, 28}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.ElectroMech.Generators.SynchGen synchGen annotation( Placement(visible = true, transformation(origin = {-2, -42}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); OpenHPL.ElectroMech.Turbines.Francis francis annotation( Placement(visible = true, transformation(origin = {-2, -6}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); equation connect(discharge.o, lowerlake.o) annotation( Line(points = {{54, -6}, {66, -6}}, color = {0, 128, 255})); connect(upperlake.o, intake.i) annotation( Line(points = {{-78, 62}, {-64, 62}}, color = {0, 128, 255})); connect(intake.o, surgeTank.i) annotation( Line(points = {{-44, 62}, {-32, 62}}, color = {0, 128, 255})); connect(surgeTank.o, penstockKP.i) annotation( Line(points = {{-12, 62}, {-2, 62}}, color = {0, 128, 255})); connect(penstockKP.o, fitting.i) annotation( Line(points = {{18, 62}, {30, 62}, {30, 48}, {-74, 48}, {-74, -6}, {-62, -6}}, color = {0, 128, 255})); connect(fitting.o, francis.i) annotation( Line(points = {{-42, -6}, {-12, -6}}, color = {0, 128, 255})); connect(francis.o, discharge.i) annotation( Line(points = {{8, -6}, {34, -6}}, color = {0, 128, 255})); connect(francis.P_out, synchGen.P_in) annotation( Line(points = {{-2, -16}, {-2, -30}}, color = {0, 0, 127})); connect(synchGen.w_out, francis.w_in) annotation( Line(points = {{10, -36}, {22, -36}, {22, -66}, {-22, -66}, {-22, -14}, {-14, -14}}, color = {0, 0, 127})); connect(guidevaneCONTROL.y, francis.u_t) annotation( Line(points = {{-14, 28}, {0, 28}, {0, 6}, {-2, 6}}, color = {0, 0, 127})); annotation( uses(OpenHPL(version = "2.0.0"), Modelica(version = "4.0.0"))); end pumpstorageddam;