Main Content

20 results in File Exchange

Friction and Roughness

Version 2.0.3 by Ildeberto de los Santos Ruiz

Calculate the Darcy-Weisbach friction factor and estimate the relative roughness coefficient of a pipeline.

The calculation of the Darcy-Weisbach friction factor is made from the Reynolds number and the relative roughness coefficient, by different methods (implicit and explicit). The calculation method to

- Computes the Darcy-Weisbach friction factor for
  • 166 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 1 Feb 2019

Darcy–Weisbach friction factor

Version 1.0.0.0 by Lateef Adewale Kareem

Darcy–Weisbach friction factor

% In fluid dynamics, the Darcy friction factor formulae are equations – based % on experimental data and theory – for the Darcy friction factor. The Darcy % friction factor is a dimensionless

  • 769 (All time)
  • 2 (Last 30 days)
  • -- / 5
  • Community
  • 29 Nov 2015

Fluid Mechanics: Flow in Straight Pipes and its Extensions(Darcy Friction F and PI-groups Solutions)

Version 1.6.0.0 by Hatem Ali

Developed to Solve Flow in Straight Pipes And (Reynold No,Darcy Friction, PI-groups Solutions)

pipes Darcy-Weisbach Friction Factor Reynold Number Buckingham Pi Theorem

- Darcy-Weisbach friction factor Calculator
  • 1.2K (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 21 May 2015

Fast-Implementation-Mixed-FEM

Version 1.0.2 by Theodore Weinberg

Fast Implementation of Mixed Finite Elements (Raviart-Thomas) for upcoming paper

Fast implementation of the mixed finite element methodfor the Darcy's problem discretized by lowest-order Raviart-Thomas finite elements using Matlab. The implementation is based on the so-called

  • 407 (All time)
  • 4 (Last 30 days)
  • -- / 5
  • Community
  • 22 Jul 2019

colebrook

Version 1.0.0 by Nathan Green

ColeBrook-While Equation. Used for solving for Darcy friction factor

ColeBrook-While Equation. Inputs: Re (Reynolds number), ed (relative roughness - [absolute roughness/Diameter])Output: Darcy friction factor

  • 33 (All time)
  • 3 (Last 30 days)
  • -- / 5
  • Community
  • 27 Apr 2022

Colebrook White some explicit formulations

Version 1.3.0.0 by Mario CASTRO GAMA

Comparison of formulations for calculation of the friction factor of the Darcy-Weisbach eq

31 methods to calculate the friction factor of the Darcy-Weisbach equation.The turbulent range is calculated using the Colebrook-White formulation. Some explicit formulations are presented. Then

  • 672 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 3 Jul 2014

Numerical calculation of Darcy-Weisbach friction factor

Version 1.0.0 by Ryan Pritzkau

The darcy-weisbach friction factor is calculated using the Colebrook-White equation via the secant method.

darcy-weisbach friction factor utilizing the secant method. Since the secant method is utilized, the function breaks down a extremely high reynolds numbers. This can be resolved by adjusting the values of the

  • 46 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 9 Jun 2023

Pipes Friction Factor

Version 1.3 by Adrian Quesada

📘 Interactive MATLAB app to calculate the Darcy friction factor in pipe flows.

interactiva desarrollada en MATLAB permite calcular el **factor de fricción de Darcy–Weisbach** en tuberías, en función del número de Reynolds y la rugosidad relativa. Es una herramienta educativa útil para

  • 3 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 7 Aug 2025

Moody Diagram

Version 2.0.1 by Tom Davis

Generates Moody Diagram

  • 20.3K (All time)
  • 11 (Last 30 days)
  • 4.6 / 5
  • Community
  • 3 Nov 2021

colebrook.m

Version 1.0.0.0 by Didier Clamond

Efficient resolution of the Colebrook-White equation.

% F = COLEBROOK(R,K) fast, accurate and robust computation of the % Darcy-Weisbach friction factor F according to the Colebrook equation:% - -%

  • 5.8K (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 4 Nov 2008

galerkin

Version 1.0.0 by Andrea La Spina

This repository contains the source code of galerkin, a versatile finite element framework for Matlab.

HDG method including an electrostatic initialization and a projection-based divergence correction method to enforce the Gauss laws [^7].### Porous Media 🧽- `Darcy_CG`: Solves the **Darcy law** with the

  • 21 (All time)
  • 4 (Last 30 days)
  • 5.0 / 5
  • Community
  • 9 Nov 2025

colebrook(R,K)

Version 1.0.0.0 by Alberto Hernandez

Holbrook white func

function F = colebrook(R,K) % F = COLEBROOK(R,K) fast, accurate and robust computation of the % Darcy-Weisbach friction factor F according to the Colebrook equation: % - - % 1 | K 2.51 | % ---------

  • 100 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 26 Sep 2017

the viscous friction of physical servovalve controlled

Version 1.0.0 by Prashant

the viscous friction of physical servovalve controlled hydraulic cylinder with MATLAB

estimate the value of viscous friction in a hydraulic cylinder:Empirical Model:One commonly used model to estimate viscous friction is the Darcy-Weisbach equation, which relates the pressure drop and flow

  • 9 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 18 Jul 2023

Velocity and pressure profile in pipes

Version 1.0.1 by Adrian Quesada

The Velocity Profile and Pressure Drop Plotting App is a powerful and user-friendly tool designed to assist students in analyzing fluid

of velocity profile for laminar flow - Pressure drop calculation using Darcy–Weisbach - Graphical visualization of velocity profiles - Flow parameters and conditions configuration - Interactive and

  • 73 (All time)
  • 3 (Last 30 days)
  • -- / 5
  • Community
  • 11 Aug 2025

Video processing for permeability characterisation

Version 1.1.0.0 by Rob Pierce

Optical flow front tracking and permeability calculations for radial 2D fabric testing

such that a quasi-isotropic permeability value can be calculated based on Darcy's law.The results can also be plot in relation to traditional 3-direction methods for permeability characterisation, and

  • 348 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 7 Oct 2014

ITPM

Version 1.0.2 by Arash Rabbani

Image-based throat/tube Permeability Model

: when put as 1 it will shows the LBM convergence charts and if set to zero it wontOutput: Absolute Permeability of throat/tube in DarcyThe LBM section is adopted from this source: Haslam, I. W., Crouch, R

  • 246 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 10 Oct 2022

Finite volume lab for nonlinear shallow water equations

Version 1.0.0 by Dr. Denys Dutykh

A numerical wave tank for long wave models (dispersive and non-dispersive) based on the finite volume method. The goal is to test various mo

(`manning.m`) * Darcy-Weisbach Friction (`darcy_weisbach.m`) with optional Colebrook-White formula (`colebrook_white.m`) * Extensible framework for adding custom friction models* **Numerical Fluxes

- Calculate Darcy friction factor 'f' using the Colebrook-White equation.
  • 15 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 29 May 2025

2D Porous Flow Chemistry

Version 0.1.0 by Lyra Ladshaw

This is a repository for porous flow models using Matlab's PDE Toolbox. See the GitHub page for full set of equations from the README.

flowThermal balance of the fluid phaseMass balance for chemicals in the fluid phaseRequirementsMATLABPDE ToolboxEquation SetPressure driven Darcy flow$$ \nabla{ ( K \cdot \nabla{P} ) } = 0 $$$$ \vec{v} = -K

  • 73 (All time)
  • 3 (Last 30 days)
  • -- / 5
  • Community
  • 21 Aug 2023

The Runoff Potential Index: Upland-lowland differentiation

Version 1.0.0 by Edgar Steven Correa

This MATLAB toolbox implements a 3D physics-based simulation for surface water runoff analysis, designed to support the Runoff Potential

- : discrete water flow from terrain contact layer to neighbors
  • 12 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 11 Jun 2025

Learning Engineering with GenAI

This interactive courseware module explores the fundamentals of generative AI and how it can help to solve engineering challenges.

  • 33 (All time)
  • 23 (Last 30 days)
  • -- / 5
  • Community
  • 22 May 2026