wolfhece.bernoulli.losses
Author: HECE - University of Liege, Pierre Archambeau Date: 2024
Copyright (c) 2024 University of Liege. All rights reserved.
This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.
Module Contents
- wolfhece.bernoulli.losses._colebrook_white(f: float, k: float, diameter: float, reynolds: float) float [source]
Colebrook-White equation for friction factor
@param f: float, friction factor [-] @param k: float, roughness of the pipe [m] @param diameter: float, diameter of the pipe [m] @param reynolds: float, Reynolds number [-]
- wolfhece.bernoulli.losses.f_colebrook_white(f: float, k: float, diameter: float, reynolds: float) float [source]
Solve the Colebrook-White equation using Newton’s method
@param f: float, initial guess for the friction factor [-] @param k: float, roughness of the pipe [m] @param diameter: float, diameter of the pipe [m] @param reynolds: float, Reynolds number [-]
- wolfhece.bernoulli.losses.test_colebrook_fsolve()[source]
Test the Colebrook-White equation using Scipy fsolve
- wolfhece.bernoulli.losses.test_colebrook_root_scalar()[source]
Test the Colebrook-White equation using Scipy root_scalar
- wolfhece.bernoulli.losses.test_colebrook_newton()[source]
Test the Colebrook-White equation using Scipy newton