modify solute concentration in the checkpoint file

16 views
Skip to first unread message

Kewei Chen

unread,
Sep 25, 2025, 4:22:32 PMSep 25
to pflotran-users
Dear all,

I am trying to modify the solute concentration in the checkpoint file by multiplying the concentration of a specific species by a scale factor. The HDF5 file structure is /PMCSubsurfaceTransport/transport/Primary_Variable, which contains a 1-D array of length 67,200. This value reflects the product of 1,920 grid cells and 35 species (17 primary species + 18 immobile species defined in the sandbox). 

I would like to apply a scaling factor to several immobile species, but I am unsure how the 67,200 entries are organized. Are they arranged by grid or by species? In other words, does the file store the first 35 elements as all species in the first grid cell (followed by the next 35 elements for the second grid cell), or does it store the first 1,920 elements as the first species across all grid cells (followed by the next 1,920 elements for the second species)? Any insights would be greatly appreciated.

Best,
Kewei 

Hammond, Glenn E

unread,
Sep 26, 2025, 12:50:34 AMSep 26
to pflotra...@googlegroups.com
Kewei,

That 1D array is organized identical to the solution vector field%tran_xx

The first 35 entries are the aqueous and immobile concentrations for grid cell #1 followed by the 35 for grid cell #2.

Glenn

From: pflotra...@googlegroups.com <pflotra...@googlegroups.com> on behalf of Kewei Chen <chenke...@gmail.com>
Date: Thursday, September 25, 2025 at 1:22 PM
To: pflotran-users <pflotra...@googlegroups.com>
Subject: [pflotran-users: 8572] modify solute concentration in the checkpoint file

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/6905ef16-4c1d-440c-bcb5-fa6eef93cba9n%40googlegroups.com.

Kewei Chen

unread,
Sep 26, 2025, 10:48:51 AMSep 26
to pflotran-users
Thanks, Glenn! I will check it.

Best,
Kewei

Reply all
Reply to author
Forward
0 new messages