Skip to content

Commit 0956dfb

Browse files
committed
format and docs
1 parent 9825639 commit 0956dfb

File tree

5 files changed

+43
-35
lines changed

5 files changed

+43
-35
lines changed

docs/documentation/case.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ Details of implementation of viscosity in MFC can be found in [Coralic (2015)](r
408408
| `surface_tension` | Logical | Activate surface tension |
409409
| `viscous` | Logical | Activate viscosity |
410410
| `hypoelasticity` | Logical | Activate hypoelasticity* |
411+
| `igr` | Logical | Enable solution via information geometric regularization (IGR) [Cao (2024)](references.md) |
412+
| `igr_order` | Integer | Order of reconstruction for IGR [3,5] |
413+
| `alf_factor` | Real | Alpha factor for IGR entropic pressure (default 10) |
414+
| `igr_pres_lim` | Logical | Limit IGR pressure to avoid negative values (default F) |
415+
| `igr_iter_solver` | Integer | Solution method for IGR elliptic solve [1] Jacobi [2] Gauss-Seidel |
416+
| `num_igr_iters` | Integer | Number of iterations for for the IGR elliptic solve (default 2) |
417+
| `num_igr_warm_start_iters` | Integer | Number of iterations for the IGR elliptic solve at the first time step (defualt 50) |
411418

412419
- \* Options that work only with `model_eqns = 2`.
413420
- † Options that work only with ``cyl_coord = 'F'``.
@@ -501,7 +508,7 @@ This option requires `weno_Re_flux` to be true because cell boundary values are
501508
| `type`* | Integer | The geometry of the patch. [1]: Line [2]: Circle [3]: Rectangle |
502509
| `x[y,z]_centroid`* | Real | Centroid of the boundary patch in the x[y,z]-direction |
503510
| `length_x[y,z]`* | Real | Length of the boundary patch in the x[y,z]-direction |
504-
| `radius`* | Real | Radius of the boundary patch |
511+
| `radiue`* | Real | Radius of the boundary patch |
505512
*: These parameters should be prepended with `patch_bc(j)%` where $j$ is the patch index.
506513

507514
Boundary condition patches can be used with the following boundary condition types:

docs/documentation/references.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
- <a id="Bryngelson19">Bryngelson, S. H., Schmidmayer, K., Coralic, V., Meng, J. C., Maeda, K., and Colonius, T. (2019). Mfc: An open-source high-order multi-component, multi-phase, and multi-scale compressible flow solver. arXiv preprint arXiv:1907.10512.</a>
1212

13+
- <a id="Cao24">Cao A. and. Sch&auml;fer F. (2024). Information Geometric Regularization of the Barotropic Euler Equations. arXiv preprint arXiv:2308.14127.</a>
14+
1315
- <a id="Chen22">Chen, S. S., Li, J. P., Li, Z., Yuan, W., & Gao, Z. H. (2022). Anti-dissipation pressure correction under low Mach numbers for Godunov-type schemes. Journal of Computational Physics, 456, 111027. </a>
1416

1517
- <a id="Childs12">Childs, H., Brugger, E., Whitlock, B., Meredith, J., Ahern, S., Pugmire, D., Biagas, K., Miller, M., Harrison, C., Weber, G. H., Krishnan, H., Fogal, T., Sanderson, A., Garth, C., Bethel, E. W., Camp, D., R¨ubel, O., Durant, M., Favre, J. M., and Navr´atil, P. (2012). VisIt: An End-User Tool For Visualizing and Analyzing Very Large Data. In High Performance Visualization–Enabling Extreme-Scale Scientific Insight, pages 357–372.</a>
@@ -62,4 +64,4 @@
6264

6365
- <a id="Powell94">Powell, K. G. (1994). An approximate Riemann solver for magnetohydrodynamics: (That works in more than one dimension). In Upwind and high-resolution schemes (pp. 570-583). Springer.</a>
6466

65-
- <a id="Cao19">Cao, S., Zhang, Y., Liao, D., Zhong, P., and Wang, K. G. (2019). Shock-induced damage and dynamic fracture in cylindrical bodies submerged in liquid. International Journal of Solids and Structures, 169:55–71. Elsevier.</a>
67+
- <a id="Cao19">Cao, S., Zhang, Y., Liao, D., Zhong, P., and Wang, K. G. (2019). Shock-induced damage and dynamic fracture in cylindrical bodies submerged in liquid. International Journal of Solids and Structures, 169:55–71. Elsevier.</a>

src/post_process/m_start_up.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ impure subroutine s_save_data(t_step, varname, pres, c, H)
473473
end do
474474
end do
475475
else
476-
q_sf(:,:,:) = q_cons_vf(adv_idx%end)%sf(x_beg:x_end, y_beg:y_end, z_beg:z_end)
476+
q_sf(:, :, :) = q_cons_vf(adv_idx%end)%sf(x_beg:x_end, y_beg:y_end, z_beg:z_end)
477477
end if
478478
write (varname, '(A,I0)') 'alpha', num_fluids
479479
call s_write_variable_to_formatted_database_file(varname, t_step)

src/pre_process/include/3dHardcodedIC.fpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,11 @@
8686

8787
q_prim_vf(E_idx)%sf(i, j, k) = p_th*f_cut_on(r - r_th, eps_smooth)*f_cut_on(x_cc(i), eps_smooth) + p_am
8888

89-
9089
case (370)
9190
! This hardcoded case extrudes a 2D profile to initialize a 3D simulation domain
9291
@: HardcodedReadValues()
9392

94-
! Put your variable assignments here
93+
! Put your variable assignments here
9594
case default
9695
call s_int_to_str(patch_id, iStr)
9796
call s_mpi_abort("Invalid hcid specified for patch "//trim(iStr))

src/simulation/m_igr.fpp

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -122,40 +122,40 @@ contains
122122

123123
#:if not MFC_CASE_OPTIMIZATION
124124
if (igr_order == 3) then
125-
vidxb = -1; vidxe = 2;
126-
!$acc update device(vidxb, vidxe)
125+
vidxb = -1; vidxe = 2;
126+
!$acc update device(vidxb, vidxe)
127127

128-
@:ALLOCATE(coeff_L(0:2))
129-
coeff_L(0) = (2._wp/6._wp)
130-
coeff_L(1) = (5._wp/6._wp)
131-
coeff_L(2) = (-1._wp/6._wp)
132-
!$acc update device(coeff_L)
128+
@:ALLOCATE(coeff_L(0:2))
129+
coeff_L(0) = (2._wp/6._wp)
130+
coeff_L(1) = (5._wp/6._wp)
131+
coeff_L(2) = (-1._wp/6._wp)
132+
!$acc update device(coeff_L)
133133

134-
@:ALLOCATE(coeff_R(-1:1))
135-
coeff_R(1) = (2._wp/6._wp)
136-
coeff_R(0) = (5._wp/6._wp)
137-
coeff_R(-1) = (-1._wp/6._wp)
138-
!$acc update device(coeff_R)
134+
@:ALLOCATE(coeff_R(-1:1))
135+
coeff_R(1) = (2._wp/6._wp)
136+
coeff_R(0) = (5._wp/6._wp)
137+
coeff_R(-1) = (-1._wp/6._wp)
138+
!$acc update device(coeff_R)
139139

140140
elseif (igr_order == 5) then
141-
vidxb = -2; vidxe = 3;
142-
!$acc update device(vidxb, vidxe)
143-
144-
@:ALLOCATE(coeff_L(-1:3))
145-
coeff_L(-1) = (-3._wp/60._wp)
146-
coeff_L(0) = (27._wp/60._wp)
147-
coeff_L(1) = (47._wp/60._wp)
148-
coeff_L(2) = (-13._wp/60._wp)
149-
coeff_L(3) = (2._wp/60._wp)
150-
!$acc update device(coeff_L)
151-
152-
@:ALLOCATE(coeff_R(-2:2))
153-
coeff_R(2) = (-3._wp/60._wp)
154-
coeff_R(1) = (27._wp/60._wp)
155-
coeff_R(0) = (47._wp/60._wp)
156-
coeff_R(-1) = (-13._wp/60._wp)
157-
coeff_R(-2) = (2._wp/60._wp)
158-
!$acc update device(coeff_R)
141+
vidxb = -2; vidxe = 3;
142+
!$acc update device(vidxb, vidxe)
143+
144+
@:ALLOCATE(coeff_L(-1:3))
145+
coeff_L(-1) = (-3._wp/60._wp)
146+
coeff_L(0) = (27._wp/60._wp)
147+
coeff_L(1) = (47._wp/60._wp)
148+
coeff_L(2) = (-13._wp/60._wp)
149+
coeff_L(3) = (2._wp/60._wp)
150+
!$acc update device(coeff_L)
151+
152+
@:ALLOCATE(coeff_R(-2:2))
153+
coeff_R(2) = (-3._wp/60._wp)
154+
coeff_R(1) = (27._wp/60._wp)
155+
coeff_R(0) = (47._wp/60._wp)
156+
coeff_R(-1) = (-13._wp/60._wp)
157+
coeff_R(-2) = (2._wp/60._wp)
158+
!$acc update device(coeff_R)
159159
end if
160160
#:endif
161161

0 commit comments

Comments
 (0)