Skip to content

Commit 1bb0097

Browse files
author
Anand Radhakrishnan
committed
Add Mach number to initial condition for case 380 (TGV)
1 parent 833665a commit 1bb0097

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/pre_process/include/3dHardcodedIC.fpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#:def Hardcoded3DVariables()
22
! Place any declaration of intermediate variables here
3-
real(wp) :: rhoH, rhoL, pRef, pInt, h, lam, wl, amp, intH, alph
3+
real(wp) :: rhoH, rhoL, pRef, pInt, h, lam, wl, amp, intH, alph, Mach
44

55
real(wp) :: eps
66

@@ -94,10 +94,11 @@
9494
! This is patch is hard-coded for test suite optimization used in the
9595
! 3D_TaylorGreenVortex case:
9696
! This analytic patch used geometry 9
97+
Mach = 0.1
9798
if (patch_id == 1) then
98-
q_prim_vf(E_idx)%sf(i, j, k) = 101325 + (1*37.6636429464809**2/16)*(cos(2*x_cc(i)/1) + cos(2*y_cc(j)/1))*(cos(2*z_cc(k)/1) + 2)
99-
q_prim_vf(momxb + 0)%sf(i, j, k) = 37.6636429464809*sin(x_cc(i)/1)*cos(y_cc(j)/1)*sin(z_cc(k)/1)
100-
q_prim_vf(momxb + 1)%sf(i, j, k) = -37.6636429464809*cos(x_cc(i)/1)*sin(y_cc(j)/1)*sin(z_cc(k)/1)
99+
q_prim_vf(E_idx)%sf(i, j, k) = 101325 + (Mach**2*376.636429464809**2/16)*(cos(2*x_cc(i)/1) + cos(2*y_cc(j)/1))*(cos(2*z_cc(k)/1) + 2)
100+
q_prim_vf(momxb + 0)%sf(i, j, k) = Mach*376.636429464809*sin(x_cc(i)/1)*cos(y_cc(j)/1)*sin(z_cc(k)/1)
101+
q_prim_vf(momxb + 1)%sf(i, j, k) = -Mach*376.636429464809*cos(x_cc(i)/1)*sin(y_cc(j)/1)*sin(z_cc(k)/1)
101102
end if
102103

103104
case default

0 commit comments

Comments
 (0)