Cdspeciation(logspecies).ppi

SPECIATION
  calculationType                      species             # Cd speciation as a function of pH - log c vs pH
  calculationMethod                    1
  mainSpecies                          Cd
  xmin                                 -13.0               # range of logH
  xmax                                 -6.0
  resolution                           100

PLOT
  plotTitle                            "log species concn vs pH<br>(using logspeciesvsph.inc)"
  ytitle                               "log concentration (mol/kgw)"
  labelSize                            1.7                 # controls the size of the key text
  pxmax                                13                  # sets upper limit on x-axis
  customXcolumn                        2                   # x-column is second column
  legendTextSize                       1.3                 # reduce the size of the legend (key) text
  extraText                            "extratextlogCdspeciation.dat"  # places the legend inside the plot

CHEMISTRY

include 'logspeciesvsph.inc'                               # contains the logic for outputting the expected x-axis, y-axis (log c) pairs expected by 'species' plot type

PHASES
Fix_H+
   H+ = H+
   log_k 0.0
SOLUTION 1
   temp      25
   pH        7                                             # pH just for initial solution concentration
   units     mol/kgw
   density   1
   Cd        1e-4                                          # total Cd
   Cl        2e-3
   Na        0.1
   N(5)      0.1 charge                                    # NaNO3 background electrolyte
END

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