MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_data_input Module Reference

Reads raw simulation grid and conservative-variable data for a given time-step and fills 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

Reads raw simulation grid and conservative-variable data for a given time-step and fills 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
local_start_idxStarting index for allocation
end_xEnd index for x dimension
end_yEnd index for y dimension
end_zEnd index for z dimension

Definition at line 217 of file m_data_input.f90.

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.

Definition at line 651 of file m_data_input.f90.

◆ 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.

Definition at line 594 of file m_data_input.f90.

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

Definition at line 76 of file m_data_input.f90.

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
t_stepTime step index

Definition at line 147 of file m_data_input.f90.

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

Definition at line 477 of file m_data_input.f90.

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

Definition at line 337 of file m_data_input.f90.

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

Definition at line 242 of file m_data_input.f90.

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)

Definition at line 116 of file m_data_input.f90.

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.

Definition at line 56 of file m_data_input.f90.

◆ ib_markers

type(integer_field), public m_data_input::ib_markers

Definition at line 63 of file m_data_input.f90.

◆ q_cons_temp

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

Definition at line 51 of file m_data_input.f90.

◆ q_cons_vf

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

Conservative variables.

Definition at line 48 of file m_data_input.f90.

◆ q_prim_vf

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

Primitive variables.

Definition at line 53 of file m_data_input.f90.

◆ q_t_sf

type(scalar_field), public m_data_input::q_t_sf

Temperature field.

Definition at line 59 of file m_data_input.f90.

◆ s_read_data_files

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

Definition at line 65 of file m_data_input.f90.