E-Code

Converging nozzle: choking and thrust — a TI-84 Plus CE program

By E-Code · updated

NOZZLE is a TI-BASIC program for the TI-84 Plus CE. Supply and back pressure decide choked or not: exit Mach, pressure and temperature, exit speed, mass flow and thrust for a perfect gas.

What it asks for and what it shows

It asks for 6 values at its prompts. In the example below it shows ME, PE KPA, TE K, VE M/S, M KG/S, THRUST, CHOKED.

Example run

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

StepValue
You enter
Input 1500
Input 2300
Input 3101.325
Input 420
Input 51.4
Input 6287
The screen shows
ME=1
PE KPA=264.1408939
TE K=250
VE M/S=316.9384798
M KG/S=2.333558561
THRUST=1065.226291
TextCHOKED

How it's checked

4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 30 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