Skip to content

Commit d91cb68

Browse files
I/O Improvements for run time info and EL Bubbles (#1015)
Co-authored-by: Spencer Bryngelson <[email protected]>
1 parent 1609707 commit d91cb68

File tree

35 files changed

+2227
-747
lines changed

35 files changed

+2227
-747
lines changed

docs/documentation/case.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ It is recommended to set `weno_eps` to $10^{-6}$ for WENO-JS, and to $10^{-40}$
482482

483483
- `mp_weno` activates monotonicity preservation in the WENO reconstruction (MPWENO) such that the values of reconstructed variables do not reside outside the range spanned by WENO stencil ([Balsara and Shu, 2000](references.md); [Suresh and Huynh, 1997](references.md)).
484484

485-
- `muscl_order` specifies the order of the MUSCL scheme that is used for spatial reconstruction of variables by an integer of 1, or 2, that corresponds to the 1st, and 2nd order respectively. When using `muscl_order = 2`, `muscl_lim` must be defined.
485+
- `muscl_order` specifies the order of the MUSCL scheme that is used for spatial reconstruction of variables by an integer of 1, or 2, that corresponds to the 1st, and 2nd order respectively. When using `muscl_order = 2`, `muscl_lim` must be defined.
486486

487-
- `muscl_lim` specifies the slope limiter that is used in 2nd order MUSCL Reconstruction by an integer from 1 through 5.
487+
- `muscl_lim` specifies the slope limiter that is used in 2nd order MUSCL Reconstruction by an integer from 1 through 5.
488488
`muscl_lim = 1`, `2`, `3`, `4`, and `5` correspond to minmod, monotonized central, Van Albada, Van Leer, and SUPERBEE, respectively.
489489

490490
- `int_comp` activates interface compression using THINC used in MUSCL Reconstruction, with control parameters (`ic_eps`, and `ic_beta`).
@@ -599,6 +599,24 @@ To restart the simulation from $k$-th time step, see [Restarting Cases](running.
599599
| `output_partial_domain` | Logical | Output part of the domain |
600600
| `[x,y,z]_output%beg` | Real | Beginning of the output domain in the [x,y,z]-direction |
601601
| `[x,y,z]_output%end` | Real | End of the output domain in the [x,y,z]-direction |
602+
| `lag_txt_wrt` | Logical | Write Lagrangian bubble data to `.dat` files |
603+
| `lag_header` | Logical | Write header to Lagrangian bubble `.dat` files |
604+
| `lag_db_wrt` | Logical | Write Lagrangian bubble data to silo/hdf5 database files |
605+
| `lag_id_wrt` | Logical | Add the global bubble idea to the database file |
606+
| `lag_pos_wrt` | Logical | Add the bubble position to the database file |
607+
| `lag_pos_prev_wrt` | Logical | Add the previous bubble position to the database file |
608+
| `lag_vel_wrt` | Logical | Add the bubble translational velocity to the database file |
609+
| `lag_rad_wrt` | Logical | Add the bubble radius to the database file |
610+
| `lag_rvel_wrt` | Logical | Add the bubble radial velocity to the database file |
611+
| `lag_r0_wrt` | Logical | Add the bubble initial radius to the database file |
612+
| `lag_rmax_wrt` | Logical | Add the bubble maximum radius to the database file |
613+
| `lag_rmin_wrt` | Logical | Add the bubble minimum radius to the database file |
614+
| `lag_dphidt_wrt` | Logical | Add the bubble subgrid velocity potential to the database file |
615+
| `lag_pres_wrt` | Logical | Add the bubble pressure to the database file |
616+
| `lag_mv_wrt` | Logical | Add the bubble vapor mass to the database file |
617+
| `lag_mg_wrt` | Logical | Add the bubble gas mass to the database file |
618+
| `lag_betaT_wrt` | Logical | Add the bubble heat flux model coefficient to the database file |
619+
| `lag_betaC_wrt` | Logical | Add the bubble mass flux model coefficient to the database file |
602620

603621
The table lists formatted database output parameters. The parameters define variables that are outputted from simulation and file types and formats of data as well as options for post-processing.
604622

@@ -628,7 +646,7 @@ If `file_per_process` is true, then pre_process, simulation, and post_process mu
628646

629647
- `output_partial_domain` activates the output of part of the domain specified by `[x,y,z]_output%beg` and `[x,y,z]_output%end`.
630648
This is useful for large domains where only a portion of the domain is of interest.
631-
It is not supported when `precision = 1` and `format = 1`.
649+
It is not supported when `precision = 1` and `format = 1`.
632650
It also cannot be enabled with `flux_wrt`, `heat_ratio_wrt`, `pres_inf_wrt`, `c_wrt`, `omega_wrt`, `ib`, `schlieren_wrt`, `qm_wrt`, or 'liutex_wrt'.
633651

634652
### 8. Acoustic Source {#acoustic-source}

examples/2D_lagrange_bubblescreen/case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"precision": 2,
112112
"prim_vars_wrt": "T",
113113
"parallel_io": "T",
114+
"lag_db_wrt": "T",
114115
# Patch 1: Water (left)
115116
"patch_icpp(1)%geometry": 3,
116117
"patch_icpp(1)%x_centroid": 0.0,

examples/3D_lagrange_bubblescreen/case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
"precision": 2,
121121
"prim_vars_wrt": "T",
122122
"parallel_io": "T",
123+
"lag_db_wrt": "T",
123124
# Patch 1: Water (left)
124125
"patch_icpp(1)%geometry": 9,
125126
"patch_icpp(1)%x_centroid": 0.0,

src/common/m_constants.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module m_constants
6161
! Lagrange bubbles constants
6262
integer, parameter :: mapCells = 3 !< Number of cells around the bubble where the smoothening function will have effect
6363
real(wp), parameter :: R_uni = 8314._wp !< Universal gas constant - J/kmol/K
64+
integer, parameter :: lag_io_vars = 21 ! Number of variables per particle for MPI_IO
6465

6566
! Strang Splitting constants
6667
real(wp), parameter :: dflt_adap_dt_tol = 1.e-4_wp !< Default tolerance for adaptive step size

src/common/m_mpi_common.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,14 +1570,14 @@ contains
15701570
15711571
#ifdef MFC_POST_PROCESS
15721572
! Ghost zone at the beginning
1573-
if (proc_coords(1) > 0 .and. format == 1 .and. n > 0) then
1573+
if (proc_coords(1) > 0 .and. format == 1) then
15741574
offset_x%beg = 2
15751575
else
15761576
offset_x%beg = 0
15771577
end if
15781578
15791579
! Ghost zone at the end
1580-
if (proc_coords(1) < num_procs_x - 1 .and. format == 1 .and. n > 0) then
1580+
if (proc_coords(1) < num_procs_x - 1 .and. format == 1) then
15811581
offset_x%end = 2
15821582
else
15831583
offset_x%end = 0

0 commit comments

Comments
 (0)