|
135 | 135 |
|
136 | 136 | case (207) ! Kelvin Helmholtz Instability |
137 | 137 | sigma = 0.05_wp / sqrt(2.0_wp) |
138 | | - gauss1 = exp(- (y_cc(j) - 0.75_wp) ** 2 / (2 * sigma ** 2)) |
139 | | - gauss2 = exp(- (y_cc(j) - 0.25_wp) ** 2 / (2 * sigma ** 2)) |
| 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)) |
140 | 140 | q_prim_vf(momxb + 1)%sf(i, j, 0) = & |
141 | 141 | 0.1_wp * sin(4.0_wp * pi * x_cc(i)) * (gauss1 + gauss2) |
142 | 142 |
|
|
145 | 145 | eps = 1.0e-6_wp |
146 | 146 | ei = 5.0_wp |
147 | 147 | ! Smoothening function to smooth out sharp discontinuity in the interface |
148 | | - if(x_cc(i) <= 0.7 * lam) then |
| 148 | + if(x_cc(i) <= 0.7_wp * lam) then |
149 | 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 | 150 | fsm = 0.5_wp * (1.0_wp + erf(d / (ei * sqrt(dx * dy)))) |
151 | 151 | alpha_air = eps + (1.0_wp - 2.0_wp * eps) * fsm |
152 | | - alpha_sf6 = 1.0 - alpha_air |
153 | | - q_prim_vf(contxb)%sf(i, j, 0) = alpha_sf6 * 5.04 |
154 | | - q_prim_vf(contxe)%sf(i, j, 0) = alpha_air * 1.0 |
| 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 | 155 | q_prim_vf(advxb)%sf(i, j, 0) = alpha_sf6 |
156 | 156 | q_prim_vf(advxe)%sf(i, j, 0) = alpha_air |
157 | 157 | end if |
|
0 commit comments