ELEC · Practical Guide 12 — Apply speciation to the observed pH series

by Giux Electrochemistry, GX-TXT 2 min read

Apply a saved ideal NH₃ fraction definition to the observed pH dataset. Check the output fractions and confirm that the original sampling times are retained.

ELEC project · Practical GX-TXT guide 12 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: Dataset Expression

Learning objective: Apply speciation definitions to observed pH

Prerequisites / input: Observed pH Dataset and saved NH₃ definition

Expected output: Time-aligned ideal NH₃ fractions

Scientific background and reference results

Chemical fractions depend on pH and equilibrium assumptions. Dataset Expression applies a saved definition to observed rows, retaining original time; it does not turn these fractions into measurements of rates or gas loss.

Step-by-step procedure

  1. Open Dataset Expression and select hal_fig3b_100rpm_bulk_ph_n_present_01.measurement_1.curves. Bind pH to variable y [1] and retain original coordinate x [min].
  2. Choose the ideal γ=1 INI file as Saved definition file. Verify formula 1/(1+10^(pKaN-pH)/gammaNH4), pH as series y [1], pKaN=9.251 [1] and gammaNH4=1 [1]. Set Retain source coordinate to x [min], output 1 and no selection. Check the definition and bindings before applying: the definition file and input Dataset have separate roles.
  3. Evaluate and publish with a new ID. Historical ideal output is hal_fig3b_100rpm_n_present_alpha_nh3_ideal_01: each fraction corresponds to the same row’s pH and retains its time.
  4. The three previously produced Cl₂, HOCl and OCl fractions use the same original rows. Repeating their evaluation requires the respective retained definitions and verification of symbols, bindings and units; undocumented formulas are not substituted here. Fractions are dimensionless. The NH₃ fraction concerns only NH₃/(NH₃+NH₄⁺), rather than the whole TNT830 signal, which can include chloramines.
  5. To use initial nitrogen 10 mg N/L as molarity, divide the N mass by 14.0067 g/mol after making mass and volume units consistent. Do not divide mg N/L by the whole NH₃ molecule’s molar mass. Keep γ=1 and γ=0.78 scenarios distinct.
Input pH series
The nitrogen-present series contains input pH values associated with original times. · Retained original GX-TXT/ELEC documentation image; source and hash in metadata. Atrashkevich et al. (2025), DOI 10.1016/j.watres.2025.123732 for any publication pixels. View at full resolution
Expression configuration
Historical screenshot of another expression, useful for recognizing bindings and units; it does not represent the NH₃ definition. · Retained original GX-TXT/ELEC documentation image; source and hash in metadata. Atrashkevich et al. (2025), DOI 10.1016/j.watres.2025.123732 for any publication pixels. View at full resolution

Evaluations are pointwise and conditional. Dedicated fraction plots had not been published at closure; existing Datasets do not establish their completion. P013 is NOT_RUN.

Working materials

Figure 3 digitized datasets (CSV) · Model and constraint datasets (CSV) · ELEC working files (ZIP)

#Dataset Expression #Electrochemistry #GX-TXT #pH #speciation

Other steps of this project