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 »
  • Processes »
  • Mixing »
  • Unmixing does not work
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: Unmixing does not work  (Read 9645 times)

MichaelZ20

  • Top Contributor
  • Posts: 174
Unmixing does not work
« on: 19/04/25 09:21 »
Hi David!
Unmixing does not work now. Running the attached file produces the following WARNING: "2 delta equal NaN".
With PfW there is no problem.
Is it possible to fix the problem?
Code: [Select]
SOLUTION 1 
-units mmol/kgw
pH 7 charge 
density 1 calculate
Na  100
Cl  100
water 1 kg       
END

SOLUTION 2 Pure water
pH 7 charge
density 1 calculate
END

MIX 1           
1   1.0
2  -0.9         
END
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4296
Re: Unmixing does not work
« Reply #1 on: 19/04/25 17:00 »
Yeah, that looks like a bug. Use the following instead, and I'll see if I can fix the error in the next release.

Code: [Select]
SOLUTION 1
-units mmol/kgw
pH 7 charge
density 1 calculate
Na  100
Cl  100
water 1 kg       
END

SOLUTION 2 Pure water
pH 7 charge
density 1 calculate
END

SOLUTION_MIX 1           
1   1.0
2  -0.9   
END
RUN_CELLS
-cell 1     
END
Logged

MichaelZ20

  • Top Contributor
  • Posts: 174
Re: Unmixing does not work
« Reply #2 on: 19/04/25 18:12 »
Thank you, David!
What is the difference between MIX and SOLUTION_MIX?
How does the SOLUTION_MIX work in this case?
« Last Edit: 19/04/25 18:29 by MichaelZ20 »
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4296
Re: Unmixing does not work
« Reply #3 on: 19/04/25 19:39 »
SOLUTION_MIX does not automatically perform a reaction calculation, whereas MIX does.

The logic for mixing should be the same between the two, but is not. I will fix it so that both perform the same mixing. However, MIX will still generate a reaction calculation in the output file, whereas SOLUTION_MIX simply generates a new solution internally, which can be used in subsequent calculations.
Logged

MichaelZ20

  • Top Contributor
  • Posts: 174
Re: Unmixing does not work
« Reply #4 on: 19/04/25 19:49 »
Thank you, David!
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Processes »
  • Mixing »
  • Unmixing does not work
 

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