Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3668f05
Merge pull request #1 from JRChreim/SGEoS
JRChreim Nov 24, 2025
e986efe
Update m_checker_common.fpp
JRChreim Nov 26, 2025
6d7de38
Merge remote-tracking branch 'remotes/upstream/master' into 5EqnPC
JRChreim Nov 29, 2025
ffd2295
Changes to include phase change to the 5-equation model
JRChreim Nov 30, 2025
7dbb2ea
Merge remote-tracking branch 'remotes/upstream/master' into 5EqnPC
JRChreim Nov 30, 2025
b67eb8e
Merge remote-tracking branch 'remotes/upstream/master' into 5EqnPC
JRChreim Dec 1, 2025
6d02146
Final additions (to include new examples)
JRChreim Dec 1, 2025
88e9120
Merge branch 'master' into 5EqnPC
JRChreim Dec 18, 2025
f744537
Update examples/3D_phasechange_bubble_6Eqn/case.py
JRChreim Dec 18, 2025
27ae81a
Update examples/2D_shocktube_phasechange_6Eqn/case.py
JRChreim Dec 18, 2025
347844e
Update toolchain/mfc/case_validator.py
JRChreim Dec 19, 2025
26b4697
Refactoring examples files
JRChreim Dec 19, 2025
3c715e9
Update case_validator.py
JRChreim Dec 19, 2025
b59dcb3
Update examples/2D_phasechange_bubble/case.py
JRChreim Dec 19, 2025
7b8ba48
Update examples/3D_phasechange_bubble/case.py
JRChreim Dec 19, 2025
8ec78be
Update examples/2D_shocktube_phasechange/case.py
JRChreim Dec 19, 2025
b65cc61
Update casefile.py
JRChreim Dec 19, 2025
e42b828
Update casefile.py
JRChreim Dec 19, 2025
0f2676d
Update case.py
JRChreim Dec 19, 2025
d2123be
Update case.py
JRChreim Dec 19, 2025
eb1493f
Update casefile.py
JRChreim Dec 19, 2025
80cb2fc
Update case.py
JRChreim Dec 19, 2025
431c9ae
Update case.py
JRChreim Dec 19, 2025
8fe6d96
Update case.py
JRChreim Dec 19, 2025
8d76ea0
Update case.py
JRChreim Dec 19, 2025
0d010c0
Update casefile.py
JRChreim Dec 19, 2025
30923e5
Update case.py
JRChreim Dec 19, 2025
e83e7fb
Update case.py
JRChreim Dec 19, 2025
a16e1c3
Update case.py
JRChreim Dec 19, 2025
7907e2b
Merge branch 'master' into 5EqnPC
JRChreim Dec 19, 2025
55c0dc9
Cleaning whitespaces on example files
JRChreim Dec 19, 2025
d2fca2e
Merge branch 'master' into 5EqnPC
sbryngelson Dec 22, 2025
ef5c87d
Changes to incliude phase change tests
JRChreim Dec 23, 2025
ee8e7b1
formatting files
JRChreim Dec 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions examples/1D_exp_tube_phasechange/case.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
import math, json
import math, json, argparse

parser = argparse.ArgumentParser(prog="phasechange", description="phase change considering both 5 and 6 equation models.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.")
parser.add_argument("-me", "--model_eqns", type=int, metavar="MODEL EQN", choices=[2, 3], default=3, help="choose `2' for 5-equation model or `3' for 6-equation model.")
args = parser.parse_args()

# Pressure
p01 = 1.175435854855077e05
Expand Down Expand Up @@ -123,7 +128,7 @@
"t_step_save": AS,
# Simulation Algorithm Parameters
"num_patches": 2,
"model_eqns": 3,
"model_eqns": args.model_eqns,
"num_fluids": 3,
"mpp_lim": "T",
"mixture_err": "T",
Expand Down
11 changes: 8 additions & 3 deletions examples/2D_phasechange_bubble/case.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
import math, json
#!/usr/bin/env python3
import math, json, argparse

parser = argparse.ArgumentParser(prog="phasechange", description="phase change considering both 5 and 6 equation models.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.")
parser.add_argument("-me", "--model_eqns", type=int, metavar="MODEL EQN", choices=[2, 3], default=3, help="choose `2' for 5-equation model or `3' for 6-equation model.")
args = parser.parse_args()

## 1 FOR BACKGROUND, 2 FOR BUBBLE
# Pressure [Pa]
Expand Down Expand Up @@ -202,7 +207,7 @@
"t_step_save": AS,
# Simulation Algorithm Parameters
"num_patches": 2,
"model_eqns": 3,
"model_eqns": args.model_eqns,
"num_fluids": 3,
"mpp_lim": "T",
"mixture_err": "T",
Expand Down
11 changes: 8 additions & 3 deletions examples/2D_phasechange_bubble/casefile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
import math, json
#!/usr/bin/env python3
import math, json, argparse

parser = argparse.ArgumentParser(prog="phasechange", description="phase change considering both 5 and 6 equation models.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.")
parser.add_argument("-me", "--model_eqns", type=int, metavar="MODEL EQN", choices=[2, 3], default=3, help="choose `2' for 5-equation model or `3' for 6-equation model.")
args = parser.parse_args()

## 1 FOR BACKGROUND, 2 FOR BUBBLE
# Pressure [Pa]
Expand Down Expand Up @@ -209,7 +214,7 @@
"t_step_save": AS,
# Simulation Algorithm Parameters
"num_patches": 2,
"model_eqns": 3,
"model_eqns": args.model_eqns,
"num_fluids": 3,
"mpp_lim": "T",
"mixture_err": "T",
Expand Down
9 changes: 7 additions & 2 deletions examples/2D_shocktube_phasechange/case.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
import math, json
import math, json, argparse

parser = argparse.ArgumentParser(prog="phasechange", description="phase change considering both 5 and 6 equation models.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.")
parser.add_argument("-me", "--model_eqns", type=int, metavar="MODEL EQN", choices=[2, 3], default=3, help="choose `2' for 5-equation model or `3' for 6-equation model.")
args = parser.parse_args()

## 1 FOR BACKGROUND, 2 FOR SHOKED STATE, 3 FOR WATER REGION (WHEN NEEDED)
# Pressure
Expand Down Expand Up @@ -173,7 +178,7 @@
"t_step_save": AS,
# Simulation Algorithm Parameters
"num_patches": 3,
"model_eqns": 3,
"model_eqns": args.model_eqns,
"num_fluids": 3,
"mpp_lim": "T",
"mixture_err": "T",
Expand Down
12 changes: 8 additions & 4 deletions examples/3D_phasechange_bubble/case.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
import math, json
#!/usr/bin/env python3
import math, json, argparse

parser = argparse.ArgumentParser(prog="phasechange", description="phase change considering both 5 and 6 equation models.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--mfc", type=json.loads, default="{}", metavar="DICT", help="MFC's toolchain's internal state.")
parser.add_argument("-me", "--model_eqns", type=int, metavar="MODEL EQN", choices=[2, 3], default=3, help="choose `2' for 5-equation model or `3' for 6-equation model.")
args = parser.parse_args()

## 1 FOR BACKGROUND, 2 FOR BUBBLE
# Pressure [Pa]
Expand All @@ -9,7 +14,6 @@
# Temperature [K]
T01 = 298.15
T02 = 298.15
# T02 = 7.914

#### FLUID PROPERTIES ####

Expand Down Expand Up @@ -209,7 +213,7 @@
"t_step_save": AS,
# Simulation Algorithm Parameters
"num_patches": 2,
"model_eqns": 3,
"model_eqns": args.model_eqns,
"num_fluids": 3,
"mpp_lim": "T",
"mixture_err": "T",
Expand Down
4 changes: 3 additions & 1 deletion src/common/m_phase_change.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ contains
q_cons_vf(i + advxb - 1)%sf(j, k, l) = q_cons_vf(i + contxb - 1)%sf(j, k, l)/rhok(i)

! alpha*rho*e
q_cons_vf(i + intxb - 1)%sf(j, k, l) = q_cons_vf(i + contxb - 1)%sf(j, k, l)*ek(i)
if (model_eqns == 3) then
q_cons_vf(i + intxb - 1)%sf(j, k, l) = q_cons_vf(i + contxb - 1)%sf(j, k, l)*ek(i)
end if

! Total entropy
rhos = rhos + q_cons_vf(i + contxb - 1)%sf(j, k, l)*sk(i)
Expand Down
190 changes: 190 additions & 0 deletions tests/02BD9B5E/golden-metadata.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions tests/D3C860B9/golden.txt → tests/02BD9B5E/golden.txt

Large diffs are not rendered by default.

Loading
Loading