Cdspeciation(species1).ppi

SPECIATION
  jobTitle                             "Speciation vs pH using 'species' plot type"
  calculationType                      species
  calculationMethod                    1
  mainSpecies                          Cd
  xmin                                 -13.0               # logH range
  xmax                                 -6.0
  resolution                           100

PLOT
  plotTitle                            "Cd speciation<br>(using speciesvsph.inc)"
  customXcolumn                        2                   # x-axis value is the second column - the first column is 'pH' (see out file)
  pxmax                                13                  # default is 14
  minimumYValueForPlotting             5.0                 # eliminates minor species
  legendTitle                          "Cd species"
  extraText                            "extratextCdspeciation.dat"

CHEMISTRY

include 'speciesvsph.inc'                                  # contains the logic for outputting the expected x-axis, y-axis (%distr) pairs expected by 'species' plot type

PHASES
Fix_H+
   H+ = H+
   log_k 0.0
SOLUTION 1
   temp      25
   pH        7
   units     mol/kgw
   density   1
   Cd        1e-4
   Cl        2e-3
   Na        0.1
   N(5)      0.1 charge
END

USE solution 1
EQUILIBRIUM_PHASES
   O2(g)     -0.677  0.1
   Fix_H+  <x_axis>  NaOH 10
     -force_equality true
END