PhreeqcUsers Discussion Forum

Beginners => PHREEQC Basics => Topic started by: PieterBertier on April 06, 2015, 08:49:40 PM

Title: Evaporating fluid while replenishing
Post by: PieterBertier on April 06, 2015, 08:49:40 PM
Dear PHREEQC users,

I'm trying to simulate an experiment in which a solution A is evaporating with a certain evaporation rate, while it is replenished with a different solution B, so the total volume of solution A stays the same.
I've been trying with different combinations of kinetics, reaction, mix and transport data blocks, but couldn't figure out anything that works.

Any suggestions?

thanks,
Pieter
Title: Re: Evaporating fluid while replenishing
Post by: dlparkhurst on April 06, 2015, 09:02:42 PM
Try using MIX and removing pure water. Note the volumes of the solutions are not precisely 1 liter.

SOLUTION 1 
   Na   1
   Cl   1
END
SOLUTION 2
   K  1
   Br 1
END
SOLUTION 3
END
MIX
  1  1.0
  2  0.2
  3  -0.2
END
Title: Re: Evaporating fluid while replenishing
Post by: PieterBertier on April 06, 2015, 09:25:23 PM
thanks for your reply,

I didn't realize I could subtract a different solution with MIX.

Is there a way I could do this as a function of time?

Pieter
Title: Re: Evaporating fluid while replenishing
Post by: dlparkhurst on April 06, 2015, 10:42:52 PM
You have to define every MIX.

If you want to do a lot of MIXes, then you probably need to use IPhreeqcCOM. You could script the MIXes with Excel (Visual Basic), Matlab, or Python. You could also script with the R version of Phreeqc.

You could program in C, Fortran, of C++ by using IPhreeqc.