Skip to content

chessparov/Darcy-Coefficient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Darcy Coefficient

A program capable of evaluating the Darcy coefficient given the Reynolds number, the relative roughness and the dimensions of a pipe, factoring also different pipe geometry.

Coolebrok equation

Whilst for laminar flow it uses some simple approximated formulae, for turbulent flow the coefficient is calculated through the more complex Coolebrok equation:

$$\frac{1}{\sqrt{\lambda}} = - 2 \log \left( \frac {2{,}51} {Re , \sqrt{\lambda}} +\frac { \varepsilon/D} {3{,}71}\right)$$

where $\lambda$ is the Darcy coefficient, $Re$ is the Reynolds number, $D$ is the pipe diameter and $\epsilon$ is the relative roughness.

Since it's an implicit equation, it can't be solved analytically, at least in a reasonable time span. The solution is calculated iteratively with the help of the "scipy.optimize.fsolve" function from the scipy library.

About

Iterative Coolebrok equation solving

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages