thermodynamic-solubility
A software implementation of a couple of my easily iterable solubility equations.
Compiling
On GNU/Linux
You probably have the GNU C Compiler at your disposal. Open a terminal, navigate to the source folder and execute
gcc -o solubility solubilidad_noionc.c -lm
from where the source code resides.
On Microsoft Windows
I have used code::blocks some time ago to start learning C. Use what works best for you as it shouldn't matter at this level.
Mathematics
My first equation
It's very specific. It's to be used for water 1+1 cation-anion solutions and 1+1 cation-anion solute without the common ion effect. I made it for quick calculator usage requiring just the ans function. Using a fuller expression of the... median activity method was it called? might be more useful.
Where:
- C stands for solution concentration in Molarity
- Kps stands for thermodynamic solubility constant, not solubility constant (e.g: Kps = activity1 * activity2 = α1[c1] * α2*[c2])
Common-ion effect
This effect adds a little bit of complexity but comes from almost the same three equations. Its processed form is as follows: