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 »
  • CO2 Capture by Steel Slag Heap
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: CO2 Capture by Steel Slag Heap  (Read 1911 times)

Erdinc

  • Frequent Contributor
  • Posts: 19
CO2 Capture by Steel Slag Heap
« on: 04/12/23 19:38 »
Dear Users, I am trying to plot Co2 capture by bi-product of steel slag with minerals. I have in slag which consists of Portlandite, Periclase, Larnite, Brucite, and Calcite. do you know how to build a graph that shows Cumulative C (Tonne/hectare) Vs Days and Depth? Many thanks.

USER_PUNCH
    -headings kin_hco3 Pore_vol # Cum-C-heading
    -start
  7 rem IF(CELL_NO < 11) THEN GOTO 100
10 IF (TOTAL_TIME = 0) THEN PUT(0,1)
20 kin_ca=1*KIN_DELTA("Portlandite")+2*KIN_DELTA("Larnite")+0*KIN_DELTA("Brucite")+1*KIN_DELTA("Calcite_diss")
30 kin_mg=0*KIN_DELTA("Portlandite")+0*KIN_DELTA("Larnite")+1*KIN_DELTA("Brucite")+0*KIN_DELTA("Calcite_diss")
60 kin_hco3 = 2*(kin_ca+kin_mg)
#65 PUT(GET(1)-kin_hco3,1)
#67 cum_c = GET(1)
68 PUNCH kin_hco3
#70 PUNCH cum_c
75 REM punch pore volumes, no_cells = 10
77 no_cells = 10
80 PUNCH (STEP_NO + .5) / no_cells
100 REM END
    -end
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4035
Re: CO2 Capture by Steel Slag Heap
« Reply #1 on: 04/12/23 21:07 »
I don't know about tonnes per hectare. This graph is moles captured in the system you have defined, usually moles per kilogram water.

Code: [Select]
USER_GRAPH 1
    -headings               time HCO3
    -axis_titles            "Time, seconds" "Moles CO2 captured" ""
    -initial_solutions      false
    -connect_simulations    true
    -plot_concentration_vs  x
  -start
  7 rem IF(CELL_NO < 11) THEN GOTO 100
 10 IF (TOTAL_TIME = 0) THEN PUT(0,1)
 20 kin_ca=1*KIN_DELTA("Portlandite")+2*KIN_DELTA("Larnite")+0*KIN_DELTA("Brucite")+1*KIN_DELTA("Calcite_diss")
 30 kin_mg=0*KIN_DELTA("Portlandite")+0*KIN_DELTA("Larnite")+1*KIN_DELTA("Brucite")+0*KIN_DELTA("Calcite_diss")
 60 kin_hco3 = 2*(kin_ca+kin_mg)
100 GRAPH_X TOTAL_TIME
110 GRAPH_Y kin_hco3
  -end
    -active                 true
END
Logged

Erdinc

  • Frequent Contributor
  • Posts: 19
Re: CO2 Capture by Steel Slag Heap
« Reply #2 on: 05/12/23 14:55 »
Thanks Very much David,

I am also trying to plot the same moles CO2 captured Vs Depth. Some reason the below script does not come up as expected. Can you please check if the script has a problem? Many Thanks.

USER_GRAPH 5
    -headings               Depth HCO3
    -axis_titles            "Depth, cm" "Moles CO2 captured" ""
    -chart_title            "KARDEMIR SLAG FLOW THROUGH TESTS - MOLES CO2 CAPTURED"
    -initial_solutions      false
    -connect_simulations    true
    -plot_concentration_vs  x
  -start
  7 rem IF(CELL_NO < 11) THEN GOTO 100
 10 IF (TOTAL_DEPTH = 0) THEN PUT(0,1)
 20 kin_ca=1*KIN_DELTA("Portlandite")+2*KIN_DELTA("Larnite")+0*KIN_DELTA("Brucite")+1*KIN_DELTA("Calcite_diss")
 30 kin_mg=0*KIN_DELTA("Portlandite")+0*KIN_DELTA("Larnite")+1*KIN_DELTA("Brucite")+0*KIN_DELTA("Calcite_diss")
 60 kin_hco3 = 2*(kin_ca+kin_mg)
100 GRAPH_X TOTAL_DEPTH
110 GRAPH_Y kin_hco3
  -end
    -active                 true
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4035
Re: CO2 Capture by Steel Slag Heap
« Reply #3 on: 05/12/23 15:57 »
There is no function TOTAL_DEPTH. If you are using TRANSPORT, there is a function DIST. You will either use DIST or calculate a depth based on the cell number.
Logged

Erdinc

  • Frequent Contributor
  • Posts: 19
Re: CO2 Capture by Steel Slag Heap
« Reply #4 on: 05/12/23 17:48 »
Thanks David. Is there any particular reason why moles CO2 captured Vs Time and moles CO2 captured Vs Distance is negative in value and stops at 0 moles?  I tried to attach the (graphs) files here in in EMF and word but does not work.
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4035
Re: CO2 Capture by Steel Slag Heap
« Reply #5 on: 05/12/23 18:11 »
KIN_DELTA is the change in the amount of each kinetic reactant. So, the function KIN("Portlandite") is the total amount of Portlandite available at any time; its initial value is set with -M in KINETICS (1 mole by default). If portlandite decreases, KIN("Portlandite") decreases and KIN_DELTA is negative. The reaction will stop when the moles of kinetic reactant go to zero.
« Last Edit: 05/12/23 22:55 by dlparkhurst »
Logged

Erdinc

  • Frequent Contributor
  • Posts: 19
Re: CO2 Capture by Steel Slag Heap
« Reply #6 on: 05/12/23 19:18 »
thank you David.
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • BASIC functions »
  • CO2 Capture by Steel Slag Heap
 

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