Skip to content

Commit f31ce15

Browse files
committed
fix: use full reconstruction with int_comp to enable THINC with viscous flows
1 parent b1ae94d commit f31ce15

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

examples/3D_rayleigh_taylor_muscl/case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"recon_type": 2,
5858
"muscl_order": 2,
5959
"muscl_lim": 4,
60+
"int_comp": 1,
6061
"avg_state": 2,
6162
"riemann_solver": 2,
6263
"wave_speeds": 1,

src/simulation/m_rhs.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ contains
655655
call nvtxStartRange("RHS-RECONSTRUCTION")
656656
657657
if (.not. surface_tension) then
658-
if (all(Re_size == 0)) then
658+
if (all(Re_size == 0) .or. int_comp > 0) then
659659
! Reconstruct densitiess
660660
iv%beg = 1; iv%end = sys_size
661661
call s_reconstruct_cell_boundary_values(q_prim_qp%vf(1:sys_size), qL_rsx_vf, qL_rsy_vf, qL_rsz_vf, &

toolchain/mfc/case_validator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,6 @@ def check_interface_compression(self):
391391
self.prohibit(int_comp not in [0, 1, 2], "int_comp must be 0 (off), 1 (THINC), or 2 (MTHINC)")
392392
self.prohibit(int_comp == 2 and n == 0, "int_comp = 2 (MTHINC) requires at least 2D (n > 0)")
393393
self.prohibit(int_comp != 0 and num_fluids != 2, "int_comp > 0 requires num_fluids = 2")
394-
viscous = self.get("viscous", "F") == "T"
395-
surface_tension = self.get("surface_tension", "F") == "T"
396-
self.prohibit(int_comp != 0 and viscous, "int_comp > 0 is not supported with viscosity (reconstruction is split; compression would be silently skipped)")
397-
self.prohibit(int_comp != 0 and surface_tension, "int_comp > 0 is not supported with surface tension (reconstruction is split; compression would be silently skipped)")
398394

399395
recon_type = self.get("recon_type", 1)
400396
if recon_type == 1: # WENO

0 commit comments

Comments
 (0)