MFC: Post-Process
High-fidelity multiphase flow simulation
Loading...
Searching...
No Matches
m_data_input Module Reference

This module features procedures, which for a specific time-step, read in the raw simulation data for the grid and the conservative variables and fill out their buffer regions. More...

Data Types

interface  s_read_abstract_data_files
 Subroutine for reading data files. More...
 

Functions/Subroutines

impure subroutine s_read_grid_data_direction (t_step_dir, direction, cb_array, d_array, cc_array, size_dim)
 Helper subroutine to read grid data files for a given direction.
 
impure subroutine s_setup_mpi_io_params (data_size, m_mok, n_mok, p_mok, wp_mok, mok, str_mok, nvars_mok)
 Helper subroutine to setup MPI data I/O parameters.
 
impure subroutine s_read_ib_data_files (file_loc_base, t_step)
 Helper subroutine to read IB data files.
 
impure subroutine s_allocate_field_arrays (local_start_idx, end_x, end_y, end_z)
 Helper subroutine to allocate field arrays for given dimensionality.
 
impure subroutine, public s_read_serial_data_files (t_step)
 This subroutine is called at each time-step that has to be post-processed in order to read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables.
 
impure subroutine, public s_read_parallel_data_files (t_step)
 This subroutine is called at each time-step that has to be post-processed in order to parallel-read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables.
 
impure subroutine s_read_parallel_conservative_data (t_step, m_mok, n_mok, p_mok, wp_mok, mok, str_mok, nvars_mok)
 Helper subroutine to read parallel conservative variable data.
 
impure subroutine, public s_initialize_data_input_module
 Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module.
 
impure subroutine, public s_finalize_data_input_module
 Deallocation procedures for the module.
 

Variables

type(scalar_field), dimension(:), allocatable, public q_cons_vf
 Conservative variables.
 
type(scalar_field), dimension(:), allocatable, public q_cons_temp
 
type(scalar_field), dimension(:), allocatable, public q_prim_vf
 Primitive variables.
 
type(integer_field), dimension(:, :), allocatable, public bc_type
 Boundary condition identifiers.
 
type(scalar_field), public q_t_sf
 Temperature field.
 
type(integer_field), public ib_markers
 
procedure(s_read_abstract_data_files), pointer, public s_read_data_files => null()
 

Detailed Description

This module features procedures, which for a specific time-step, read in the raw simulation data for the grid and the conservative variables and fill out their buffer regions.

Function/Subroutine Documentation

◆ s_allocate_field_arrays()

impure subroutine m_data_input::s_allocate_field_arrays ( integer, intent(in) local_start_idx,
integer, intent(in) end_x,
integer, intent(in) end_y,
integer, intent(in) end_z )

Helper subroutine to allocate field arrays for given dimensionality.

Parameters
start_idxStarting index for allocation
end_x,end_y,end_zEnd indices for each dimension
Here is the caller graph for this function:

◆ s_finalize_data_input_module()

impure subroutine, public m_data_input::s_finalize_data_input_module

Deallocation procedures for the module.

◆ s_initialize_data_input_module()

impure subroutine, public m_data_input::s_initialize_data_input_module

Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_grid_data_direction()

impure subroutine m_data_input::s_read_grid_data_direction ( character(len=*), intent(in) t_step_dir,
character(len=1), intent(in) direction,
real(wp), dimension(-1:), intent(out) cb_array,
real(wp), dimension(0:), intent(out) d_array,
real(wp), dimension(0:), intent(out) cc_array,
integer, intent(in) size_dim )

Helper subroutine to read grid data files for a given direction.

Parameters
t_step_dirDirectory containing the time-step data
directionDirection name ('x', 'y', 'z')
cb_arrayCell boundary array to populate
d_arrayCell width array to populate
cc_arrayCell center array to populate
size_dimSize of the dimension
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_ib_data_files()

impure subroutine m_data_input::s_read_ib_data_files ( character(len=*), intent(in) file_loc_base,
integer, intent(in), optional t_step )

Helper subroutine to read IB data files.

Parameters
file_loc_baseBase file location for IB data
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_parallel_conservative_data()

impure subroutine m_data_input::s_read_parallel_conservative_data ( integer, intent(in) t_step,
integer(kind=mpi_offset_kind), intent(inout) m_mok,
integer(kind=mpi_offset_kind), intent(inout) n_mok,
integer(kind=mpi_offset_kind), intent(inout) p_mok,
integer(kind=mpi_offset_kind), intent(inout) wp_mok,
integer(kind=mpi_offset_kind), intent(inout) mok,
integer(kind=mpi_offset_kind), intent(inout) str_mok,
integer(kind=mpi_offset_kind), intent(inout) nvars_mok )

Helper subroutine to read parallel conservative variable data.

Parameters
t_stepCurrent time-step
m_MOK,n_MOK,p_MOKMPI offset kinds for dimensions
WP_MOK,MOK,str_MOK,NVARS_MOKOther MPI offset kinds
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_parallel_data_files()

impure subroutine, public m_data_input::s_read_parallel_data_files ( integer, intent(in) t_step)

This subroutine is called at each time-step that has to be post-processed in order to parallel-read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables.

Parameters
t_stepCurrent time-step
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_read_serial_data_files()

impure subroutine, public m_data_input::s_read_serial_data_files ( integer, intent(in) t_step)

This subroutine is called at each time-step that has to be post-processed in order to read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables.

Parameters
t_stepCurrent time-step
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_setup_mpi_io_params()

impure subroutine m_data_input::s_setup_mpi_io_params ( integer, intent(out) data_size,
integer(kind=mpi_offset_kind), intent(out) m_mok,
integer(kind=mpi_offset_kind), intent(out) n_mok,
integer(kind=mpi_offset_kind), intent(out) p_mok,
integer(kind=mpi_offset_kind), intent(out) wp_mok,
integer(kind=mpi_offset_kind), intent(out) mok,
integer(kind=mpi_offset_kind), intent(out) str_mok,
integer(kind=mpi_offset_kind), intent(out) nvars_mok )

Helper subroutine to setup MPI data I/O parameters.

Parameters
data_sizeLocal array size (output)
m_MOK,n_MOK,p_MOKMPI offset kinds for dimensions (output)
WP_MOK,MOK,str_MOK,NVARS_MOKOther MPI offset kinds (output)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ bc_type

type(integer_field), dimension(:, :), allocatable, public m_data_input::bc_type

Boundary condition identifiers.

◆ ib_markers

type(integer_field), public m_data_input::ib_markers

◆ q_cons_temp

type(scalar_field), dimension(:), allocatable, public m_data_input::q_cons_temp

◆ q_cons_vf

type(scalar_field), dimension(:), allocatable, public m_data_input::q_cons_vf

Conservative variables.

◆ q_prim_vf

type(scalar_field), dimension(:), allocatable, public m_data_input::q_prim_vf

Primitive variables.

◆ q_t_sf

type(scalar_field), public m_data_input::q_t_sf

Temperature field.

◆ s_read_data_files

procedure(s_read_abstract_data_files), pointer, public m_data_input::s_read_data_files => null()