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 »
  • How to create a new database?
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: How to create a new database?  (Read 7980 times)

gelent

  • Contributor
  • Posts: 5
How to create a new database?
« on: 01/06/16 12:59 »
I create the file with :

SOLUTION_MASTER_SPECIES
Ag       Ag+            0.0     107.868         107.868
O(-2)    H2O            0.0     18.016
S(-2)    H2S            0.0     32.064

SOLUTION_SPECIES
H2O = H2O
        log_k           0.0

        Ag+ = Ag+
        log_k           0.0
       
        H+ = H+
        log_k           0.0
 
        H2S = H2S
        log_k           0.0

        Ag+ + H2O =Ag(OH) + H+
                log_k          -5.2
        Ag+ + H2S = AgH2S+
                log_k          3.91
        AgH2S+ =  AgHS + H+
                log_k          0.5
END

But The output said cannot read my database. How can I correct my database? Thanks in advance!
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4270
Re: How to create a new database?
« Reply #1 on: 01/06/16 20:51 »
Here is a minimal database for an ion association model, although you could remove the delta_H and analytical expressions. If you really want to make your own database, then you can add to it.

SOLUTION_MASTER_SPECIES
    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             

SOLUTION_SPECIES
H+ = H+
    log_k     0
    -gamma    9 0
e- = e-
    log_k     0
H2O = H2O
    log_k     0
H2O = OH- + H+
    -analytical_expression 293.29227 0.1360833 -10576.913 -123.73158 0 -6.996455e-005
    -gamma    3.5 0
2H2O = O2 + 4H+ + 4e-
    log_k     -86.08
    delta_h   134.79 kcal
2H+ + 2e- = H2
    log_k     -3.15
    delta_h   -1.759 kcal
END
Logged

gelent

  • Contributor
  • Posts: 5
Re: How to create a new database?
« Reply #2 on: 02/06/16 18:27 »
Thank you for your quick response!


Quote from: dlparkhurst on 01/06/16 20:51
Here is a minimal database for an ion association model, although you could remove the delta_H and analytical expressions. If you really want to make your own database, then you can add to it.

SOLUTION_MASTER_SPECIES
    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             

SOLUTION_SPECIES
H+ = H+
    log_k     0
    -gamma    9 0
e- = e-
    log_k     0
H2O = H2O
    log_k     0
H2O = OH- + H+
    -analytical_expression 293.29227 0.1360833 -10576.913 -123.73158 0 -6.996455e-005
    -gamma    3.5 0
2H2O = O2 + 4H+ + 4e-
    log_k     -86.08
    delta_h   134.79 kcal
2H+ + 2e- = H2
    log_k     -3.15
    delta_h   -1.759 kcal
END
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Conceptual Models »
  • Database selection and modification »
  • How to create a new database?
 

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