Skip to content

Commit a3273b7

Browse files
Forgot to add a separate case for the 2D cases. Everything works now
1 parent 380721d commit a3273b7

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

examples/2D_zero_circ_vortex/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"patch_icpp(2)%vel(2)": 0.0,
8686
"patch_icpp(2)%pres": 0.0,
8787
"patch_icpp(2)%alpha_rho(1)": 0.0,
88-
"patch_icpp(2)%hcid": 280,
88+
"patch_icpp(2)%hcid": 282,
8989
"patch_icpp(2)%alpha(1)": 1.0,
9090
"patch_icpp(2)%alter_patch(1)": "T",
9191
# CBC Inflow / Outflow

src/pre_process/include/2dHardcodedIC.fpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163

164164
case (280)
165165
! This is patch is hard-coded for test suite optimization used in the
166-
! 2D_zero_circ_vortex case:
166+
! 2D_isentropicvortex case:
167167
! This analytic patch uses geometry 2
168168
if (patch_id == 1) then
169169
q_prim_vf(E_idx)%sf(i, j, 0) = 1d0*(1d0 - (1d0/1d0)*(5d0/(2d0*3.141592653589793))*(5d0/(8d0*1d0*(1.4 + 1d0)*3.141592653589793))*exp(2d0*1d0*(1d0 - (x_cc(i) - patch_icpp(1)%x_centroid)**2d0- (y_cc(j) - patch_icpp(1)%y_centroid)**2d0)))**(1.4 + 1d0)
@@ -181,6 +181,17 @@
181181
q_prim_vf(contxb + 0)%sf(i, j, 0) = 1*(1 - 0.5*(1.4 - 1)*(0.4)**2*exp(0.5*(1 - sqrt(x_cc(i)**2 + y_cc(j)**2))))**(1 / (1.4 - 1))
182182
end if
183183

184+
case (282)
185+
! This is patch is hard-coded for test suite optimization used in the
186+
! 2D_zero_circ_vortex case:
187+
! This analytic patch uses geometry 2
188+
if (patch_id == 2) then
189+
q_prim_vf(E_idx)%sf(i, j, 0) = 101325*(1 - 0.5*(1.4 - 1)*(0.1 / 0.3)**2*exp(0.5*(1 - sqrt(x_cc(i)**2 + y_cc(j)**2))))**(1.4 / (1.4 - 1))
190+
q_prim_vf(contxb + 0)%sf(i, j, 0) = 1*(1 - 0.5*(1.4 - 1)*(0.1 / 0.3)**2*exp(0.5*(1 - sqrt(x_cc(i)**2 + y_cc(j)**2))))**(1 / (1.4 - 1))
191+
q_prim_vf(momxb + 0)%sf(i, j, 0) = 112.99092883944267*(1 - (0.1 / 0.3))*y_cc(j)*exp(0.5*(1 - sqrt(x_cc(i)**2 + y_cc(j)**2)))
192+
q_prim_vf(momxb + 1)%sf(i, j, 0) = 112.99092883944267*((0.1 / 0.3))*x_cc(i)*exp(0.5*(1 - sqrt(x_cc(i)**2 + y_cc(j)**2)))
193+
end if
194+
184195
case default
185196
if (proc_rank == 0) then
186197
call s_int_to_str(patch_id, iStr)

0 commit comments

Comments
 (0)