-
Notifications
You must be signed in to change notification settings - Fork 87
add friction model "Hofer" #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 3 commits
acc9b05
6fae5f6
0ce86f8
c83b746
fc14027
ea07dae
6b2c148
4fb5a97
db8f8d3
523e785
39cf84d
05c938b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,46 +142,65 @@ pipe sections. | |
| Friction models | ||
| ^^^^^^^^^^^^^^^ | ||
|
|
||
| Three friction models are used to calculate the velocity dependent friction factor: | ||
| For friction models are available to calculate the velocity dependent friction factor :math:`\lambda`: | ||
|
|
||
| - Nikuradse | ||
| - Prandtl-Colebrook | ||
| - Swamee-Jain | ||
| - Nikuradse ("nikuradse") | ||
| - Prandtl-Colebrook ("colebrook") | ||
| - Hofer ("hofer") | ||
| - Swamee-Jain ("swamee-jain") | ||
|
|
||
| Nikuradse is chosen by default. In this case, the friction factor is calculated by: | ||
| They are set by the :code:`friction_model` parameter and the name given in parentheses. | ||
| *Nikuradse* is chosen by default. In this case, the friction factor is calculated by: | ||
|
|
||
| .. math:: | ||
| :nowrap: | ||
|
|
||
| \begin{align*} | ||
| \lambda &= \frac{64}{Re} + \frac{1}{(-2 \cdot \log (\frac{k}{3.71 \cdot d}))^2}\\ | ||
| \lambda &= \frac{64}{Re} + \frac{1}{\left(-2 \cdot \log \left(\frac{k}{3.71 \cdot d}\right)\right)^2}\\ | ||
| \end{align*} | ||
|
|
||
|
|
||
| Note that in literature, Nikuradse is known as a model for turbulent flows. In pandapipes, the formula for the | ||
| Nikuradse model is also applied for laminar flow. | ||
|
|
||
| If Prandtl-Colebrook is selected, the friction factor is calculated iteratively according to | ||
| If *Prandtl-Colebrook* (also known as Colebrook-White) is selected, the friction factor is calculated iteratively according to | ||
|
|
||
| .. math:: | ||
| :nowrap: | ||
|
|
||
| \begin{align*} | ||
| \frac{1}{\sqrt{\lambda}} &= -2 \cdot \log (\frac{2.51}{Re \cdot \sqrt{\lambda}} + \frac{k}{3.71 \cdot d})\\ | ||
| \frac{1}{\sqrt{\lambda}} &= -2 \cdot \log \left(\frac{2.51}{Re \cdot \sqrt{\lambda}} + \frac{k}{3.71 \cdot d}\right)\\ | ||
| \end{align*} | ||
|
|
||
| Equations for pressure losses due to friction were taken from :cite:`Eberhard1990` and | ||
| :cite:`Cerbe2008`. | ||
|
|
||
| The equation according to Swamee-Jain :cite:`Swamee1976` is an approximation of the calculation method according | ||
| The *Hofer-Equation* is an explicit approximation of the Prandtl-Colebrook method and defined as shown in | ||
| :cite:`Benner.2019` (based on :cite:`Hofer.1973`) | ||
|
|
||
| .. math:: | ||
| :nowrap: | ||
|
|
||
| \begin{align*} | ||
| \lambda_H &= \frac{1}{(-2 \log \left(\frac{4.518}{Re} \cdot \log \left(\frac{Re}{7}) + \frac{k}{3.71 \cdot d}\right)\right)^2}\\ | ||
| \end{align*} | ||
|
|
||
| Very small Reynolds numbers can lead to problems with the two nested log-functions. | ||
| Thus, in pandapipes, the laminar :math:`\lambda_l = 64/Re` is applied for small Reynolds numbers | ||
| (:math:`Re < \underline{Re}`) and :math:`\lambda_H` is used for high Reynolds numbers (:math:`Re > \overline{Re}`). | ||
| In the transition area :math:`\underline{Re} \leq Re \leq \overline{Re}`, :math:`\lambda_H` is interpolated linearly. | ||
| By default, the boundaries of this transition area are set to :math:`\underline{Re}=2000` and :math:`\overline{Re}=3000`. | ||
| Note that the derivative used for Hofer is the same as for Prandtl-Colebrook. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the PC-derivative indeed applicable in this case or is it an approximation, since Hofer is just an explicit form of Prandtl-Colebrook?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure - I found it acceptable, also because of the quite complicated derivative of the Hofer formula. Apparently it is working ; ) |
||
|
|
||
| The equation according to *Swamee-Jain* :cite:`Swamee1976` is another approximation of the calculation method according | ||
| to Prandtl-Colebrook. It is an explicit formula for the friction factor of the transition | ||
| zone of turbulent flows in pipes and is defined as follows: | ||
|
|
||
| .. math:: | ||
| :nowrap: | ||
|
|
||
| \begin{align*} | ||
| \lambda &= \frac{0.25}{(\log(\frac{k}{3.7 \cdot d} + \frac{5.74}{Re^{0.9}}))^2}\\ | ||
| \lambda &= \frac{0.25}{\left(\log\left(\frac{k}{3.7 \cdot d} + \frac{5.74}{Re^{0.9}}\right)\right)^2}\\ | ||
| \end{align*} | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.