#must use DATABASE pitzer.dat
TITLE Example 17.--Inverse modeling of Black Sea water evaporation
SOLUTION 1  Black Sea water
        units   mg/L
        density 1.014
        pH      8.0     # estimated
        Ca      233
        Mg      679
        Na      5820
        K       193
        S(6)    1460
        Cl      10340
        Br      35
        C       1       CO2(g) -3.5
SOLUTION 2  Composition during halite precipitation
        units   mg/L
        density 1.271
        pH      5.0     # estimated
        Ca      0.0 
        Mg      50500
        Na      55200
        K       15800
        S(6)    76200
        Cl      187900
        Br      2670
        C       1       CO2(g) -3.5
INVERSE_MODELING
        -solution 1 2
        -uncertainties .025
        -range
        -balances 
                Br
                K
                Mg
        -phases
                H2O(g)  pre
                Calcite pre
                CO2(g)  pre
                Gypsum  pre
                Halite  pre
                Glauberite pre
                Polyhalite pre
END
