E-Code

Neutron diffusion: critical size, flux — a TI-84 Plus CE program

By E-Code · updated

NEUTDIF is a TI-BASIC program for the TI-84 Plus CE. One-group bare reactor: diffusion length, k-infinity, material buckling, critical size (slab, sphere or cylinder) with extrapolation distance, flux shape and peaking.

What it asks for and what it shows

It asks for 4 values at its prompts, after you pick option 1 from its menu. In the example below it shows L CM, KINF, BM2, SIZE CM, FLUX, PK/AVG.

Example run

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

StepValue
You enter
Menuoption 1
Input 11
Input 20.02
Input 30.03
Input 45
The screen shows
L CM=7.071067812
KINF=1.5
BM2=0.01
SIZE CM=27.15592654
FLUX=0.8775825619
PK/AVG=1.570796327

How it's checked

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