Skip to content

Commit

Permalink
0729
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzitao21 committed Jul 29, 2024
0 parents commit 0b6f499
Show file tree
Hide file tree
Showing 70 changed files with 970,498 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/bin/*
/models_folder/*
/official_examples/*
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# pht3d-examples

This repository contains a Python project that runs the 13 examples from the PHT3D official tutorial using [Flopy](https://github.com/modflowpy/flopy) and [PHT3D](https://www.pht3d.org/) together. The integration is achieved using the [pht3d_fsp](https://github.com/SLS-github/PHT3D-FSP) module developed by Stephan L. Seibert.

Currently, 12 out of the 13 examples run successfully and produce results consistent with the documentation. The 11th example is not yet working correctly.
2 changes: 2 additions & 0 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
91 changes: 91 additions & 0 deletions data/case1/pht3d_datab.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
SOLUTION_MASTER_SPECIES
#
#element species alk gfw_formula element_gfw
#
H H+ -1. H 1.008
H(0) H2 0.0 H
H(1) H+ -1. 0.0
E e- 0.0 0.0 0.0
O H2O 0.0 O 16.00
O(0) O2 0.0 O
O(-2) H2O 0.0 0.0
Na Na+ 0.0 Na 22.9898
Cl Cl- 0.0 Cl 35.453
Species Species 0.0 Species 1.0




SOLUTION_SPECIES

H+ = H+
log_k 0.000
-gamma 9.0000 0.0000
e- = e-
log_k 0.000
H2O = H2O
log_k 0.000
Na+ = Na+
log_k 0.000
Cl- = Cl-
log_k 0.000
Species = Species
log_k 0.0


H2O = OH- + H+
log_k -14.000
delta_h 13.362 kcal
-analytic -283.971 -0.05069842 13323.0 102.24447 -1119669.0
-gamma 3.5000 0.0000

2 H2O = O2 + 4 H+ + 4 e-
log_k -86.08
delta_h 134.79 kcal

2 H+ + 2 e- = H2
log_k -3.15
delta_h -1.759 kcal

Na+ + H2O = NaOH + H+
log_k -14.180

PHASES

O2(g)
O2 = O2
log_k -2.960
delta_h -1.844 kcal

H2(g)
H2 = H2
log_k -3.150
delta_h -1.759 kcal

H2O(g)
H2O = H2O
log_k 1.51
delta_h -44.03 kJ

RATES

##########
#PCE
##########
#
Species
-start
10 mSpecies = tot("Species")
20 if (mSpecies <= 1e-12) then goto 200
22 k_mon = 0.5
24 v_max = 4.77e-03 / 86400
30 rate = v_max * mSpecies/(k_mon + mSpecies)
#40 moles = rate * m * (m/m0) * time
40 moles = rate * time
#50 if (moles > m) then moles = m
50 if (moles > mSpecies) then moles = mSpecies
200 SAVE moles
-end


END
Binary file added data/case1/pht3d_species.xlsx
Binary file not shown.
Binary file added data/case10/hk.npy
Binary file not shown.
Binary file added data/case10/init_Benznapl.npy
Binary file not shown.
Binary file added data/case10/init_Tolunapl.npy
Binary file not shown.
Loading

0 comments on commit 0b6f499

Please sign in to comment.