PLUME-MoM-TSM
1.0
VolcanicPlumeModel
|
Input/Output module. More...
Functions/Subroutines | |
subroutine | init_param |
Initialization of the variables read from the input file. More... | |
subroutine | output_solution (time, steady_state) |
Write the solution on the output unit. More... | |
subroutine | close_units |
character *4 function | lettera (k) |
Numeric to String conversion. More... | |
Variables | |
character(len=40) | output_file |
Name of the output files. More... | |
character(len=40) | output_file_2d |
Name of the output files. More... | |
integer, parameter | output_unit = 9 |
Output data unit. More... | |
integer, parameter | output_unit_2d = 12 |
Output data 2D unit. More... | |
integer | output_idx |
Counter for the output files. More... | |
logical | output_phys_flag |
Flag to save the physical variables on file *.p_2d. More... | |
logical | output_cons_flag |
Flag to save the conservative variables on file *.q_2d. More... | |
type(bc) | h_bcw |
type(bc) | hu_bcw |
type(bc) | hv_bcw |
type(bc) | h_bce |
type(bc) | hu_bce |
type(bc) | hv_bce |
type(bc) | h_bcs |
type(bc) | hu_bcs |
type(bc) | hv_bcs |
type(bc) | h_bcn |
type(bc) | hu_bcn |
type(bc) | hv_bcn |
integer | ncols |
integer | nrows |
integer | nodata_value |
real(wp) | xllcorner |
real(wp) | yllcorner |
real(wp) | cellsize |
logical | write_first_q |
integer | n_probes |
real(wp), dimension(:,:), allocatable | probes_coords |
real(wp), dimension(:,:), allocatable | h_old |
Input/Output module.
This module contains all the input/output subroutine and the realted variables.
subroutine inpout_2d::close_units | ( | ) |
subroutine inpout_2d::init_param | ( | ) |
Initialization of the variables read from the input file.
This subroutine initialize the input variables with default values that solve for a Riemann problem. If the input file does not exist one is created with the default values.
Definition at line 106 of file inpout_2d.f90.
character*4 function inpout_2d::lettera | ( | integer | k | ) |
Numeric to String conversion.
This function convert the integer in input into a numeric string for the subfix of the output files.
[in] | k | integer to convert |
Definition at line 318 of file inpout_2d.f90.
subroutine inpout_2d::output_solution | ( | real(wp), intent(in) | time, |
logical, intent(in) | steady_state | ||
) |
Write the solution on the output unit.
This subroutine write the parameters of the grid, the output time and the solution to a file with the name "run_name.q****", where run_name is the name of the run read from the input file and **** is the counter of the output.
[in] | t | output time |
Definition at line 215 of file inpout_2d.f90.
real(wp) inpout_2d::cellsize |
Definition at line 80 of file inpout_2d.f90.
type(bc) inpout_2d::h_bce |
Definition at line 69 of file inpout_2d.f90.
type(bc) inpout_2d::h_bcn |
Definition at line 75 of file inpout_2d.f90.
type(bc) inpout_2d::h_bcs |
Definition at line 72 of file inpout_2d.f90.
type(bc) inpout_2d::h_bcw |
Definition at line 66 of file inpout_2d.f90.
real(wp), dimension(:,:), allocatable inpout_2d::h_old |
Definition at line 88 of file inpout_2d.f90.
type(bc) inpout_2d::hu_bce |
Definition at line 69 of file inpout_2d.f90.
type(bc) inpout_2d::hu_bcn |
Definition at line 75 of file inpout_2d.f90.
type(bc) inpout_2d::hu_bcs |
Definition at line 72 of file inpout_2d.f90.
type(bc) inpout_2d::hu_bcw |
Definition at line 66 of file inpout_2d.f90.
type(bc) inpout_2d::hv_bce |
Definition at line 69 of file inpout_2d.f90.
type(bc) inpout_2d::hv_bcn |
Definition at line 75 of file inpout_2d.f90.
type(bc) inpout_2d::hv_bcs |
Definition at line 72 of file inpout_2d.f90.
type(bc) inpout_2d::hv_bcw |
Definition at line 66 of file inpout_2d.f90.
integer inpout_2d::n_probes |
Definition at line 84 of file inpout_2d.f90.
integer inpout_2d::ncols |
Definition at line 78 of file inpout_2d.f90.
integer inpout_2d::nodata_value |
Definition at line 78 of file inpout_2d.f90.
integer inpout_2d::nrows |
Definition at line 78 of file inpout_2d.f90.
logical inpout_2d::output_cons_flag |
Flag to save the conservative variables on file *.q_2d.
Definition at line 63 of file inpout_2d.f90.
character(len=40) inpout_2d::output_file |
Name of the output files.
Definition at line 44 of file inpout_2d.f90.
character(len=40) inpout_2d::output_file_2d |
Name of the output files.
Definition at line 45 of file inpout_2d.f90.
integer inpout_2d::output_idx |
Counter for the output files.
Definition at line 51 of file inpout_2d.f90.
logical inpout_2d::output_phys_flag |
Flag to save the physical variables on file *.p_2d.
Definition at line 57 of file inpout_2d.f90.
integer, parameter inpout_2d::output_unit = 9 |
Output data unit.
Definition at line 47 of file inpout_2d.f90.
integer, parameter inpout_2d::output_unit_2d = 12 |
Output data 2D unit.
Definition at line 48 of file inpout_2d.f90.
real(wp), dimension(:,:), allocatable inpout_2d::probes_coords |
Definition at line 86 of file inpout_2d.f90.
logical inpout_2d::write_first_q |
Definition at line 82 of file inpout_2d.f90.
real(wp) inpout_2d::xllcorner |
Definition at line 80 of file inpout_2d.f90.
real(wp) inpout_2d::yllcorner |
Definition at line 80 of file inpout_2d.f90.