02 - Parametric Mixing

This example shows how to parameterize a Phreeqc Study for running a sensitivity analysis.

A range of water mixing ratios and temperatures are used as input to analyze their influence in Calcite and Dolomite Saturation Indices.

Studies

This project contains 2 Studies.

  • PhreeqcStudy: “study_ex2”

This study perform two solution mixing. The mixing factor is parameterized in order to get different mixings for different parameter values (from 0 to 1). The temperature is also paramaterized

Db used: “Phreeqc_dat” database

SOLUTION 1 
    units mol/kgw
    temp @{$temp_param$}@
    pH  8.1
    -water 1
    Ca 0.0000253
    Mg 0.0002
    C    0.0196
    Cl  6.988e-03 #charge
SAVE SOLUTION 1
END
SOLUTION 2
    units mol/kgw
    temp  @{$temp_param$}@
    pH  12.46
    -water 1
    
    Mg 0.2
    Ca 2.179e-02
    C   6.511e-07
    Cl  6.988e-03 #charge
SAVE SOLUTION 2
END
USE SOLUTION 1 
USE SOLUTION 2
MIX 0 
    1 @{$mix_fraction$}@
    2 @{$1-mix_fraction$}@
SAVE SOLUTION 3 
END 

/n
  • ParametricStudy: “Param Study”

Plots

This project contains 2 Plots.

  • Plot 1: “Saturation Indices (T = 10)”

Saturation Indices for different mixing ratios at T = 10 degC

SaturationIndices_op_T=10_cp_.svg
  • Plot 2: “Cation Species Surface”

Saturation Indices for different mixing ratios and temperatures

CationSpeciesSurface.svg