ELEC · Practical Guide 13 — Build a conditional budget in Scientific Worksheet
Build a chemical budget from six nitrogen observations at 0 rpm. Record the assumptions, check units, and publish the resulting worksheet data.
ELEC project · Practical GX-TXT guide 13 of 16.
Reproduction target: GX-TXT DEV112-P013. The original screenshots and recorded results document the historical ELEC session. A rerun on P013 has yet to be verified.
Module: Scientific Worksheet
Learning objective: Build a conditional budget in Scientific Worksheet
Prerequisites / input: Six 0 rpm N centres and declared constants
Expected output: Six-row conditional budget Workbook and published Dataset
Scientific background and reference results
The budget compares the equivalent chlorine source with two stoichiometric demands derived from the N response. It does not directly measure nitrogen fate. Work in a Session copy and create a Workbook and Dataset with new names.
Step-by-step procedure
- Open Scientific Worksheet and choose Data → Bind Dataset. Select
hal_fig3a_0rpm_six_interior_unweighted.measurement_1.curves, variablesxandy, destinationA1, six rows. A contains time in minutes, B the operational nitrogen-basis response inmg/L, rather than chlorine concentration. - Under Data → Columns / Ranges assign names and units to the first-row constants: M1
10 [mg/L]initial N; N10.5124310708631978 [1]; O10.12 [A]; P196485.33212 [A*s/mol]; Q10.0002 [m^3]; R170.906 [g/mol]Cl₂ molar mass; S114.0067 [g/mol]N molar mass. Use decimal points in English controls. - Enter these formulas in row 1:
| Cell | Formula | Meaning |
|---|---|---|
| C1 | =$N$1*$O$1*$R$1*A1/(2*$P$1*$Q$1) |
transferred source f₀ |
| D1 | =1.5*$R$1/$S$1*($M$1-B1) |
demand ν=1.5 |
| E1 | =4*$R$1/$S$1*($M$1-B1) |
demand ν=4 |
| F1 | =C1-D1 |
margin f₀, ν=1.5 |
| G1 | =C1-E1 |
margin f₀, ν=4 |
| H1 | =$O$1*$R$1*A1/(2*$P$1*$Q$1) |
ceiling f=1 |
| I1 | =H1-D1 |
margin f=1, ν=1.5 |
| J1 | =H1-E1 |
margin f=1, ν=4 |
- Select C1:J6 and use Edit → Fill down, retaining absolute
$references and leaving A/B and M:S unchanged. Ratio R/S converts from nitrogen basis to Cl₂ equivalents; native units handle minutes and seconds without another factor of 60. Retain negative margins too. C–J are ing/m³, numerically equal tomg Cl₂/Lon the stated basis.

- Save the named Workbook. Under Data → Publish Dataset choose X=A, Y=B–J, rows 1–6 and a new ID; historical Dataset is
hal_fig3a_conditional_chlorine_budget_01. In Curve Viewer add this Dataset and choosexand, as separate series,y2,y3,y4andy7. Responsey1is on a nitrogen basis and must not be presented as chlorine concentration. Save the Workspace and publish a separate Graph. - For a subsequent rate ratio use Data → Bind Dataset… and the
pmaxproduced by Dataset Expression:hal_chlorine_current_ceiling_pmax_01, variablepmax, destinationY, first row1, maximum1. Dataset Expression remains the producer of ceilingM*I/(2*F*V), rather than this Workbook.
The comparison is conditional on declared coefficients and assumptions. Observations are six unweighted digitized centres; margins must not be turned into gas measurements.
Working materials
Figure 3 digitized datasets (CSV) · Model and constraint datasets (CSV)
Other steps of this project
- ELEC 02 — Model hierarchy: effective kinetics, transfer and identifiability
- ELEC 03 — From fits to constraints: what does the chlorine balance reveal?
- ELEC 01 — What does the experiment measure? Nitrogen, chlorine and pH
- ELEC 07 — Sources, conclusions and tests that could distinguish the mechanisms
- ELEC 04 — Kinetics, speciation and transport: from local reaction to reactor response
- ELEC 06 — Where the numbers came from: GX-TXT, GNU Octave and reproducibility