E-Code

Pipe friction: Colebrook, Darcy-Weisbach — a TI-84 Plus CE program

By E-Code · updated

PIPEFR is a TI-BASIC program for the TI-84 Plus CE. Reynolds number, Darcy friction factor (Colebrook iterated; 64/Re when laminar) beside Haaland's explicit form, head loss and pressure drop.

What it asks for and what it shows

It asks for 6 values at its prompts. In the example below it shows V M/S, RE, F DARCY, F HAAL, HEAD M, DP KPA.

Example run

One of its oracle test cases: “water in commercial steel”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 120
Input 2150
Input 3100
Input 40.045
Input 5998
Input 61
The screen shows
V M/S=1.131768484
RE=169425.7421
F DARCY=0.0180813479
F HAAL=0.01785146995
HEAD M=0.7869655707
DP KPA=7.704691984

How it's checked

5 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 35 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE engineering programs · All TI-84 Plus CE programs