PHASESFix_H+ H+ = H+ log_k 0NaCl NaCl = Cl- + Na+ log_k -20ENDSOLUTION 1 temp 25 pH 7 charge units mmol/kgw density 1 Ca 1 Mg 1 Na 1 Tartarate 10 -water 1 # kgSELECTED_OUTPUT 1-file tartrate_input.pqi-reset falseUSER_PUNCH 110 FOR ph = 2 to 14 step 0.2520 PUNCH "USE solution 1", EOL$30 PUNCH "EQUILIBRIUM_PHASES 1", EOL$40 PUNCH "NaCl 0 NaOH 10", EOL$50 PUNCH "Fix_H+ ", -ph, " HCl 10", EOL$60 PUNCH "END", EOL$70 NEXT phENDSELECTED_OUTPUT 1-active falseENDUSER_GRAPH 1 -headings pH CaTartrate CaHTartarate+ MgTartrate MgHTartarate+ -axis_titles "pH" "Percent metal" "" -axis_scale x_axis 2 14 auto auto -axis_scale y_axis auto 100 auto auto -initial_solutions false -connect_simulations true -plot_concentration_vs x -start10 GRAPH_X -LA("H+")20 GRAPH_Y 100*MOL("Ca(Tartarate)")/TOT("Ca")30 GRAPH_Y 100*MOL("CaH(Tartarate)+")/TOT("Ca")40 GRAPH_Y 100*MOL("Mg(Tartarate)")/TOT("Mg")50 GRAPH_Y 100*MOL("MgH(Tartarate)+")/TOT("Mg") -endENDINCLUDE$ tartrate_input.pqi
SPECIATION jobTitle "Tartarate-H2O" # aqueous, minerals and surface species database "MINTEQ.v4.dat" calculationType species calculationMethod 1 mainSpecies Tartarate Ca Mg Al xmin 1.0 xmax 9.0 resolution 250 PLOT plotTitle "Speciation diagram for the system Tartarate-metals-H<sub>2</sub>O at 25°C <br> Tartarate 10 mmol/L Ca, Mg, Al all at 5 mmol/l, H2SO4 added" xtitle pH pymin 0 pymax 100.0 LineWidth 0.9 pdf true png truetracksymbolcolor black numericTags <x> = -<x_axis>CHEMISTRYinclude 'ht1.inc' # ht1.inc treats all Hfo-As surface species as separate species for plottinginclude 'speciesvsph.inc'PHASESFix_H+ H+ = H+ log_k 0.0SOLUTION 1temperature 25 pH 9 Tartarate 10 Ca 5 Mg 5 Al 5 ENDUSE solution 1EQUILIBRIUM_PHASES 1 Fix_H+ <x> H2SO4 10 -force_equality true O2(g) -10 0.5 # you might be able to eliminate this line END