Dear Dr. Parkhurst,I'm trying to compare hydrogen solubilities in pure water between numerical and experimental models. At higher pressures (eg., > 300 bars), the numerical values tend to deviate from the experimental. Please, is there a way i may fix these deviations up to about 600 bars? The attempted code is attached, thanks:[SOLUTION 1 temp 30.00 pH 7.0 charge units mol/kgw -water 1.0 #1.0 kg -redox pe pe 4.0GAS_PHASE 1 -fixed_pressure -pressure 592.154 -volume 10.0 -temperature 30.00 Hdg(g) 1.0REACTION_PRESSURE0.1 592.154 in 10USER_GRAPH 1 -headings Pressure Mol(Hdg) Gas_molar_volume -chart_title "Solubility of Hydrogen in Water as a Function of Pressure" -axis_titles "Pressure, atm", "Hdg(aq), mol/kgw" "Gas molar volume, L/mol" -plot_concentration_vs x -start10 GRAPH_X PRESSURE20 GRAPH_Y MOL("Hdg")30 GRAPH_SY GAS_VM -endENDcode]
PHASESHdg(g) Hdg = Hdg -analytic -9.3114e+0 4.6473e-3 -4.9335e+1 1.4341e+0 1.2815e+5 -T_c 33.2; -P_c 12.8; -Omega -0.225SOLUTION_SPECIESHdg = Hdg # H2 -Vm 6.52 0.78 0.12 # supcrt -dw 5.13e-9END
SOLUTION_SPECIESHdg = Hdg # H2 #-Vm 6.52 0.78 0.12 # supcrt -Vm 3 0.78 0.12 -dw 5.13e-9ENDPHASESHdg(g) Hdg = Hdg -analytic -9.3114e+0 4.6473e-3 -4.9335e+1 1.4341e+0 1.2815e+5 -T_c 33.2; -P_c 12.8; -Omega -0.225ENDSOLUTION 1 temp 53.35 pH 7.0 charge units mol/kgw pe 4.0 Na 5.0 Cl 5.0GAS_PHASE 1 -fixed_pressure -volume 20.0 Hdg(g) 1REACTION_PRESSURE5.595854922REACTION_TEMPERATURE53.35USER_GRAPH 1 -headings Pressure 326.50K #53.35C -axis_titles "Pressure, bar" "Hdg(aq), mol/kgw" "" -chart_title "Solubility of Hydrogen in NaCl as a Function of Pressure" -initial_solutions false -connect_simulations true -plot_concentration_vs x -plot_tsv_file HdgWater.txt -start10 GRAPH_X PRESSURE*1.01325 #convert pressures to Bars20 GRAPH_Y MOL("Hdg") / (TOT("water")*1000/GFW("H2O")) -endEND
SOLUTION_SPECIESHdg = Hdg # H2 #-Vm 6.52 0.78 0.12 # supcrt -Vm 3 0.78 0.12 -dw 5.13e-9ENDPHASESHdg(g) Hdg = Hdg -analytic -9.3114e+0 4.6473e-3 -4.9335e+1 1.4341e+0 1.2815e+5 -T_c 33.2; -P_c 12.8; -Omega -0.225ENDSOLUTION 1 temp 74.75 pH 7.0 charge units mol/kgw pe 4.0 Na 1.0 Cl 1.0GAS_PHASE 1 -fixed_pressure -volume 20.0 Hdg(g) 1REACTION_PRESSURE42.3459166 79.6180607 123.862818 168.497409 213.377745REACTION_TEMPERATURE74.75USER_GRAPH 1 -headings Pressure 347.9K #74.75C -axis_titles "Pressure [atm]" "Hdg(aq) [mol/kgw]" "" -chart_title "Solubility of H2 gas in 1.0M NaCl solution as a Function of Pressure" -initial_solutions false -connect_simulations true -plot_concentration_vs x -plot_tsv_file HdgWater.txt -start10 GRAPH_X PRESSURE*1.01325 #convert pressures to Bars20 GRAPH_Y MOL("Hdg") / (TOT("water")*1000/GFW("H2O")) -endEND
-----------------------------Solution composition------------------------------ Elements Molality Moles Cl 1.000e+00 1.000e+00 Hdg 2.457e-02 2.457e-02 Na 1.000e+00 1.000e+00----------------------------Description of solution---------------------------- pH = 6.297 Charge balance pe = -0.946 Adjusted to redox equilibrium Specific Conductance (uS/cm, 75oC) = 167782 Density (g/cm3) = 1.01389 Volume (L) = 1.04400 Viscosity (mPa s) = 0.42618 Activity of water = 0.966 Ionic strength (mol/kgw) = 1.000e+00 Mass of water (kg) = 1.000e+00 Total alkalinity (eq/kg) = -2.068e-16 Temperature (oC) = 74.75 Pressure (atm) = 42.35 Electrical balance (eq) = 2.079e-13 Percent error, 100*(Cat-|An|)/(Cat+|An|) = 0.00 Iterations = 8 Total H = 1.110124e+02 Total O = 5.550622e+01----------------------------Distribution of species---------------------------- Log Log Log mole V Species Molality Activity Molality Activity Gamma cm3/mol OH- 7.244e-07 3.998e-07 -6.140 -6.398 -0.258 -2.02 H+ 6.958e-07 5.047e-07 -6.157 -6.297 -0.139 0.00 H2O 5.551e+01 9.656e-01 1.744 -0.015 0.000 18.44Cl 1.000e+00 Cl- 1.000e+00 5.807e-01 -0.000 -0.236 -0.236 18.90 HCl 2.860e-08 7.621e-08 -7.544 -7.118 0.426 (0) H(0) 1.400e-14 H2 7.002e-15 8.815e-15 -14.155 -14.055 0.100 28.56Hdg 2.457e-02 Hdg 2.457e-02 3.094e-02 -1.610 -1.510 0.100 13.83Na 1.000e+00 Na+ 1.000e+00 7.000e-01 0.000 -0.155 -0.155 1.05O(0) 0.000e+00 O2 0.000e+00 0.000e+00 -50.675 -50.575 0.100 32.86
SOLUTION_SPECIESHdg = Hdg # H2 #-Vm 6.52 0.78 0.12 # supcrt -Vm 3 0.78 0.12 -dw 5.13e-9ENDPHASESHdg(g) Hdg = Hdg -analytic -9.3114e+0 4.6473e-3 -4.9335e+1 1.4341e+0 1.2815e+5 -T_c 33.2; -P_c 12.8; -Omega -0.225ENDSOLUTION 1 temp 74.75 pH 7.0 charge units mol/kgw pe 4.0 Na 1.0 Cl 1.0GAS_PHASE 1 -fixed_pressure -volume 20.0 Hdg(g) 1REACTION_PRESSURE42.3459166 #79.6180607 123.862818 168.497409 213.377745REACTION_TEMPERATURE74.75USER_GRAPH 1 -headings Pressure 347.9K #74.75C -axis_titles "Pressure [atm]" "Hdg(aq) [mol/kgw]" "" -chart_title "Solubility of H2 gas in 1.0M NaCl solution as a Function of Pressure" -initial_solutions false -connect_simulations true -plot_concentration_vs x #-plot_tsv_file HdgWater.txt -start10 GRAPH_X PRESSURE*1.01325 #convert pressures to Bars20 GRAPH_Y MOL("Hdg") -endEND
----------------------------------User print----------------------------------- Temperature Pressure H2(aq),mol/kgw 7.4750e+01 4.2346e+01 2.4574e-02
Hdg 2.457e-02 2.457e-02
x 347.9K 4.2907e+01 4.4272e-04 8.0673e+01 8.2702e-04 1.2550e+02 1.2779e-03 1.7073e+02 1.7283e-03 2.1621e+02 2.1775e-03