Outputting H2O?

32 views
Skip to first unread message

Sanskriti

unread,
Jul 28, 2025, 6:19:06 PMJul 28
to pflotran-users
Hello!

I was wondering if there was a way to output water activity in the .tec files. I tried putting it inside the Output block (also tried with the Chemistry Output block), but it is sadly not working. 

I would appreciate any help anyone could provide! I've attached the input file :)

Best,
Sanskriti
3_smaller_grid.in

Hammond, Glenn E

unread,
Jul 28, 2025, 11:30:47 PMJul 28
to pflotra...@googlegroups.com

Sanskriti,

 

I added the ability to output WATER_ACTIVITY_COEFFICIENT in the following branch:

 

https://bitbucket.org/pflotran/pflotran/branch/glenn/add-output-h2o-act-coef

 

Please give it a try. Note that you must add WATER_ACTIVITY to the main CHEMISTRY block for the code to calculate an activity coefficient for water. By default, it is not calculated.

 

CHEMISTRY

  …

  ACTIVITY_WATER

  OUTPUT

    …

    WATER_ACTIVITY_COEFFICIENT

/

 

Also, do you need activity coefficients for the secondary aqueous complexes? The code would need to be updated to output those.

 

Glenn

 

From: pflotra...@googlegroups.com <pflotra...@googlegroups.com> on behalf of Sanskriti <sans...@g.ucla.edu>
Date: Monday, July 28, 2025 at 3:19
PM
To: pflotran-users <pflotra...@googlegroups.com>
Subject: [pflotran-users: 8512] Outputting H2O?

Check twice before you click! This email originated from outside PNNL.

 

--
You received this message because you are subscribed to the Google Groups "pflotran-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pflotran-users/1a678715-6c5d-4fe7-bc87-8b631dab8a85n%40googlegroups.com.

Sanskriti

unread,
Jul 29, 2025, 4:42:53 PMJul 29
to pflotra...@googlegroups.com
Hi Glenn,

Activity coefficients for the secondary aqueous complexes would be useful! Is this where I would put them in?

CHEMISTRY
  PRIMARY_SPECIES
    H+
    HCO3-
    Ca++
  /
  ACTIVITY_COEFFICIENTS LAG TIMESTEP
  ACTIVITY_H2O
/

Thank you for the PFLOTRAN update - to clarify, I will need to rebuild PFLOTRAN to be able to output water activity?

Best,
Sanskriti


Sanskriti

unread,
Jul 29, 2025, 5:19:06 PMJul 29
to pflotra...@googlegroups.com
Hello everyone,

Update: rebuild was successful, but I don't see water_activity in the output for the .tec files. Attached is my input file, where I added this to Chemistry:

CHEMISTRY
ACTIVITY_WATER
OUTPUT
  WATER_ACTIVITY_COEFFICIENT
/

Would appreciate help in letting me know what I'm missing!
4_add_water_act.in

Hammond, Glenn E

unread,
Jul 30, 2025, 10:55:14 AMJul 30
to pflotra...@googlegroups.com

I see the activity of water when I run your input deck using the latest source code on the master branch. Search on “Gamma H2O”. The symbol \gamma is often use for activity coefficient in the literature.

 

Glenn

 

Sanskriti

unread,
Jul 30, 2025, 2:43:16 PMJul 30
to pflotra...@googlegroups.com
Hi Glenn,

Thank you! You're right, it is Gamma H2O. Do you know how I would be able to inhibit certain microbial reactions at specific water activities, like we can do for species concentrations? I'm thinking of adding salts to the system to lower the water activity, and I know that some microbial reactions decrease rates as water activity lowers, and then halts at a specific water activity. 

    INHIBITION
      SPECIES_NAME        O2(aq)
      TYPE MONOD
      THRESHOLD_CONCENTRATION 1.00e-05
      INHIBIT_ABOVE_THRESHOLD
    /

Best,
Sanskriti

Hammond, Glenn E

unread,
Aug 5, 2025, 12:02:59 PMAug 5
to pflotra...@googlegroups.com

Hammond, Glenn E

unread,
Aug 5, 2025, 12:06:51 PMAug 5
to pflotra...@googlegroups.com
Sanskriti,

To output water activity, you need to add ACTIVITY_WATER to the CHEMISTRY block and WATER_ACTIVITY_COEFFICIENT to the CHEMISTRY OUTPUT block. See the following example:

Glenn

Date: Tuesday, July 29, 2025 at 1:43 PM
To: pflotra...@googlegroups.com <pflotra...@googlegroups.com>

Hammond, Glenn E

unread,
Aug 5, 2025, 12:07:13 PMAug 5
to pflotra...@googlegroups.com
And yes, you need to pull the latest source code and recompile the code.

Glenn
Message has been deleted

Sanskriti

unread,
Aug 22, 2025, 10:22:22 AMAug 22
to pflotran-users
Yes, thank you!
We got it working for a few microbial reactions in the sandbox. 
Thank you for your help, and especially thank you for the water activity output functionality you added to PFLOTRAN.

Best,
Sanskriti

Reply all
Reply to author
Forward
0 new messages