About:
Calculate the Ryznar Stability Index (RSI).
\begin{equation} RSI = 2 \times pH_s - pH \end{equation}
Module: WaterChemistry
\begin{equation} RSI = 2 \times pH_s - pH \end{equation}
Function: WATERCHEM_rsi(t,ph,tds,ca,hco3)
Parameters:
- t, temperature - ÂșC;
- ph, water pH
- tds, Total Dissolved Solids - mg/l;
- ca, concentration of calcium hardness, mg Ca/liter;
- hco3, concetration of HCO3- (alkalinity), mg CaCO3/liter.
Sample code:
from WaterChemistry import *
ph = 7.7 # water pH
tds = 300 # mg TDS/liter
ca = 50 # mg Ca/liter
hco3 = 100 # mg CaCo3/liter (Alkalinity)
t = 20 # oC
rsi = WATERCHEM_rsi(t,ph,tds,ca,hco3)
print("RSI:",rsi)
Result:
RSI: 8.128539459578171