Am 06.02.13 23:01, schrieb Ivan M:
> Hi all,
>
> I'm trying to create more than one instance of IPhreeqc with CreatePhreeqc
> call, but it seems that this does not work - only one instance of IPhreeqc
> seems to be able to be created in the same program. Is this correct?
With PhreeqPy you can make several instances of phreeqpy.phreeqc_dll.IPhreeqc.
Each instance uses a different IPhreeqc instance in the background and
keeps track of the id. For example:
from phreeqpy.iphreeqc.phreeqc_dll import IPhreeqc
ipc1 = IPhreeqc()
ipc2 = IPhreeqc()
ipc1.load_database('databases1.dat')
ipc2.load_database('databases2.dat')
HTH,
Mike
>
> If so, what is the best approach to create several solutions, each one with the
> same elements and species but with different concentrations, and the
> concentrations changing by external calls?
>
> Cheers
> _________________________________________
> Ivan S.P. Marin, PhD
>
> Postdoctoral Associate
> D�partement de g�ologie et de g�nie g�ologique
> Pavillon Adrien-Pouliot, local 3744
> 1065. ave de la M�decine
> Universit� Laval
> Qu�bec (Qu�bec) Canada
> <mailto:
ivan.silvestre-...@ulaval.ca>