@@ -6,16 +6,16 @@ package DarcyFriction "Functions to define the Darcy friction factor and frictio
66 Documentation(info = "<html>
77<h4>Friction Term</h4>
88<p>
9- First, the functions for defining the friction force in the waterway are described. The friction force
10- F<sub>f</sub> is directed in the opposite direction of the velocity v (the linear velocity average across
11- the cross-section of the pipe) of the fluid. A common expression for friction force in the filled pipes
9+ First, the functions for defining the friction force in the waterway are described. The friction force
10+ F<sub>f</sub> is directed in the opposite direction of the velocity v (the linear velocity average across
11+ the cross-section of the pipe) of the fluid. A common expression for friction force in the filled pipes
1212is the following:
1313</p>
1414<p>
1515$$ F_\\mathrm{f} = -\\frac{1}{8}\\pi\\rho LDf_\\mathrm{D}v|v| $$
1616</p>
1717<p>
18- Here, L and D are related to the pipe length and diameter, respectively. f<sub>D</sub> is a Darcy friction
18+ Here, L and D are related to the pipe length and diameter, respectively. f<sub>D</sub> is a Darcy friction
1919factor that is a function of Reynolds number N<sub>Re</sub>, with the roughness ratio ε/D as a parameter.
2020</p>
2121
@@ -26,17 +26,17 @@ factor that is a function of Reynolds number N<sub>Re</sub>, with the roughness
2626
2727<h5>Flow Regimes</h5>
2828<p>
29- The turbulent region (N<sub>Re</sub> > 2.3×10³) is a flow regime where the velocity across the pipe has
30- a stochastic nature, and where the velocity v is relatively uniform across the pipe when we average the
31- velocity over some short period of time. The laminar region (N<sub>Re</sub> < 2.1×10³) is a flow regime
32- with a regular velocity v which varies as a parabola with the radius of the pipe, with zero velocity at the
29+ The turbulent region (N<sub>Re</sub> > 2.3×10³) is a flow regime where the velocity across the pipe has
30+ a stochastic nature, and where the velocity v is relatively uniform across the pipe when we average the
31+ velocity over some short period of time. The laminar region (N<sub>Re</sub> < 2.1×10³) is a flow regime
32+ with a regular velocity v which varies as a parabola with the radius of the pipe, with zero velocity at the
3333pipe wall and maximal velocity at the centre of the pipe.
3434</p>
3535
3636<h5>Laminar Flow</h5>
3737<p>
38- Darcy friction factor varies with the roughness of the pipe surface, specified by roughness height ε. For
39- laminar flow in a cylindrical pipe (N<sub>Re</sub> < 2.1×10³), the Darcy friction factor f<sub>D</sub>
38+ Darcy friction factor varies with the roughness of the pipe surface, specified by roughness height ε. For
39+ laminar flow in a cylindrical pipe (N<sub>Re</sub> < 2.1×10³), the Darcy friction factor f<sub>D</sub>
4040can be found using the following expression:
4141</p>
4242<p>
@@ -56,23 +56,23 @@ $$ f_\\mathrm{D} = \\frac{1}{\\left(2\\log_{10}\\left(\\frac{\\epsilon}{3.7D} +
5656
5757<h5>Transition Zone</h5>
5858<p>
59- In order to define the Darcy friction factor in a region between laminar and turbulent flow regimes, a
60- cubic polynomial interpolation is used between the laminar value at N<sub>Re</sub>=2100 and the turbulent
59+ In order to define the Darcy friction factor in a region between laminar and turbulent flow regimes, a
60+ cubic polynomial interpolation is used between the laminar value at N<sub>Re</sub>=2100 and the turbulent
6161value at N<sub>Re</sub>=2300, with matching slopes at both endpoints to achieve global differentiability.
6262</p>
6363
6464<h5>Implementation</h5>
6565<p>
66- Based on the presented equations for calculation of the friction force in the waterway, two functions are
66+ Based on the presented equations for calculation of the friction force in the waterway, two functions are
6767encoded in class <code>DarcyFriction</code>:
6868</p>
6969<ol>
70- <li><code>fDarcy</code> — calculates the Darcy friction factor. This function has the following inputs:
71- Reynolds number N<sub>Re</sub>, pipe diameter D, and pipe roughness height ε. Returns the friction factor
70+ <li><code>fDarcy</code> — calculates the Darcy friction factor. This function has the following inputs:
71+ Reynolds number N<sub>Re</sub>, pipe diameter D, and pipe roughness height ε. Returns the friction factor
7272f<sub>D</sub>.</li>
73- <li><code>Friction</code> — calculates the actual friction force based on the response from the
74- <code>fDarcy</code> function. This function has the following inputs: linear velocity v, pipe length and
75- diameter L and D, liquid density and viscosity ρ and μ, and pipe roughness height ε. Returns friction force
73+ <li><code>Friction</code> — calculates the actual friction force based on the response from the
74+ <code>fDarcy</code> function. This function has the following inputs: linear velocity v, pipe length and
75+ diameter L and D, liquid density and viscosity ρ and μ, and pipe roughness height ε. Returns friction force
7676F<sub>f</sub>.</li>
7777</ol>
7878
0 commit comments