|
5 | 5 |
|
6 | 6 | #:def Hardcoded1D() |
7 | 7 | select case (patch_icpp(patch_id)%hcid) |
8 | | - case (150) ! 1D Smooth Alfven Case for MHD |
| 8 | + case (150) ! 1D Smooth Alfven Case for MHD |
9 | 9 | ! velocity |
10 | 10 | q_prim_vf(momxb + 1)%sf(i, 0, 0) = 0.1_wp*sin(2._wp*pi*x_cc(i)) |
11 | 11 | q_prim_vf(momxb + 2)%sf(i, 0, 0) = 0.1_wp*cos(2._wp*pi*x_cc(i)) |
12 | 12 |
|
13 | 13 | ! magnetic field |
14 | 14 | q_prim_vf(B_idx%end - 1)%sf(i, 0, 0) = 0.1_wp*sin(2._wp*pi*x_cc(i)) |
15 | 15 | q_prim_vf(B_idx%end)%sf(i, 0, 0) = 0.1_wp*cos(2._wp*pi*x_cc(i)) |
16 | | - |
17 | | - case (170) |
18 | | - ! This hardcoded case can be used to start a simulation with initial conditions given from a known 1D profile (e.g. Cantera, SDtoolbox) |
| 16 | + case (170) ! 1D profile from external data (e.g. Cantera, SDtoolbox) |
| 17 | + ! This hardcoded case can be used to start a simulation with initial conditions given from a known 1D profile (e.g. Cantera, |
| 18 | + ! SDtoolbox) |
19 | 19 | @: HardcodedReadValues() |
20 | | - |
21 | | - case (180) |
22 | | - ! This is patch is hard-coded for test suite optimization used in the |
23 | | - ! 1D_shuoser cases: "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)" |
| 20 | + case (180) ! Shu-Osher problem |
| 21 | + ! This is patch is hard-coded for test suite optimization used in the 1D_shuoser cases: "patch_icpp(2)%alpha_rho(1)": "1 + |
| 22 | + ! 0.2*sin(5*x)" |
24 | 23 | if (patch_id == 2) then |
25 | 24 | q_prim_vf(contxb + 0)%sf(i, 0, 0) = 1 + 0.2*sin(5*x_cc(i)) |
26 | 25 | end if |
27 | | - |
28 | | - case (181) |
29 | | - ! This is patch is hard-coded for test suite optimization used in the |
30 | | - ! 1D_titarevtorro cases: "patch_icpp(2)%alpha_rho(1)": "1 + 0.1*sin(20*x*pi)" |
| 26 | + case (181) ! Titarev-Torro problem |
| 27 | + ! This is patch is hard-coded for test suite optimization used in the 1D_titarevtorro cases: "patch_icpp(2)%alpha_rho(1)": |
| 28 | + ! "1 + 0.1*sin(20*x*pi)" |
31 | 29 | q_prim_vf(contxb + 0)%sf(i, 0, 0) = 1 + 0.1*sin(20*x_cc(i)*pi) |
32 | | - |
33 | | - case (182) |
| 30 | + case (182) ! Multi-component diffusion |
34 | 31 | ! This patch is a hard-coded for test suite optimization (multiple component diffusion) |
35 | 32 | x_mid_diffu = 0.05_wp/2.0_wp |
36 | 33 | width_sq = (2.5_wp*10.0_wp**(-3.0_wp))**2 |
|
51 | 48 |
|
52 | 49 | temp = (320.0_wp - 1350.0_wp)*profile_shape + 1350.0_wp |
53 | 50 |
|
54 | | - molar_mass_inv = y1/31.998_wp + & |
55 | | - y2/18.01508_wp + & |
56 | | - y3/16.04256_wp + & |
57 | | - y4/28.0134_wp |
| 51 | + molar_mass_inv = y1/31.998_wp + y2/18.01508_wp + y3/16.04256_wp + y4/28.0134_wp |
58 | 52 |
|
59 | 53 | q_prim_vf(contxb)%sf(i, 0, 0) = 1.01325_wp*(10.0_wp)**5/(temp*8.3144626_wp*1000.0_wp*molar_mass_inv) |
60 | | - |
61 | 54 | case default |
62 | 55 | call s_int_to_str(patch_id, iStr) |
63 | | - call s_mpi_abort("Invalid hcid specified for patch "//trim(iStr)) |
| 56 | + call s_mpi_abort("Invalid hcid specified for patch " // trim(iStr)) |
64 | 57 | end select |
65 | | - |
66 | 58 | #:enddef |
0 commit comments