PhreeqcUsers Discussion Forum

Registrations currently disabled due to excessive spam. Please email phreeqcusers at gmail.com to request an account.
Welcome Guest
 

  • Forum Home
  • Login
  • Register

  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • BASIC functions »
  • How to access the porosity set by SetPorosity in PhreeqcRM using GET_POR
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: How to access the porosity set by SetPorosity in PhreeqcRM using GET_POR  (Read 349 times)

conghaoyi

  • Contributor
  • Posts: 6
How to access the porosity set by SetPorosity in PhreeqcRM using GET_POR
« on: 14/05/25 22:34 »
Dear all,

Is there a way to access the porosity set by the SetPorosity function in PhreeqcRM using the GET_POR BASIC function in Phreeqc? In my simulation, the volume of the system is changing as expected using the SetPorosity function. However, when trying to access the porosity using the GET_POR function, the output porosity is constant at 0.1.

The simulation does not contain a TRANSPORT block. It is only a kinetic model.

The workflow of the simulation is shown in the pseudocode below:
Code: [Select]
For steps in range(nsteps):
  SetPorosity(por) # por changes at each time step
  SetConcentrations(c)
  RunCells()
  time = time + time_step
  SetTime(time)

However, when printing the porosity using the code below, the porosity from GET_POR stays 0.1
Code: [Select]
USER_PUNCH
-headings GET_PORO
-start
10 PUNCH GET_POR(1)
-end

Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4034
Re: How to access the porosity set by SetPorosity in PhreeqcRM using GET_POR
« Reply #1 on: 17/05/25 16:06 »
I think you need to be doing transport calculations (TRANSPORT) for that function to work.

An alternative may be to use PUT to save the porosity value and GET when you want to retrieve it.
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • BASIC functions »
  • How to access the porosity set by SetPorosity in PhreeqcRM using GET_POR
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
  • XHTML
  • RSS
  • WAP2