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 »
  • Design of conceptual models »
  • Charged water turning into pure water
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: Charged water turning into pure water  (Read 5462 times)

Jicé

  • Guest
Charged water turning into pure water
« on: 16/02/16 10:41 »
Through Phreeqc 3.1.7.9213, I tried running a speciation using attached phreeqc file, and my water is turning into pure water, making some species disappear.

Does anybody reproduce this bug? Is there any explanation (high concentrations, etc...)?

Thanks!

Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4213
Re: Charged water turning into pure water
« Reply #1 on: 16/02/16 19:13 »
The issue is in the conversion from /L or /kgs to /kgw. PHREEQC sums the mass of solutes and subtracts from 1 to determine the mass of water. With your extreme concentrations, this difference is negative, and the molalities are all set to negative numbers, which are then censored to zero. In the next version, I will check for the negative mass of water and write an error message.

The fundamental problem is that PHREEQC will probably fail to converge with these really high concentrations.

More specifically, to avoid the negative mass of water calculation, the density must be greater. A density of 3 causes the solution to converge, albeit with concentrations of 27 molal.

You can avoid some of the conversion issues if you do not use /L concentrations. if you define the concentrations as /kgw there is no conversion involved except for a simple factor from mass to moles. However, I think you may easily be outside the range of applicability for the aqueous model, in addition to having numerical issues trying to solve the equations.

Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Conceptual Models »
  • Design of conceptual models »
  • Charged water turning into pure water
 

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