|
8 | 8 | real(wp) :: sinA, cosA |
9 | 9 | real(wp) :: r_sq |
10 | 10 |
|
| 11 | + ! # 291 - Shear/Thermal Layer Case |
| 12 | + real(wp) :: delta_shear, u_max, u_mean |
| 13 | + real(wp) :: T_wall, T_inf, P_atm, T_loc |
| 14 | + real(wp) :: delta_th, R_mix |
| 15 | + real(wp) :: Y_N2, Y_O2, MW_N2, MW_O2 |
| 16 | + real(wp) :: bottom_blend_u, bottom_blend_T |
| 17 | + |
11 | 18 | ! # 207 |
12 | 19 | real(wp) :: sigma, gauss1, gauss2 |
| 20 | + |
13 | 21 | ! # 208 |
14 | 22 | real(wp) :: ei, d, fsm, alpha_air, alpha_sf6 |
15 | 23 |
|
|
305 | 313 | q_prim_vf(eqn_idx%mom%beg + 1)%sf(i, j, & |
306 | 314 | & 0) = 112.99092883944267*((0.1/0.3))*x_cc(i)*exp(0.5*(1 - sqrt(x_cc(i)**2 + y_cc(j)**2))) |
307 | 315 | end if |
| 316 | + case (291) ! Isothermal Flat Plate |
| 317 | + T_inf = 1125.0_wp |
| 318 | + T_wall = 600.0_wp |
| 319 | + P_atm = 101325.0_wp |
| 320 | + |
| 321 | + ! Boundary/Shear Layer thicknesses |
| 322 | + delta_th = 0.0003_wp ! Thermal BL thickness |
| 323 | + delta_shear = 8e-3_wp ! Velocity BL thickness |
| 324 | + |
| 325 | + u_max = 50.0_wp ! Freestream Velocity (m/s) |
| 326 | + |
| 327 | + MW_N2 = 28.0134e-3_wp |
| 328 | + MW_O2 = 31.999e-3_wp |
| 329 | + Y_N2 = 0.767_wp |
| 330 | + Y_O2 = 0.233_wp |
| 331 | + R_mix = 8.314462618_wp*((Y_N2/MW_N2) + (Y_O2/MW_O2)) |
| 332 | + bottom_blend_u = tanh(y_cc(j)/delta_shear) |
| 333 | + bottom_blend_T = tanh(y_cc(j)/delta_th) |
| 334 | + u_mean = u_max*bottom_blend_u |
| 335 | + T_loc = T_wall + (T_inf - T_wall)*bottom_blend_T |
| 336 | + q_prim_vf(eqn_idx%cont%beg)%sf(i, j, 0) = P_atm/(R_mix*T_loc) |
| 337 | + q_prim_vf(eqn_idx%mom%beg)%sf(i, j, 0) = u_mean |
| 338 | + q_prim_vf(eqn_idx%mom%end)%sf(i, j, 0) = 0.0_wp |
| 339 | + q_prim_vf(eqn_idx%E)%sf(i, j, 0) = P_atm |
| 340 | + q_prim_vf(eqn_idx%species%beg)%sf(i, j, 0) = Y_O2 |
| 341 | + q_prim_vf(eqn_idx%species%end)%sf(i, j, 0) = Y_N2 |
308 | 342 | case default |
309 | 343 | if (proc_rank == 0) then |
310 | 344 | call s_int_to_str(patch_id, iStr) |
|
0 commit comments