Skip to content

Commit 53b3ae9

Browse files
author
Mark Zhang
committed
Run ./mfc.sh format
1 parent 1d9d0ec commit 53b3ae9

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

examples/2D_richtmyer_meshkov/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
"viscous": "T",
9393
"fluid_pp(1)%Re(1)": 1 / mu,
9494
"fluid_pp(2)%Re(1)": 1 / mu,
95-
9695
}
9796
)
9897
)

src/common/include/2dHardcodedIC.fpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,26 +134,26 @@
134134
end if
135135

136136
case (207) ! Kelvin Helmholtz Instability
137-
sigma = 0.05_wp / sqrt(2.0_wp)
138-
gauss1 = exp(- (y_cc(j) - 0.75_wp) ** 2 / (2.0_wp * sigma ** 2))
139-
gauss2 = exp(- (y_cc(j) - 0.25_wp) ** 2 / (2.0_wp * sigma ** 2))
137+
sigma = 0.05_wp/sqrt(2.0_wp)
138+
gauss1 = exp(-(y_cc(j) - 0.75_wp)**2/(2.0_wp*sigma**2))
139+
gauss2 = exp(-(y_cc(j) - 0.25_wp)**2/(2.0_wp*sigma**2))
140140
q_prim_vf(momxb + 1)%sf(i, j, 0) = &
141-
0.1_wp * sin(4.0_wp * pi * x_cc(i)) * (gauss1 + gauss2)
141+
0.1_wp*sin(4.0_wp*pi*x_cc(i))*(gauss1 + gauss2)
142142

143143
case (208) ! Richtmeyer Meshkov Instability
144144
lam = 1.0_wp
145145
eps = 1.0e-6_wp
146146
ei = 5.0_wp
147147
! Smoothening function to smooth out sharp discontinuity in the interface
148-
if(x_cc(i) <= 0.7_wp * lam) then
149-
d = x_cc(i) - lam * (0.4_wp - 0.1_wp * sin(2.0_wp * pi * (y_cc(j) / lam + 0.25_wp)))
150-
fsm = 0.5_wp * (1.0_wp + erf(d / (ei * sqrt(dx * dy))))
151-
alpha_air = eps + (1.0_wp - 2.0_wp * eps) * fsm
152-
alpha_sf6 = 1.0_wp - alpha_air
153-
q_prim_vf(contxb)%sf(i, j, 0) = alpha_sf6 * 5.04_wp
154-
q_prim_vf(contxe)%sf(i, j, 0) = alpha_air * 1.0_wp
155-
q_prim_vf(advxb)%sf(i, j, 0) = alpha_sf6
156-
q_prim_vf(advxe)%sf(i, j, 0) = alpha_air
148+
if (x_cc(i) <= 0.7_wp*lam) then
149+
d = x_cc(i) - lam*(0.4_wp - 0.1_wp*sin(2.0_wp*pi*(y_cc(j)/lam + 0.25_wp)))
150+
fsm = 0.5_wp*(1.0_wp + erf(d/(ei*sqrt(dx*dy))))
151+
alpha_air = eps + (1.0_wp - 2.0_wp*eps)*fsm
152+
alpha_sf6 = 1.0_wp - alpha_air
153+
q_prim_vf(contxb)%sf(i, j, 0) = alpha_sf6*5.04_wp
154+
q_prim_vf(contxe)%sf(i, j, 0) = alpha_air*1.0_wp
155+
q_prim_vf(advxb)%sf(i, j, 0) = alpha_sf6
156+
q_prim_vf(advxe)%sf(i, j, 0) = alpha_air
157157
end if
158158

159159
case (250) ! MHD Orszag-Tang vortex

0 commit comments

Comments
 (0)