USER_PUNCH/USER_GRAPH > SELECTED_OUTPUT

SELECTED_OUTPUT with species percentages defined in USER_PUNCH

(1/1)

bekimball:
I am using SOLUTION_SPREAD to speciate a large number of water samples. I would like to use USER_PUNCH to look at the percentage of a given species of the total for that species. Here is an example of my SELECTED_OUTPUT and USER_PUNCH blocks for arsenate [As(5)] species.

SELECTED_OUTPUT
        -file XYZ.xls
        -reset false
        -solution true

USER_PUNCH
   -headings HAsO4-2 MgHAsO4 CaHAsO4 NaAsO4-2 H2AsO4- Description
   -start
10 REM calculate species percentages
20 PUNCH (TOT("HAsO4-2")/TOT("As(5)"))*100
30 PUNCH (TOT("MgHAsO4")/TOT("As(5)"))*100
40 PUNCH (TOT("CaHAsO4")/TOT("As(5)"))*100
50 PUNCH (TOT("NaAsO4-2")/TOT("As(5)"))*100
60 PUNCH (TOT("H2AsO4-")/TOT("As(5)"))*100
70 PUNCH DESCRIPTION
   -end

This seems like a straightforward calculation, but my output file gives me zero values where I want the percentages to be. Am I missing something?

Thanks in advance for any advice.

dlparkhurst:
Use MOL for aqueous (or surface or exchange) species; TOT for total concentration of elements and element redox states.


--- Code: ---20 PUNCH (MOL("HAsO4-2")/TOT("As(5)"))*100

--- End code ---

bekimball:
That worked! Thank you.

Navigation

[0] Message Index

Go to full version