Entropy generation, lost work — a TI-84 Plus CE program
ENTGEN is a TI-BASIC program for the TI-84 Plus CE. Adiabatic mixing of two streams or heat transfer across a temperature gap: entropy generated and the work destroyed (Gouy-Stodola).
What it asks for and what it shows
It asks for 6 values at its prompts, after you pick option 1 from its menu. In the example below it shows T MIX K, SGEN, W LOST.
Example run
One of its oracle test cases: “mixing: hot and cold water”. The inputs are typed in order, and the results are the values the case expects on the screen.
| Step | Value |
|---|---|
| You enter | |
| Menu | option 1 |
| Input 1 | 2 |
| Input 2 | 350 |
| Input 3 | 3 |
| Input 4 | 300 |
| Input 5 | 4.18 |
| Input 6 | 298 |
| The screen shows | |
T MIX K= | 320 |
SGEN= | 0.06015540842 |
W LOST= | 17.92631171 |
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 23 checks.
How E-Code checks every program
Run it or put it on your calculator
- Open the library in the TI-84 Plus CE calculator and pick “Entropy generation, lost work” (ENTGEN).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- Air-standard Otto, Diesel, Brayton
- Polytropic process, ideal gas
- Real gas: van der Waals, Redlich-Kwong
- Chemical equilibrium: N2O4 <-> 2NO2
- RC circuit charging transient
All TI-84 Plus CE engineering programs · All TI-84 Plus CE programs