Skip to content

Commit 4dbbeed

Browse files
Add support for analytic definition of color function (#571)
Co-authored-by: Ben Wilfong <[email protected]> Co-authored-by: Spencer Bryngelson <[email protected]>
1 parent 465bd4f commit 4dbbeed

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/pre_process/m_patches.fpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,6 @@ contains
969969
970970
@:analytical()
971971
972-
call s_assign_patch_primitive_variables(patch_id, i, j, 0, &
973-
eta, q_prim_vf, patch_id_fp)
974-
975972
if ((q_prim_vf(1)%sf(i, j, 0) < 1.e-10) .and. (model_eqns == 4)) then
976973
!zero density, reassign according to Tait EOS
977974
q_prim_vf(1)%sf(i, j, 0) = &

toolchain/mfc/case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
QPVF_IDX_VARS = {
1212
'alpha_rho': 'contxb', 'vel' : 'momxb', 'pres': 'E_idx',
13-
'alpha': 'advxb', 'tau_e': 'stress_idx%beg', 'Y': 'chemxb'
13+
'alpha': 'advxb', 'tau_e': 'stress_idx%beg', 'Y': 'chemxb',
14+
'cf_val': 'c_idx'
1415
}
1516

1617
@dataclasses.dataclass(init=False)

toolchain/mfc/run/case_dicts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def analytic(self):
116116

117117
for real_attr in ["radius", "radii", "epsilon", "beta", "normal", "alpha_rho",
118118
"smooth_coeff", "rho", "vel", "alpha", "gamma",
119-
"pi_inf", "r0", "v0", "p0", "m0", "cv", "qv", "qvp", "cf_val"]:
119+
"pi_inf", "r0", "v0", "p0", "m0", "cv", "qv", "qvp"]:
120120
PRE_PROCESS[f"patch_icpp({p_id})%{real_attr}"] = ParamType.REAL
121121
PRE_PROCESS[f"patch_icpp({p_id})%pres"] = ParamType.REAL.analytic()
122122

@@ -149,6 +149,8 @@ def analytic(self):
149149
for taue_id in range(1, 6+1):
150150
PRE_PROCESS[f'patch_icpp({p_id})%tau_e({taue_id})'] = ParamType.REAL.analytic()
151151

152+
PRE_PROCESS[f'patch_icpp({p_id})%cf_val'] = ParamType.REAL.analytic()
153+
152154
if p_id >= 2:
153155
PRE_PROCESS[f'patch_icpp({p_id})%alter_patch'] = ParamType.LOG
154156

0 commit comments

Comments
 (0)