Skip to content

Commit b3a9f76

Browse files
committed
It makes more sense to display the info layer
1 parent 3eb3ad9 commit b3a9f76

39 files changed

Lines changed: 42 additions & 43 deletions

OpenHPL/Controllers/Governor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ equation
126126
//else
127127
// der(Y_gv) = u / T_g;
128128
//end if;
129-
annotation (Documentation(info="<html>
129+
annotation (preferredView="info", Documentation(info="<html>
130130
<h4>Governor</h4>
131131
<p>
132132
Here, a simple model of the governor that controls the guide vane opening in the turbine based on the reference power

OpenHPL/Controllers/package.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
within OpenHPL;
22
package Controllers "Collection of different controllers"
33
extends Modelica.Icons.Package;
4-
54
extends Icons.Governor;
65

76
end Controllers;

OpenHPL/ElectroMech/BaseClasses/BaseValve.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ equation
3434
Vdot = mdot/data.rho;
3535
dp*(C_v_*max(epsilon, u^alpha))^2 = Vdot*abs(Vdot) "Valve equation for pressure drop";
3636
dp = i.p - o.p "Link the pressure drop to the ports";
37-
annotation ( Documentation(info="<html>
37+
annotation (preferredView="info", Documentation(info="<html>
3838
<p>
3939
This is a partial, simple model of hydraulic valve. &nbsp;</p><p>This model is based on the energy balance of a valve.
4040
</p>
4141
<ul>
42-
<li>Mass flow is equal at innflow and outflow</li>
42+
<li>Mass flow is equal at inflow and outflow</li>
4343
<li>The head loss and pressure difference is proportional to square of velocity</li>
4444
</ul>
4545
<p>
@@ -49,7 +49,7 @@ Specifically:
4949
<p>
5050
The function f(opening) is expressed as:
5151
</p>
52-
<p>$$ f(\\mathrm{opening}) = \\left( C_\\mathrm{v} \\cdot \\mathrm{max}(\\epsilon, u^\\alpha\\right)^2 $$</p>
52+
<p>$$ f(\\mathrm{opening}) = \\left( C_\\mathrm{v} \\cdot \\mathrm{max}(\\epsilon, u^\\alpha)\\right)^2 $$</p>
5353
<p>
5454
When \\(\\alpha\\) is 1, this implies a linear relation between closing and head loss.
5555
</p>

OpenHPL/ElectroMech/Generators/SimpleGen.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ model SimpleGen "Model of a simple generator with mechanical connectors"
1313
rotation=270,
1414
origin={0,120})));
1515

16-
annotation (
16+
annotation (preferredView="info",
1717
Documentation(info= "<html>
1818
<h4>Simple Generator Model</h4>
1919
<p>Simple model of an ideal generator with friction based on angular momentum balance.</p>

OpenHPL/ElectroMech/Generators/SynchGen.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ equation
108108
der(w) = (Wdot_ts - Pe) / (J * w);
109109
// - W_fa;
110110
//
111-
annotation (
111+
annotation (preferredView="info",
112112
Documentation(info= "<html>
113113
<h4>Synchronous Generator Model</h4>
114114
<p>Detailed synchronous generator model connected to the grid, based on d-q decomposition.</p>

OpenHPL/ElectroMech/PowerSystem/Grid.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ equation
4949
connect(product.y, dP2.u1) annotation (Line(points={{-13.5,67},{-8,67},{-8,33.6},{-12.8,33.6}}, color={0,0,127}));
5050
connect(toHz.u, w_m2pu.y) annotation (Line(points={{5.2,-50},{84,-50},{84,-40},{78.6,-40}}, color={0,0,127}));
5151
connect(toHz.y, dF.u1) annotation (Line(points={{-8.6,-50},{-22,-50}}, color={0,0,127}));
52-
annotation (
52+
annotation (preferredView="info",
5353
Documentation(info="<html>
5454
<h4>Primary control</h4>
5555
<h5>Network Power-Frequency Characteristic</h5>

OpenHPL/ElectroMech/Turbines/Francis.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ equation
212212
mdot=i.mdot;
213213

214214
connect(p_out, P_out) annotation (Line(points={{40,90},{40,110}}, color={0,0,127}));
215-
annotation (
215+
annotation (preferredView="info",
216216
Documentation(info="<html>
217217
<h4>Francis Turbine Model</h4>
218218

OpenHPL/ElectroMech/Turbines/Pelton.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ equation
5656
mdot=i.mdot;
5757

5858
connect(p_out, P_out) annotation (Line(points={{40,90},{40,110}}, color={0,0,127}));
59-
annotation (
59+
annotation (preferredView="info",
6060
Documentation(info="<html>
6161
<h4>Pelton Turbine Model</h4>
6262
<p>Mechanistic Pelton turbine model based on the Euler turbine equation and impulse turbine principles.</p>

OpenHPL/ElectroMech/Turbines/Turbine.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ equation
4343
connect(lossCorrection.u1, power.y) annotation (Line(points={{-48,80},{-88,80},{-88,30},{-81,30}},color={0,0,127}));
4444
connect(frictionLoss.power, lossCorrection.u2) annotation (Line(points={{-1,12},{-40,12},{-40,72}},color={0,0,127}));
4545
connect(u_t, u) annotation (Line(points={{-80,120},{-80,90},{0,90},{0,70}},color={0,0,127}));
46-
annotation (
46+
annotation (preferredView="info",
4747
Documentation(info="<html>
4848
<h4>Simple Turbine Model</h4>
4949

OpenHPL/Functions/Fitting/FittingPhi.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ algorithm
4848
D_o,
4949
L);
5050
end if;
51-
annotation (
51+
annotation (preferredView="info",
5252
Documentation(info = "<html>
5353
<p>Define dimension factor &phi; for different types of fittings.</p>
5454
</html>"));

0 commit comments

Comments
 (0)