|
MFC
Exascale flow solver
|
Writes post-processed grid and flow-variable data to Silo-HDF5 or binary database files. More...
Functions/Subroutines | |
| impure subroutine, public | s_initialize_data_output_module () |
| Allocate storage arrays, configure output directories, and count flow variables for formatted database output. | |
| impure subroutine, public | s_define_output_region |
| Compute the cell-index bounds for the user-specified partial output domain in each coordinate direction. | |
| impure subroutine, public | s_open_formatted_database_file (t_step) |
| Open (or create) the Silo-HDF5 or Binary formatted database slave and master files for a given time step. | |
| impure subroutine, public | s_open_intf_data_file () |
| Open the interface data file for appending extracted interface coordinates. | |
| impure subroutine, public | s_open_energy_data_file () |
| Open the energy data file for appending volume-integrated energy budget quantities. | |
| impure subroutine, public | s_write_grid_to_formatted_database_file (t_step) |
| Write the computational grid (cell-boundary coordinates) to the formatted database slave and master files. | |
| impure subroutine, public | s_write_variable_to_formatted_database_file (varname, t_step) |
| Write a single flow variable field to the formatted database slave and master files for a given time step. | |
| impure subroutine, public | s_write_amr_to_formatted_database_file (t_step) |
| Overlay the AMR refined solution. Each owned fine block is written as an extra rectilinear quadmesh (Silo) or an appended block record (binary), carrying the primitive fields (mixture density, velocities, pressure, volume fractions) at true fine resolution. On rank 0 the Silo block meshes/vars are registered into the /root 'amr_blocks' multimesh and 'amr_' multivars so VisIt/ParaView overlays them on the coarse 'rectilinear_grid'. Guarded by amr at the caller; a no-op when no fine blocks are present. Binary layout per rank: an integer block count, then per block a header [lo(3), hi(3), m, n, p, nvars], the fine cell boundaries (x_cb, then y_cb/z_cb if active), then per variable a [name, field] record (same convention as the coarse binary variables). | |
| impure subroutine, public | s_write_lag_bubbles_results_to_text (t_step) |
| Write the post-processed results in the folder 'lag_bubbles_data'. | |
| impure subroutine, public | s_write_lag_bubbles_to_formatted_database_file (t_step) |
| Read Lagrangian bubble restart data and write bubble positions and scalar fields to the Silo database. | |
| subroutine | s_write_lag_variable_to_formatted_database_file (varname, t_step, data, nbubs) |
| Write a single Lagrangian bubble point-variable to the Silo database slave and master files. | |
| impure subroutine, public | s_write_ib_state_files () |
| Convert the binary immersed-boundary state file to per-body formatted text files. | |
| impure subroutine, public | s_write_intf_data_file (q_prim_vf) |
| Extract the volume-fraction interface contour from primitive fields and write the coordinates to the interface data file. | |
| impure subroutine, public | s_write_energy_data_file (q_prim_vf, q_cons_vf) |
| Compute volume-integrated kinetic, potential, and internal energies and write the energy budget to the energy data file. | |
| impure subroutine, public | s_write_ib_bodies_to_formatted_database_file (t_step) |
| Read IB state and write a Silo point mesh with per-body scalar fields. | |
| subroutine | s_write_ib_variable (varname, t_step, data, nbodies) |
| Write a single IB point-variable to the Silo database slave and master files. | |
| impure subroutine, public | s_close_formatted_database_file () |
| Close the formatted database slave file and, for the root process, the master file. | |
| impure subroutine | s_close_binary_database_file (unit) |
| Close a Binary database file and backfill the variable count into its header record (m, n, p, dbvars). | |
| impure subroutine, public | s_close_intf_data_file () |
| Close the interface data file. | |
| impure subroutine, public | s_close_energy_data_file () |
| Close the energy data file. | |
| impure subroutine, public | s_finalize_data_output_module () |
| Deallocate module arrays and release all data-output resources. | |
Variables | |
| integer, parameter | db_real = merge(DB_DOUBLE, DB_FLOAT, wp == dp) |
| Silo datatype of a real(wp) array (grid coordinates, point meshes and point variables). A –single build must not declare DB_DOUBLE for wp data: Silo then reads two floats per coordinate and the second half of every array from past its end (garbage, sometimes NaN). | |
| type(output_context), public | out |
| Output workspace: flow variable buffers, VisIt extents/offsets, directory paths, file handles, and variable count. | |
| integer, private | err |
| character(len=13), private | lag_name = 'lag_bubbles' |
| Name of the Lagrangian output files and Silo point mesh: lag_bubbles or lag_particles. | |
Writes post-processed grid and flow-variable data to Silo-HDF5 or binary database files.
| impure subroutine m_data_output::s_close_binary_database_file | ( | integer, intent(in) | unit | ) |
Close a Binary database file and backfill the variable count into its header record (m, n, p, dbvars).
Definition at line 2032 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_close_energy_data_file |
Close the energy data file.
Definition at line 2059 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_close_formatted_database_file |
Close the formatted database slave file and, for the root process, the master file.
Definition at line 2017 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_close_intf_data_file |
Close the interface data file.
Definition at line 2052 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_define_output_region |
Compute the cell-index bounds for the user-specified partial output domain in each coordinate direction.
Definition at line 212 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_finalize_data_output_module |
Deallocate module arrays and release all data-output resources.
Definition at line 2066 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_initialize_data_output_module |
Allocate storage arrays, configure output directories, and count flow variables for formatted database output.
Definition at line 54 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_open_energy_data_file |
Open the energy data file for appending volume-integrated energy budget quantities.
Definition at line 407 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_open_formatted_database_file | ( | integer, intent(in) | t_step | ) |
Open (or create) the Silo-HDF5 or Binary formatted database slave and master files for a given time step.
Definition at line 327 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_open_intf_data_file |
Open the interface data file for appending extracted interface coordinates.
Definition at line 395 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_amr_to_formatted_database_file | ( | integer, intent(in) | t_step | ) |
Overlay the AMR refined solution. Each owned fine block is written as an extra rectilinear quadmesh (Silo) or an appended block record (binary), carrying the primitive fields (mixture density, velocities, pressure, volume fractions) at true fine resolution. On rank 0 the Silo block meshes/vars are registered into the /root 'amr_blocks' multimesh and 'amr_' multivars so VisIt/ParaView overlays them on the coarse 'rectilinear_grid'. Guarded by amr at the caller; a no-op when no fine blocks are present. Binary layout per rank: an integer block count, then per block a header [lo(3), hi(3), m, n, p, nvars], the fine cell boundaries (x_cb, then y_cb/z_cb if active), then per variable a [name, field] record (same convention as the coarse binary variables).
Definition at line 814 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_energy_data_file | ( | type(scalar_field), dimension(sys_size), intent(in) | q_prim_vf, |
| type(scalar_field), dimension(sys_size), intent(in) | q_cons_vf ) |
Compute volume-integrated kinetic, potential, and internal energies and write the energy budget to the energy data file.
Definition at line 1679 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_grid_to_formatted_database_file | ( | integer, intent(in) | t_step | ) |
Write the computational grid (cell-boundary coordinates) to the formatted database slave and master files.
DBADDDOPT takes doubles whatever wp is. Allocated explicitly, never by assignment: ifx/ifort default to -assume norealloc_lhs, where assigning to an unallocated allocatable is an error, not an allocation.
Definition at line 419 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_ib_bodies_to_formatted_database_file | ( | integer, intent(in) | t_step | ) |
Read IB state and write a Silo point mesh with per-body scalar fields.
Definition at line 1765 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_ib_state_files |
Convert the binary immersed-boundary state file to per-body formatted text files.
Definition at line 1542 of file m_data_output.fpp.f90.
| subroutine m_data_output::s_write_ib_variable | ( | character(len=*), intent(in) | varname, |
| integer, intent(in) | t_step, | ||
| real(wp), dimension(:), intent(in) | data, | ||
| integer, intent(in) | nbodies ) |
Write a single IB point-variable to the Silo database slave and master files.
Definition at line 1988 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_intf_data_file | ( | type(scalar_field), dimension(sys_size), intent(in) | q_prim_vf | ) |
Extract the volume-fraction interface contour from primitive fields and write the coordinates to the interface data file.
Definition at line 1593 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_lag_bubbles_results_to_text | ( | integer, intent(in) | t_step | ) |
Write the post-processed results in the folder 'lag_bubbles_data'.
Definition at line 987 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_lag_bubbles_to_formatted_database_file | ( | integer, intent(in) | t_step | ) |
Read Lagrangian bubble restart data and write bubble positions and scalar fields to the Silo database.
Definition at line 1163 of file m_data_output.fpp.f90.
| subroutine m_data_output::s_write_lag_variable_to_formatted_database_file | ( | character(len=*), intent(in) | varname, |
| integer, intent(in) | t_step, | ||
| real(wp), dimension(1:), intent(in), optional | data, | ||
| integer, intent(in), optional | nbubs ) |
Write a single Lagrangian bubble point-variable to the Silo database slave and master files.
Definition at line 1495 of file m_data_output.fpp.f90.
| impure subroutine, public m_data_output::s_write_variable_to_formatted_database_file | ( | character(len=*), intent(in) | varname, |
| integer, intent(in) | t_step ) |
Write a single flow variable field to the formatted database slave and master files for a given time step.
see s_open_formatted_database_file: allocated explicitly for -assume norealloc_lhs
Definition at line 631 of file m_data_output.fpp.f90.
Silo datatype of a real(wp) array (grid coordinates, point meshes and point variables). A –single build must not declare DB_DOUBLE for wp data: Silo then reads two floats per coordinate and the second half of every array from past its end (garbage, sometimes NaN).
Definition at line 40 of file m_data_output.fpp.f90.
|
private |
Definition at line 46 of file m_data_output.fpp.f90.
|
private |
Name of the Lagrangian output files and Silo point mesh: lag_bubbles or lag_particles.
Definition at line 49 of file m_data_output.fpp.f90.
| type(output_context), public m_data_output::out |
Output workspace: flow variable buffers, VisIt extents/offsets, directory paths, file handles, and variable count.
Definition at line 43 of file m_data_output.fpp.f90.