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 »
  • Processes »
  • Dissolution and precipitation »
  • How to plot time vs concentration.
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: How to plot time vs concentration.  (Read 1267 times)

lorerave

  • Contributor
  • Posts: 1
How to plot time vs concentration.
« on: 03/04/23 14:08 »
I would like to track the concentration in my solution during reaction. Could anyone suggest me which function should I use. Thank you
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4030
Re: How to plot time vs concentration.
« Reply #1 on: 03/04/23 15:59 »
The Basic Function TOTAL_TIME gives the elapsed time since the beginning of the simulation. TOTAL_TIME only applies to KINETICS, TRANSPORT, and optionally in ADVECTION calculations.  If you are doing one of these types of calculations, you can use TOTAL_TIME as the X variable in USER_GRAPH.

Here is a simple example:

Code: [Select]
SOLUTION
KINETICS
Calcite
 -m     3.e-3
 -parms 1.67e5   0.6  # cm^2/mol calcite, exp factor
 -time  86400 in 10
INCREMENTAL_REACTIONS true
EQUILIBRIUM_PHASES
CO2(g) -3.4 10
USER_GRAPH 1
    -headings               time TOT("Ca")
    -axis_titles            "Time, days" "Concentration" ""
    -initial_solutions      false
    -connect_simulations    true
    -plot_concentration_vs  t
  -start
10 graph_x TOTAL_TIME / 86400
20 graph_y TOT("Ca")
  -end
END

Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Processes »
  • Dissolution and precipitation »
  • How to plot time vs concentration.
 

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