Skip to content

Commit 3fe9842

Browse files
committed
Removing unneeded variables and dummy annotation changes.
1 parent a7fc63e commit 3fe9842

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

OpenHPL/Examples/Simple.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ model Simple "Model of a hydropower system with a simple turbine turbine"
3333
extent={{-10,-10},{10,10}})));
3434
equation
3535
connect(turbine.o, discharge.i) annotation (Line(points={{40,10},{44,10},{44,0},{50,0}}, color={28,108,200}));
36-
connect(control.y, turbine.u_t) annotation (Line(points={{1,70},{16,70},{16,40},{22,40}, {22, 22}},
36+
connect(control.y, turbine.u_t) annotation (Line(points={{1,70},{16,70},{16,40},{22,40},{22,22}},
3737
color={0,0,127}));
3838
connect(penstock.o, turbine.i) annotation (Line(points={{10,30},{14.95,30},{14.95,10},{20,10}}, color={28,108,200}));
3939
connect(reservoir.o, intake.i) annotation (

OpenHPL/Waterway/SurgeTank.mo

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ model SurgeTank "Model of the surge tank/shaft"
3939
//parameter SI.Temperature T_i = data.T_i "Initial water temperature in the pipe" annotation (Dialog(group = "Initialization", enable = TempUse));
4040
// variables
4141
SI.Mass m "Water mass";
42-
SI.Mass mdot "Mass flow rate";
42+
SI.MassFlowRate mdot "Mass flow rate";
4343
SI.Mass m_a = p_ac*A*(L-h_0/cos_theta)*data.M_a/(Modelica.Constants.R*T_ac) "Air mass inside surge tank";
4444
SI.Momentum M "Water momentum";
4545
SI.Force Mdot "Difference in influent and effulent momentum";
@@ -54,7 +54,6 @@ model SurgeTank "Model of the surge tank/shaft"
5454
SI.Force F_g "Gravity force";
5555
SI.Pressure p_t "Pressure at top of the surge tank";
5656
SI.Pressure p_b "Pressure at bottom of the surge tank";
57-
SI.Pressure p_n "Pressure at node or manifold of the surge tank";
5857
Real phiSO "Dimensionless factor based on the type of fitting ";
5958
// initial values for differential variables
6059
SI.Height h(start = h_0) "Water height in the surge tank";
@@ -131,10 +130,9 @@ equation
131130
mdot = data.rho * Vdot;
132131
Mdot = mdot * v;
133132
F = F_p - F_f - F_g;
134-
p_b = p_n "Linking bottom node pressure to connector";
135-
p_n = i.p "Surgetank manifold pressure";
133+
p_b = i.p "Linking bottom node pressure to connector";
136134
i.p = o.p "Inlet and outlet pressure equality";
137-
mdot = i.mdot+o.mdot "Mass balance";
135+
mdot = i.mdot+o.mdot "Mass balance";
138136
F_g = m * data.g * cos_theta;
139137
annotation (
140138
Documentation(info="<html>

0 commit comments

Comments
 (0)