PhreeqcUsers Discussion Forum

Processes => Mixing => Topic started by: rudolff16 on May 15, 2020, 07:16:58 AM

Title: Results of mixing
Post by: rudolff16 on May 15, 2020, 07:16:58 AM
Dear all,

how to summerize resulting totals of 15 mixing steps in one single .csv file?
I usually use SELECTED_OUTPUT Keyword for that:
SELECTED_OUTPUT 1
    -file                 .....csv
    -time                 true
    -pH                   true
    -totals               Na  K  Ca  Mg  Cl  Al  Cd  Co  Cr  Cu  Fe  Hg  Mn
                             Ni  Pb  Zn
hier how I started the Simulation:

SOLUTION 0 
    temp      13.9
    pH        4.5
    pe        5.408
    units     mg/l
    density   1.0920
    Na        17194
    K         5518
    Ca        999
    Mg        15493
    Cl        63485 
    Alkalinity 24 as HCO3
    S(6)      18703 as SO4
    Al        14
    Pb        0.15
    Cu        0.470
    Ni        0.850
    Co        0.13
    Mn        38
    Zn        2.6
    Fe        0.067
    Cd     0.02
    -water    1.092 # kg 
END

EXCHANGE 0
    AlX3    0.00999
    CaX2    0.22176
    FeX2    0.003915
    KX      0.04392
    MgX2    0.039735
    MnX2    9e-05
    NaX     0.00567
    -equilibrate with solution 0
    -pitzer_exchange_gammas true
END

SOLUTION 1
    temp      11.9
    pH        7.2
    pe        5.77
    units     mg/l
    density   0.999
    Na        14.5
    K         5.53
    Ca        128
    Mg        34.7
    Cl        127
    Alkalinity 256 as HCO3
    S(6)      96.5 as SO4
    Fe        0.05
    Al        0.01
    Zn        0.04
    Cd        0.0001
    -water    1 # kg
EQUILIBRIUM_PHASES 1
    Alunite   0 0
    Calcite 0 0
    Hematite 0 0
    Gypsum 0 0
    Muscovite 0 0
    K-feldspar    0 1e-6
SAVE SOLUTION 2     
END

EXCHANGE 1
    AlX3    0
    CaX2    0.956633333
    FeX2    0.0055
    KX      0.442933333
    MgX2    0.421666667
    MnX2    0.000366667
    NaX     0.044
    -equilibrate with solution 2
    -pitzer_exchange_gammas true
END

MIX 0
    0    0.01 
    2    0.99
use EQUILIBRIUM_PHASES 1
use exchange 1
SAVE SOLUTION 2
END


MIX 1
    0    0.05
    2    0.95
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 3
END

MIX 2
    0    0.1
    2    0.9
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 4
END

MIX 3
    0    0.15
    2    0.85
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 5
END

MIX 4
    0    0.2
    2    0.8
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 6
END

MIX 5
    0    0.25
    2    0.75
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 7
END


MIX 6
    0    0.3
    2    0.7
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 8
END

MIX 7
    0    0.35
    2    0.65
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 9
END

MIX 8
    0    0.40
    2    0.60
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 10
END

MIX 9
    0    0.45
    2    0.55
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 11
END

MIX 10
    0    0.50
    2    0.50
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 12
END

MIX 10
    0    0.55
    2    0.45
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 12
END

MIX 11
    0    0.6
    2    0.4
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 12
END

MIX 12
    0    0.6
    2    0.4
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 12
END

MIX 13
    0    0.65
    2    0.35
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 12
END

MIX 14
    0    0.7
    2    0.3
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 12
END

MIX 15
    0    0.75
    2    0.25
use EQUILIBRIUM_PHASES 1
USE Exchange 1
SAVE SOLUTION 12
Title: Re: Results of mixing
Post by: dlparkhurst on May 15, 2020, 09:25:27 AM
If you include your SELECTED_OUTPUT definition between END and MIX 0, you will get a line of output in the csv file for each of the 15 MIX calculations.