Skip to content

Commit e6ba5e3

Browse files
committed
Correct false friend "Aggregate" --> "unit"
1 parent b21a61f commit e6ba5e3

16 files changed

+44
-44
lines changed

OpenHPL/ElectroMech/BaseClasses/Power2Torque.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ partial model Power2Torque "Converts a power signal to a torque in the rotationa
6262
rotation=180,
6363
origin={-50,0})));
6464
Modelica.Blocks.Interfaces.RealOutput f(unit="Hz")
65-
if enable_f "Frequency output of the aggregate"
65+
if enable_f "Frequency output of the unit"
6666
annotation (Placement(transformation(extent={{100,-50},{120,-30}}),
6767
iconTransformation(extent={{100,-50},{120,-30}})));
6868
Modelica.Blocks.Interfaces.RealOutput w(unit="rad/s")
69-
if enable_w "Angular velocity output of the aggregate"
69+
if enable_w "Angular velocity output of the unit"
7070
annotation (Placement(transformation(extent={{100,30},{120,50}}),
7171
iconTransformation(extent={{100,30},{120,50}})));
7272

@@ -80,7 +80,7 @@ partial model Power2Torque "Converts a power signal to a torque in the rotationa
8080
Modelica.Mechanics.Rotational.Components.IdealGear toSysSpeed(ratio=2/p) "Converts to system speed based on p = 2" annotation (Placement(transformation(extent={{24,-6},{36,6}})));
8181
Modelica.Blocks.Sources.RealExpression nominalSpeed(y=w_0*p/2) if enable_nomSpeed annotation (Placement(transformation(extent={{-12,-70},{8,-50}})));
8282
Modelica.Blocks.Interfaces.RealInput w_in if enable_w_in and not enable_nomSpeed
83-
"Angular velocity input of the aggregate [pu]" annotation (Placement(transformation(
83+
"Angular velocity input of the unit [pu]" annotation (Placement(transformation(
8484
extent={{-20,-20},{20,20}},
8585
rotation=90,
8686
origin={-80,-120})));

OpenHPL/ElectroMech/Generators/SimpleGen.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ model SimpleGen "Model of a simple generator with mechanical connectors"
1818
<h4>Simple model of an ideal generator with friction.</h4>
1919
2020
<p>This model based on the angular momentum balance, which depends on the turbine shaft power,
21-
the friction loss in the aggregate rotation and the power taken up by the generator.</p>
21+
the friction loss in the unit rotation and the power taken up by the generator.</p>
2222
<p>
2323
The generator can be loaded either:</p>
2424
<ul>

OpenHPL/Resources/Documents/UsersGuide_src/UsersGuide.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ \subsection{Pelton}
917917
918918
\subsection{Simple Generator}
919919
920-
Here, a simple model of an ideal generator with friction is considered. This model has inputs as electric power available on the grid and the turbine shaft power. This model is based on the angular momentum balance which depends on the turbine shaft power, the friction loss in the aggregate rotation, and the power taken up by the generator. The rotor angular velocity mainly depends on its inertia, internal friction and available power. The kinetic energy stored in the rotating generator is $ K_a=\frac{1}{2}J_a\omega_a^2$, where $\omega_a$ is the angular velocity of the rotor and $J_a$ is its moment of inertia. The kinetic energy $K_a$ is changed by the power terms operating on the generator axis, e.g., the turbine shaft power $\dot{W}_s$ produced by the turbine, friction power $\dot{W}_{f,a}$, and the power taken up by the generator, $\dot{W}_g$, \cite{LieL:18}, and from energy the balance can be expressed as follows:
920+
Here, a simple model of an ideal generator with friction is considered. This model has inputs as electric power available on the grid and the turbine shaft power. This model is based on the angular momentum balance which depends on the turbine shaft power, the friction loss in the unit rotation, and the power taken up by the generator. The rotor angular velocity mainly depends on its inertia, internal friction and available power. The kinetic energy stored in the rotating generator is $ K_a=\frac{1}{2}J_a\omega_a^2$, where $\omega_a$ is the angular velocity of the rotor and $J_a$ is its moment of inertia. The kinetic energy $K_a$ is changed by the power terms operating on the generator axis, e.g., the turbine shaft power $\dot{W}_s$ produced by the turbine, friction power $\dot{W}_{f,a}$, and the power taken up by the generator, $\dot{W}_g$, \cite{LieL:18}, and from energy the balance can be expressed as follows:
921921
\begin{equation}
922922
\frac{dK_a}{dt}=\dot{W}_s-\dot{W}_{f,a}-\dot{W}_g
923923
\end{equation}

OpenHPL/Resources/Images/simplegen.svg

Lines changed: 1 addition & 1 deletion
Loading

OpenHPL/Tests/HPElasticKPPenstock.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ model HPElasticKPPenstock "Model of HP system with elastic penctock (KP), but si
2727
p_p0=997*data.g*(penstockKP.h_s0 + penstockKP.H/penstockKP.N/2):997*data.g*penstockKP.H/penstockKP.N:997*data.g*(penstockKP.h_s0 + penstockKP.H/penstockKP.N*(penstockKP.N - 1/2))) annotation (Placement(transformation(extent={{-20,44},{0,64}})));
2828
Modelica.Blocks.Sources.Ramp load(duration = 1, height = -5e6, offset = 80e6, startTime = 600) annotation (
2929
Placement(transformation(extent = {{-22, 0}, {-2, 20}})));
30-
ElectroMech.Generators.SimpleGen aggregate annotation (Placement(transformation(extent={{8,0},{28,20}})));
30+
ElectroMech.Generators.SimpleGen unit annotation (Placement(transformation(extent={{8,0},{28,20}})));
3131
equation
3232
//19.077 * ones(10)
3333
//, H = 428.5, h_s0 = 69.9, N = 10, p_p0 = 997 * 9.81 * (69.9 + 428.5 / 10 / 2):997 * 9.81 * 428.5 / 10:9.81 * 997 * (69.9 + 428.5 / 10 * (10 - 1 / 2))
3434
//997 * data.g
35-
connect(turbine.P_out, aggregate.P_in) annotation (
35+
connect(turbine.P_out, unit.P_in) annotation (
3636
Line(points = {{18, 32}, {18, 32}, {18, 22}, {18, 22}, {18, 20}}, color = {0, 0, 127}));
3737
connect(control.y, turbine.u_t) annotation (
3838
Line(points={{11,84},{10,84},{10,54}}, color = {0, 0, 127}));
@@ -48,7 +48,7 @@ equation
4848
Line(points = {{-51.9, 63.9}, {-46, 63.9}, {-46, 69.9}, {-41.9, 69.9}}, color = {28, 108, 200}));
4949
connect(reservoir.n, intake.p) annotation (
5050
Line(points = {{-81.9, 65.9}, {-76, 65.9}, {-76, 63.9}, {-71.9, 63.9}}, color = {28, 108, 200}));
51-
connect(load.y, aggregate.u) annotation (
51+
connect(load.y, unit.u) annotation (
5252
Line(points = {{-1, 10}, {-1, 10}, {8, 10}}, color = {0, 0, 127}));
5353
annotation (
5454
experiment(StopTime = 2000, StartTime = 0, Tolerance = 0.0001, Interval = 0.4));

OpenHPL/Tests/HPElasticKPPenstockCompres.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ model HPElasticKPPenstockCompres "Model of HP system with elastic penctock (KP),
2828
h_s0=69) annotation (Placement(transformation(extent={{-20,44},{0,64}})));
2929
Modelica.Blocks.Sources.Ramp load(duration = 1, height = -5e6, offset = 80e6, startTime = 600) annotation (
3030
Placement(transformation(extent = {{-22, 0}, {-2, 20}})));
31-
OpenHPL.ElectroMech.Generators.SimpleGen aggregate annotation (Placement(transformation(extent={{6,0},{26,20}})));
31+
OpenHPL.ElectroMech.Generators.SimpleGen unit annotation (Placement(transformation(extent={{6,0},{26,20}})));
3232
equation
33-
connect(load.y, aggregate.u) annotation (
33+
connect(load.y, unit.u) annotation (
3434
Line(points = {{-1, 10}, {6, 10}}, color = {0, 0, 127}));
35-
connect(turbine.P_out, aggregate.P_in) annotation (
35+
connect(turbine.P_out, unit.P_in) annotation (
3636
Line(points = {{14, 31}, {14, 25.5}, {12, 25.5}, {12, 20}}, color = {0, 0, 127}));
3737
connect(control.y, turbine.u_t) annotation (
3838
Line(points = {{11, 84}, {18, 84}, {18, 52.8}}, color = {0, 0, 127}));

OpenHPL/Tests/HPElasticKPPenstockHalfSurgeD.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ model HPElasticKPPenstockHalfSurgeD "Similar to previous HP system, but with twi
2020
origin={78,38},
2121
extent={{-10,10},{10,-10}},
2222
rotation=180)));
23-
ElectroMech.Generators.SimpleGen aggregate(w_0=52) annotation (Placement(transformation(extent={{8,2},{28,22}})));
23+
ElectroMech.Generators.SimpleGen unit(w_0=52) annotation (Placement(transformation(extent={{8,2},{28,22}})));
2424
ElectroMech.Turbines.Turbine turbine(C_v=3.7, WaterCompress=true) annotation (Placement(transformation(extent={{8,32},{28,52}})));
2525
Waterway.PenstockKP penstockKP(N=20, Vdot_0=19*ones(20)) annotation (Placement(transformation(extent={{-18,42},{2,62}})));
2626
Waterway.SurgeTank surgeTank(D=1.7) annotation (Placement(transformation(extent={{-44,60},{-24,80}})));
2727
equation
28-
connect(turbine.P_out, aggregate.P_in) annotation (
28+
connect(turbine.P_out, unit.P_in) annotation (
2929
Line(points = {{18, 32}, {18, 32}, {18, 22}, {18, 22}}, color = {0, 0, 127}));
30-
connect(load.y, aggregate.u) annotation (
30+
connect(load.y, unit.u) annotation (
3131
Line(points = {{1, 12}, {8, 12}}, color = {0, 0, 127}));
3232
connect(discharge.p, turbine.n) annotation (
3333
Line(points = {{38.1, 37.9}, {31, 37.9}, {31, 41.9}, {28.1, 41.9}}));

OpenHPL/Tests/HPElasticKPPenstockWithoutSurge.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ model HPElasticKPPenstockWithoutSurge "Model of HP system without surge tank and
3232
extent={{-10,-10},{10,10}})));
3333
Modelica.Blocks.Sources.Ramp load(duration = 1, height = -5e6, offset = 80e6, startTime = 600) annotation (
3434
Placement(transformation(extent = {{-8, -2}, {12, 18}})));
35-
ElectroMech.Generators.SimpleGen aggregate annotation (Placement(transformation(extent={{22,-2},{42,18}})));
35+
ElectroMech.Generators.SimpleGen unit annotation (Placement(transformation(extent={{22,-2},{42,18}})));
3636
equation
37-
connect(turbine.P_out, aggregate.P_in) annotation (
37+
connect(turbine.P_out, unit.P_in) annotation (
3838
Line(points = {{32, 26}, {32, 26}, {32, 18}, {32, 18}}, color = {0, 0, 127}));
3939
connect(condiut.n, penstockKP1.p) annotation (
4040
Line(points = {{-37.9, 63.9}, {-26, 63.9}, {-26, 49.9}, {-15.9, 49.9}}, color = {28, 108, 200}));
@@ -48,7 +48,7 @@ equation
4848
Line(points = {{81.9, 41.9}, {80, 41.9}, {80, 33.9}, {76.1, 33.9}}, color = {28, 108, 200}));
4949
connect(turbine.p, penstockKP1.n) annotation (
5050
Line(points = {{22.1, 35.9}, {14, 35.9}, {14, 49.9}, {4.1, 49.9}}, color = {28, 108, 200}));
51-
connect(load.y, aggregate.u) annotation (
51+
connect(load.y, unit.u) annotation (
5252
Line(points = {{13, 8}, {13, 8}, {22, 8}}, color = {0, 0, 127}));
5353
annotation (
5454
experiment(StopTime = 2000, StartTime = 0, Tolerance = 0.0001, Interval = 0.4));

OpenHPL/Tests/HPSimpleElasticPenstock.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ model HPSimpleElasticPenstock "Model of HP system with elastic penctock (Stagard
3636
OpenHPL.ElectroMech.Turbines.Turbine turbine(C_v=3.7, WaterCompress=true) annotation (Placement(transformation(extent={{20,26},{40,46}})));
3737
Modelica.Blocks.Sources.Ramp load(duration = 1, height = -5e6, offset = 80e6, startTime = 600) annotation (
3838
Placement(transformation(extent = {{-10, -4}, {10, 16}})));
39-
OpenHPL.ElectroMech.Generators.SimpleGen aggregate annotation (Placement(transformation(extent={{20,-4},{40,16}})));
39+
OpenHPL.ElectroMech.Generators.SimpleGen unit annotation (Placement(transformation(extent={{20,-4},{40,16}})));
4040
equation
41-
connect(load.y, aggregate.u) annotation (
41+
connect(load.y, unit.u) annotation (
4242
Line(points = {{11, 6}, {20, 6}}, color = {0, 0, 127}));
43-
connect(turbine.P_out, aggregate.P_in) annotation (
43+
connect(turbine.P_out, unit.P_in) annotation (
4444
Line(points = {{26, 25}, {26, 16}}, color = {0, 0, 127}));
4545
connect(penstock.n, turbine.p) annotation (
4646
Line(points = {{10.1, 53.9}, {10.1, 43.95}, {20, 43.95}, {20, 36}}, color = {28, 108, 200}));

OpenHPL/Tests/HPSimpleElasticPenstockWithoutSurge.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ model HPSimpleElasticPenstockWithoutSurge "Model of HP system without surge tank
2626
extent={{-10,-10},{10,10}})));
2727
Modelica.Blocks.Sources.Ramp load(duration = 1, height = -5e6, offset = 80e6, startTime = 600) annotation (
2828
Placement(transformation(extent = {{-16, 0}, {4, 20}})));
29-
OpenHPL.ElectroMech.Generators.SimpleGen aggregate annotation (Placement(transformation(extent={{14,2},{34,22}})));
29+
OpenHPL.ElectroMech.Generators.SimpleGen unit annotation (Placement(transformation(extent={{14,2},{34,22}})));
3030
equation
31-
connect(load.y, aggregate.u) annotation (
31+
connect(load.y, unit.u) annotation (
3232
Line(points = {{5, 10}, {9.5, 10}, {9.5, 12}, {14, 12}}, color = {0, 0, 127}));
33-
connect(turbine1.P_out, aggregate.P_in) annotation (
33+
connect(turbine1.P_out, unit.P_in) annotation (
3434
Line(points = {{20, 25}, {20, 22}}, color = {0, 0, 127}));
3535
connect(turbine1.u_t, control.y) annotation (
3636
Line(points={{16,48},{27,48},{27,48.8},{24,48.8},{24,84},{21,84}}, color = {0, 0, 127}));

0 commit comments

Comments
 (0)