#===================Script for SURFACE Keyword datablock for Phreeqc======================================#t.write('SURFACE %d' %(n+1) + '\n')## NEM does not consider the electric double layer, while other models calculate it.if SCM_type == "NEM": t.write(' ' + '-no_edl' + '\n')else: t.write(' ' + '#-no_edl' + '\n') ## Comment out -no_edl to indicate the retention of the electric double layer.## Specify which SOLUTION module to balance witht.write(' ' + '-equilibrate with SOLUTION %d' %(n+1) + '\n') ## The unit of surface sites adopts the density system (mol/m2).t.write(' ' + '-site_units density' + '\n')# Write the information of surface complexation sites.t.write(' ' + 'Fe_wOH ' + ' %0.5f' % orgdata_temp.Mineralsites[n] + ' %0.5f' % orgdata_temp.MineralSA[n] + ' %0.5f' % orgdata_temp.Mineral_val[n] + '\n\n')if SCM_type == "CCM": t.write(' ' + '-ccm !capac! ' + '\n')
if SCM_type == "CCM": t.write(' ' + '-ccm !capac! ' + '\n') elif SCM_type == "TLM": t.write(' ' + '-cd_music' + '\n') t.write(' ' + '-capacitance !capac1! !capac2!' + '\n') # Using defined capac1 and capac2 placeholders
if SCM_type == "CCM": t.write(' ' + '-ccm !capac! ' + '\n') elif SCM_type == "TLM": t.write(' ' + '-capacitances !capac1! !capac2!' + '\n')