PhreeqcUsers Discussion Forum
Click here to donate to keep PhreeqcUsers open

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 

  • Forum Home
  • Login
  • Register

  • PhreeqcUsers Discussion Forum »
  • USER_PUNCH/USER_GRAPH »
  • SELECTED_OUTPUT »
  • How to generate all the speciation automaticaly
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: How to generate all the speciation automaticaly  (Read 201 times)

IliasBouchkira

  • Top Contributor
  • Posts: 40
How to generate all the speciation automaticaly
« on: July 27, 2023, 09:01:43 AM »
Hi everyone

Is there any way to use USER_PUNCH or SELECTED_OUTPUT to generate the speciation of all the elements once? I am using currently USER_PUNCH and I need to put PUNCH ACT("Na+"), PUNCH ACT("Cl-")... for every element and it requires changing headings as well. and once I change the solution I need to do it again and this takes a lot of time...

Many thanks in advance

Ilias.
Logged

dlparkhurst

  • Top Contributor
  • Posts: 3174
Re: How to generate all the speciation automaticaly
« Reply #1 on: July 27, 2023, 02:31:19 PM »
SELECTED_OUTPUT has identifiers -molalities and -activities, but you do need to list the aqueous species that you want. You can include a comprehensive list; if elements of the aqueous species are not present, a molality of 0 will be printed and a log activity of -1000.

You can also use the Basic function SYS to print all active species, although you cannot add headings. I would write species name followed by molality or activity or both in the following columns.

Code: [Select]
SOLUTION
Na 1
Cl 1
SELECTED_OUTPUT 1
-reset false
USER_PUNCH 1
10 t = SYS("aq", count , name$ , type$ , moles)
20 FOR i = 1 TO count
30   PUNCH PAD$(name$(i), 15), ACT(name$(i)), MOL(name$(i))
40 NEXT i
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • USER_PUNCH/USER_GRAPH »
  • SELECTED_OUTPUT »
  • How to generate all the speciation automaticaly
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines | Terms and Policies
  • XHTML
  • RSS
  • WAP2