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 »
  • Beginners »
  • SELECTED_OUTPUT »
  • SELECTED_OUTPUT
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: SELECTED_OUTPUT  (Read 3256 times)

ehsan

  • Top Contributor
  • Posts: 41
SELECTED_OUTPUT
« on: 20/11/21 01:36 »
Hi
How to get activity coefficient carbon dioxide(aq) and water of the user_punch in SELECTED_OUTPUT?

« Last Edit: 20/11/21 09:01 by ehsan »
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: SELECTED_OUTPUT
« Reply #1 on: 20/11/21 14:49 »
USER_PUNCH.
Logged

ehsan

  • Top Contributor
  • Posts: 41
Re: SELECTED_OUTPUT
« Reply #2 on: 21/11/21 07:03 »
Code: [Select]
     SELECTED_OUTPUT ; -file  output; -reset  false; -ionic_strength  false
     USER_PUNCH
     10 s$ = s$  + STR$(GAMMA("HCO3-")) + STR$(ACT("H2O"))
     20 PUNCH s$
I used of ACT for activity coefficient of water and GAMMA for CO2 activity coefficient.
because GAMMA don't work for H2O
 
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: SELECTED_OUTPUT
« Reply #3 on: 21/11/21 14:26 »
Yes, the activity of water does not use the same approach of gamma * molality as all other aqueous species. Solvent water activity is essentially the mole fraction of water in the solution and the gamma is meaningless and set to 1 for ion association models.

For Pitzer and SIT databases, the osmotic coefficient is calculated and the activity of water is related to it by the relation, where mi is molality of the ith aqueous species and Mw is 18 g/mol:

ln(aw) = -(Σ mi · ϕ· Mw /1000)
« Last Edit: 21/11/21 14:28 by dlparkhurst »
Logged

ehsan

  • Top Contributor
  • Posts: 41
Re: SELECTED_OUTPUT
« Reply #4 on: 22/11/21 12:18 »
Thanks David
I use the Phreeqc database to model a mixture of CO2 brine and I need to get the solution(brine) activity coefficient and the CO2 activity coefficient from the Phreeqc output.
And I don't know how to do that.
Do i use GAMMA(HCO3-) or GAMMA(CO2) for CO2 activity coefficient, GAMMA(H2O) or GAMMA(H+) for solution?
« Last Edit: 22/11/21 12:32 by ehsan »
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: SELECTED_OUTPUT
« Reply #5 on: 22/11/21 16:09 »
As usual, I don't understand your question. GAMMA("H2O") is not a meaningful quantity in PHREEQC. The activity of water that is used in all mass-action equations, is simply ACT("H2O") or log activity LA("H2O"). If you want the solution activity coefficient of CO2(aq), it is GAMMA("CO2") or LG("CO2") for the log10 quantity.

The following relations exists among the Basic functions, where the second involves log10 quantities.

Code: [Select]
ACT("CO2") = GAMMA("CO2")*MOL("CO2")
LA("CO2") = LG("CO2") + LM("CO2")

The following fugacity relation for CO2(g) [fugacity is equal to SI("CO2(g)")] exists for the solution using Basic functions.

Code: [Select]
SI("CO2(g)") = LA("CO2") - LK_PHASE("CO2(g)")

At equilibrium, the fugacity of CO2(g) calculated from the solution is equal to the fugacity of CO2(g) in the GAS_PHASE, which is partial pressure of CO2(g) times the fugacity coefficient:

Code: [Select]
LK_PHASE("CO2(g)") = LA("CO2") - LOG10[PR_P("CO2(g)") * PR_PHI("CO2(g)")]

When defining a GAS_PHASE, the quantity defined is the pressure of CO2(g), here 100 atm.

Code: [Select]
GAS_PHASE
CO2(g) 100

Similarly with EQUILIBRIUM_PHASES, the quantity defined is log10 of the pressure of  CO2(g), 10^2 or 100 atm in this example. So, you are setting the pressure rather than the fugacity. With Peng-Robinson calculations (phreeqc.dat, Amm.dat, and pitzer.dat), pressure is not equal to fugacity; with all other databases, fugacity equals partial pressure.

Code: [Select]
EQUILIBRIUM_PHASES
CO2(g) 2
Logged

ehsan

  • Top Contributor
  • Posts: 41
Re: SELECTED_OUTPUT
« Reply #6 on: 29/11/21 08:22 »
Which keyword determines the water activity coefficient in USER_PUNCH?
« Last Edit: 29/11/21 08:25 by ehsan »
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4067
Re: SELECTED_OUTPUT
« Reply #7 on: 29/11/21 15:23 »
Here are two previous posts in this thread:

"The activity coefficient GAMMA("H2O") is not a meaningful quantity in PHREEQC. The activity of water that is used in all mass-action equations, is simply ACT("H2O") or log activity LA("H2O"). "
---------

"Yes, the activity of water does not use the same approach of gamma * molality as all other aqueous species. Solvent water activity is essentially the mole fraction of water in the solution and the gamma is meaningless and set to 1 for ion association models.

"For Pitzer and SIT databases, the osmotic coefficient is calculated and the activity of water is related to it by the relation, where mi is molality of the ith aqueous species and Mw is 18 g/mol:

ln(aw) = -(Σ mi · ϕ· Mw /1000) "
Logged

ehsan

  • Top Contributor
  • Posts: 41
Re: SELECTED_OUTPUT
« Reply #8 on: 30/11/21 10:07 »
Ok thank
Because I saw log10 (h20) = 0, I thought gamma h20 = 1.
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • SELECTED_OUTPUT »
  • SELECTED_OUTPUT
 

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