Skip to content

Commit 18a16ed

Browse files
committed
Use upright font for derivative operator
1 parent f98d7c3 commit 18a16ed

7 files changed

Lines changed: 18 additions & 18 deletions

File tree

OpenHPL/ElectroMech/Generators/SimpleGen.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ model SimpleGen "Model of a simple generator with mechanical connectors"
2323
where ω<sub>a</sub> is angular velocity and J<sub>a</sub> is moment of inertia.</p>
2424
2525
<p>From energy balance:</p>
26-
<p>$$ \\frac{dK_a}{dt} = \\dot{W}_s - \\dot{W}_{f,a} - \\dot{W}_g $$</p>
26+
<p>$$ \\frac{\\mathrm{d}K_a}{\\mathrm{d}t} = \\dot{W}_s - \\dot{W}_{f,a} - \\dot{W}_g $$</p>
2727
<p>where:</p>
2828
<ul>
2929
<li>Ẇ<sub>s</sub> is turbine shaft power</li>

OpenHPL/ElectroMech/Generators/SynchGen.mo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,29 +127,29 @@ equation
127127
</ul>
128128
129129
<h5>Phase Shift Angle Dynamics</h5>
130-
<p>$$ \\frac{d\\delta_e}{dt} = (\\omega - \\omega_s)\\frac{n_p}{2} $$</p>
130+
<p>$$ \\frac{\\mathrm{d}\\delta_e}{\\mathrm{d}t} = (\\omega - \\omega_s)\\frac{n_p}{2} $$</p>
131131
<p>where \\(n_p\\) is number of poles, \\(\\omega\\) and \\(\\omega_s\\) are generator and grid angular velocities.</p>
132132
133133
<h5>Swing Equation</h5>
134-
<p>$$ \\frac{d\\omega}{dt}=\\frac{\\dot{W}_s-P_e}{J\\omega} $$</p>
134+
<p>$$ \\frac{\\mathrm{d}\\omega}{\\mathrm{d}t}=\\frac{\\dot{W}_s-P_e}{J\\omega} $$</p>
135135
136136
<h5>Transient Operation</h5>
137137
<p>$$
138138
\\begin{array}{c}
139-
T_{qo}'\\frac{dE_d'}{dt} =-E_d' + (x_q' - x_q)I_q \\\\
140-
T_{do}'\\frac{dE_q'}{dt} = -E_q' + (x_d - x_d')I_d + E_f
139+
T_{qo}'\\frac{\\mathrm{d}E_d'}{\\mathrm{d}t} =-E_d' + (x_q' - x_q)I_q \\\\
140+
T_{do}'\\frac{\\mathrm{d}E_q'}{\\mathrm{d}t} = -E_q' + (x_d - x_d')I_d + E_f
141141
\\end{array}
142142
$$</p>
143143
<p>where \\(T_{do}'\\) and \\(T_{qo}'\\) are d-/q-axis transient open-circuit time constants.</p>
144144
145145
<h5>Excitation System</h5>
146146
<p>Field voltage dynamics:</p>
147-
<p>$$ \\frac{dE_f}{dt} = \\frac{-E_f + K_E\\left(V_{tr}-V_t-V_{stab}\\right)}{T_E} $$</p>
147+
<p>$$ \\frac{\\mathrm{d}E_f}{\\mathrm{d}t} = \\frac{-E_f + K_E\\left(V_{tr}-V_t-V_{stab}\\right)}{T_E} $$</p>
148148
<p>where \\(K_E\\) is excitation system gain, \\(T_E\\) is excitation time constant, \\(V_{tr}\\) is voltage reference set point,
149149
and \\(V_t = \\sqrt{\\left(E_d'-R_aI_d-x_q'I_q\\right)^2+\\left(E_q'-R_aI_q+x_d'I_d\\right)^2}\\) is terminal voltage.</p>
150150
151151
<h5>Stabilization</h5>
152-
<p>$$ \\frac{dV_{stab}}{dt} = \\frac{-V_{stab} + K_F\\frac{dE_f}{dt}}{T_{FE}} $$</p>
152+
<p>$$ \\frac{\\mathrm{d}V_{stab}}{\\mathrm{d}t} = \\frac{-V_{stab} + K_F\\frac{\\mathrm{d}E_f}{\\mathrm{d}t}}{T_{FE}} $$</p>
153153
<p>where \\(K_F\\) is stabilizer gain and \\(T_{FE}\\) is stabilizer time constant.</p>
154154
155155
<h5>Output Power</h5>

OpenHPL/Functions/KP07/package.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ With the finite volume method, we divide the grid into small control volumes/cel
3333
conservation laws. The semi-discrete (time-dependent ODEs) central-upwind scheme can be written as:
3434
</p>
3535
<p>
36-
$$ \\frac{d}{dt}\\bar{U}_j(t) = -\\frac{H_{j+\\frac{1}{2}}(t) - H_{j-\\frac{1}{2}}(t)}{\\Delta x} + \\bar{S}_j(t) $$
36+
$$ \\frac{\\mathrm{d}}{\\mathrm{d}t}\\bar{U}_j(t) = -\\frac{H_{j+\\frac{1}{2}}(t) - H_{j-\\frac{1}{2}}(t)}{\\Delta x} + \\bar{S}_j(t) $$
3737
</p>
3838
<p>
3939
Here, Ū<sub>j</sub> are the cell centre average values, while H<sub>j±1/2</sub>(t) are the central

OpenHPL/Waterway/Pipe.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ small pressure variations.</p>
8686
<h5>Mass and Momentum Balance</h5>
8787
8888
<p><strong>Mass Balance:</strong> For incompressible water, the mass in the filled pipe is constant:</p>
89-
<p>$$ \\frac{dm_\\mathrm{c}}{dt} = \\dot{m}_\\mathrm{c,in} - \\dot{m}_\\mathrm{c,out} = 0 $$</p>
89+
<p>$$ \\frac{\\mathrm{d}m_\\mathrm{c}}{\\mathrm{d}t} = \\dot{m}_\\mathrm{c,in} - \\dot{m}_\\mathrm{c,out} = 0 $$</p>
9090
9191
<p><strong>Momentum Balance:</strong> The momentum balance is expressed as:</p>
92-
<p>$$ \\frac{dM_\\mathrm{c}}{dt} = \\dot{M}_\\mathrm{c,in} - \\dot{M}_\\mathrm{c,out} + F_\\mathrm{p,c} + F_\\mathrm{g,c} + F_\\mathrm{f,c} $$</p>
92+
<p>$$ \\frac{\\mathrm{d}M_\\mathrm{c}}{\\mathrm{d}t} = \\dot{M}_\\mathrm{c,in} - \\dot{M}_\\mathrm{c,out} + F_\\mathrm{p,c} + F_\\mathrm{g,c} + F_\\mathrm{f,c} $$</p>
9393
<p>where:</p>
9494
<ul>
9595
<li>M<sub>c</sub> = m<sub>c</sub> v<sub>c</sub> is the momentum</li>

OpenHPL/Waterway/Reservoir.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ the reservoir outlet pressure is simply:</p>
107107
108108
<p><strong>Detailed Model:</strong> For a detailed model with dynamics and inflow,
109109
the mass and momentum balances are:</p>
110-
<p>$$ H\\frac{d\\dot{m}}{dt} = \\frac{\\rho}{A}\\dot{V}^2 + A(p_\\mathrm{atm}-p_\\mathrm{o}) + \\rho gHA - F_\\mathrm{f,r} $$</p>
111-
<p>$$ \\frac{dm}{dt} = \\dot{m}_\\mathrm{i} - \\dot{m}_\\mathrm{o} $$</p>
110+
<p>$$ H\\frac{\\mathrm{d}\\dot{m}}{\\mathrm{d}t} = \\frac{\\rho}{A}\\dot{V}^2 + A(p_\\mathrm{atm}-p_\\mathrm{o}) + \\rho gHA - F_\\mathrm{f,r} $$</p>
111+
<p>$$ \\frac{\\mathrm{d}m}{\\mathrm{d}t} = \\dot{m}_\\mathrm{i} - \\dot{m}_\\mathrm{o} $$</p>
112112
<p>where ṁ is the reservoir mass flow rate, A is the cross-sectional area,
113113
p<sub>atm</sub> and p<sub>o</sub> are atmospheric and outlet pressures, and F<sub>f,r</sub> is
114114
the friction term (typically small for large reservoirs).</p>

OpenHPL/Waterway/RunOff_zones.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ each elevation zone. Using the mass balance, the change in the dry snow storage
136136
as follows:
137137
</p>
138138
<p>
139-
$$ \\frac{dV_\\mathrm{s,d}}{dt}=\\dot{V}_\\mathrm{p,s}-\\dot{V}_\\mathrm{d2w} $$
139+
$$ \\frac{\\mathrm{d}V_\\mathrm{s,d}}{\\mathrm{d}t}=\\dot{V}_\\mathrm{p,s}-\\dot{V}_\\mathrm{d2w} $$
140140
</p>
141141
<p>
142142
Here, the flow of the precipitation in the form of snow is denoted as \\(\\dot{V}_\\mathrm{p,s}\\). This precipitation
@@ -188,7 +188,7 @@ from the snow-free areas. The net runoff to the next segment (upper zone) is als
188188
the volume of the soil moisture storage, \\(V_\\mathrm{s,m}\\), is found as follows:
189189
</p>
190190
<p>
191-
$$ \\frac{dV_\\mathrm{s,m}}{dt}=\\dot{V}_\\mathrm{s2s}-\\dot{V}_\\mathrm{s2u}-\\alpha_\\mathrm{e}\\dot{V}_\\mathrm{s,e} $$
191+
$$ \\frac{\\mathrm{d}V_\\mathrm{s,m}}{\\mathrm{d}t}=\\dot{V}_\\mathrm{s2s}-\\dot{V}_\\mathrm{s2u}-\\alpha_\\mathrm{e}\\dot{V}_\\mathrm{s,e} $$
192192
</p>
193193
<p>
194194
Here, \\(\\dot{V}_\\mathrm{s2u}\\) is the net runoff to the next segment (the upper zone). \\(\\dot{V}_\\mathrm{s,e}\\)
@@ -234,7 +234,7 @@ evapotranspiration from the lakes in the catchment area are also taken into acco
234234
The upper zone characterises components with quick runoff. The following mass balance is used for the upper zone description:
235235
</p>
236236
<p>
237-
$$ \\frac{dV_\\mathrm{u,w}}{dt}=\\dot{V}_\\mathrm{s2u}-\\dot{V}_\\mathrm{u2l}-\\dot{V}_\\mathrm{u2s}-\\dot{V}_\\mathrm{u2q} $$
237+
$$ \\frac{\\mathrm{d}V_\\mathrm{u,w}}{\\mathrm{d}t}=\\dot{V}_\\mathrm{s2u}-\\dot{V}_\\mathrm{u2l}-\\dot{V}_\\mathrm{u2s}-\\dot{V}_\\mathrm{u2q} $$
238238
</p>
239239
<p>
240240
Here, \\(V_\\mathrm{u,w}\\) is the water volume in the upper zone that depends on the saturation threshold, s<sub>T</sub>,
@@ -266,7 +266,7 @@ The lower zone characterises the lake and the groundwater storages and defines t
266266
The following mass balance equation is used for the lower zone description:
267267
</p>
268268
<p>
269-
$$ \\frac{dV_\\mathrm{l,w}}{dt}=\\dot{V}_\\mathrm{u2l}+a_\\mathrm{L}\\dot{V}_\\mathrm{p}-\\dot{V}_\\mathrm{l2b}-a_\\mathrm{L}\\dot{V}_\\mathrm{e} $$
269+
$$ \\frac{\\mathrm{d}V_\\mathrm{l,w}}{\\mathrm{d}t}=\\dot{V}_\\mathrm{u2l}+a_\\mathrm{L}\\dot{V}_\\mathrm{p}-\\dot{V}_\\mathrm{l2b}-a_\\mathrm{L}\\dot{V}_\\mathrm{e} $$
270270
</p>
271271
<p>
272272
The water volume in the lower zone is denoted as \\(V_\\mathrm{l,w}\\). As mentioned previously, \\(\\dot{V}_\\mathrm{p}\\)

OpenHPL/Waterway/SurgeTank.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ connecting the conduit, surge volume, and penstock. Four different surge tank co
159159
<h5>Mass and Momentum Balances</h5>
160160
161161
<p>All surge tank types are modeled using mass and momentum balance equations:</p>
162-
<p>$$ \\frac{dm}{dt} = \\dot{m}_\\mathrm{s,in} = \\rho \\dot{V} $$</p>
163-
<p>$$ \\frac{d(mv)}{dt} = \\dot{m}_\\mathrm{i}v_\\mathrm{i} + F_\\mathrm{p} + F_\\mathrm{g} + F_\\mathrm{f} $$</p>
162+
<p>$$ \\frac{\\mathrm{d}m}{\\mathrm{d}t} = \\dot{m}_\\mathrm{s,in} = \\rho \\dot{V} $$</p>
163+
<p>$$ \\frac{\\mathrm{d}(mv)}{\\mathrm{d}t} = \\dot{m}_\\mathrm{i}v_\\mathrm{i} + F_\\mathrm{p} + F_\\mathrm{g} + F_\\mathrm{f} $$</p>
164164
165165
<h5>Water Mass and Geometry</h5>
166166

0 commit comments

Comments
 (0)