PhreeqcUsers Discussion Forum

Registrations currently disabled due to excessive spam. Please email phreeqcusers at gmail.com to request an account.
Welcome Guest
 

  • Forum Home
  • Login
  • Register

  • PhreeqcUsers Discussion Forum »
  • Conceptual Models »
  • Database selection and modification »
  • Defining species for Pitzer parameter
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: Defining species for Pitzer parameter  (Read 1465 times)

Abalo

  • Contributor
  • Posts: 3
Defining species for Pitzer parameter
« on: 10/09/23 05:30 »
Hello All,
I am trying to create a database with Pitzer parameters.
When I run the script I get the following error:
"ERROR: Species for Pitzer parameter not defined in SOLUTION_SPECIES, CO3--"
The "CO3--" is defined in my script. So, I am not sure how to solve this issue.
Here is my script:
Code: [Select]
SOLUTION_MASTER_SPECIES
    #Acetate  Acetate-       0.0     C2H3O2        59.
    H             H+              -1     H               1.008
    H(0)          H2               0     H             
    H(1)          H+              -1     0             
    E             e-               0     0               1.008
    O             H2O              0     O               16
    O(0)          O2               0     O             
    O(-2)         H2O              0     0 
   #Oxg           Oxg              0     Oxg             32   
    Cl            Cl-              0     Cl              35.4527
    Cl(-1)   Cl-    0 Cl
    Cl(7)   ClO4-    0 Cl     
    C             HCO3-            1     HCO3            12.0110
    C(+4)         HCO3-            1     HCO3
    S           SO4--            0     SO4             32.066
    S(+6)   SO4--            0     SO4

SOLUTION_SPECIES
H+ = H+
    log_k     0
    -gamma    9 0

e- = e-
    log_k     0

H2O = H2O
    log_k     0

HCO3- = HCO3-
    log_k     0

Cl- = Cl-
    log_k     0

SO4-- = SO4--
    log_k     0

H2O = H2 + 0.5 O2
    #log_k   44.6575

2H2O = O2 + 4H+ + 4e-
    log_k     -86.08
    delta_h   134.79 kcal

Cl- + 2.00 O2 =  1.00 ClO4-
    #log_k = 21.5057

HCO3- = CO3-- + H+
    log_k    10.3392

SO4-- + H+ = HSO4-
log_k    1.979

PITZER
-B0
H+    HCO3-    0.0296        0           0           0.996E-3
H+    CO3--    0.0296        0           0           0.996E-3
#H+    SO4--    0.0296        0           0           0.996E-3
#H+    HSO4-    0.0296        0           0           0.996E-3
END

Thanks
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: Defining species for Pitzer parameter
« Reply #1 on: 10/09/23 17:25 »
The reader for Pitzer parameters is not too smart. You will need to use the form "CO3-2", and in general,  -n or +n, if n is greater or equal to 2.
Logged

Abalo

  • Contributor
  • Posts: 3
Re: Defining species for Pitzer parameter
« Reply #2 on: 10/09/23 20:23 »
That solves the issue, but I get this warning:
"WARNING: Redefinition of parameter, H+ CO3-2".
Is this something to worry about?
Thanks very much.
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: Defining species for Pitzer parameter
« Reply #3 on: 10/09/23 21:31 »
You are defining the same Pitzer parameter twice. If you are using a database plus these definitions, the other definition may be in the database. The last definition encountered (input file after database) will be used. Note that all definitions in the database that are not redefined will be included in the calculation.
Logged

Abalo

  • Contributor
  • Posts: 3
Re: Defining species for Pitzer parameter
« Reply #4 on: 10/09/23 22:08 »
Thanks for the explanation.
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Conceptual Models »
  • Database selection and modification »
  • Defining species for Pitzer parameter
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
  • XHTML
  • RSS
  • WAP2