Skip to content

Commit 8b68a95

Browse files
authored
Merge pull request #101 from wilfonba/viscousFix
2 parents 498b0f6 + a4d710d commit 8b68a95

File tree

8 files changed

+89
-4
lines changed

8 files changed

+89
-4
lines changed

src/simulation/p_main.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ program p_main
156156
if (monopole) then
157157
call s_initialize_monopole_module()
158158
end if
159-
if (any(Re_size > 1)) then
159+
if (any(Re_size > 0)) then
160160
call s_initialize_viscous_module()
161161
end if
162162
call s_initialize_rhs_module()

tests/0A022883/golden.txt

Lines changed: 12 additions & 0 deletions
Large diffs are not rendered by default.

tests/64E032D7/golden.txt

Lines changed: 12 additions & 0 deletions
Large diffs are not rendered by default.

tests/8E3D99E6/golden.txt

Lines changed: 16 additions & 0 deletions
Large diffs are not rendered by default.

tests/8EAC3DA7/golden.txt

Lines changed: 16 additions & 0 deletions
Large diffs are not rendered by default.

tests/CD6DC908/golden.txt

Lines changed: 10 additions & 0 deletions
Large diffs are not rendered by default.

tests/E8C28D5B/golden.txt

Lines changed: 10 additions & 0 deletions
Large diffs are not rendered by default.

toolchain/mfc/test/cases.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from .. import common
44
from .case import TestCase, create_case, CaseGeneratorStack
5-
5+
from ..printer import cons
66

77
def get_bc_mods(bc: int, dimInfo):
88
params = {}
@@ -130,6 +130,15 @@ def alter_num_fluids(dimInfo, dimParams):
130130

131131
alter_riemann_solvers(num_fluids)
132132

133+
if num_fluids == 1:
134+
stack.push(f"Viscous", {
135+
'fluid_pp(1)%Re(1)' : 0.0001, 'dt' : 1e-11})
136+
137+
cases.append(create_case(stack, "", {'weno_Re_flux': 'F'}))
138+
cases.append(create_case(stack, "weno_Re_flux", {'weno_Re_flux': 'T'}))
139+
140+
stack.pop()
141+
133142
if num_fluids == 2:
134143
stack.push(f"Viscous", {
135144
'fluid_pp(1)%Re(1)' : 0.001, 'fluid_pp(1)%Re(2)' : 0.001,
@@ -141,8 +150,8 @@ def alter_num_fluids(dimInfo, dimParams):
141150
stack.pop()
142151
stack.pop()
143152

144-
stack.pop()
145-
153+
stack.pop()
154+
146155
def alter_2d(dimInfo, dimParams):
147156
stack.push("Axisymmetric", {
148157
'num_fluids' : 2, 'bc_y%beg': -2, 'cyl_coord': 'T',

0 commit comments

Comments
 (0)