PLUME-MoM-TSM  1.0
VolcanicPlumeModel
Functions/Subroutines | Variables
inpout_2d Module Reference

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(bch_bcw
 
type(bchu_bcw
 
type(bchv_bcw
 
type(bch_bce
 
type(bchu_bce
 
type(bchv_bce
 
type(bch_bcs
 
type(bchu_bcs
 
type(bchv_bcs
 
type(bch_bcn
 
type(bchu_bcn
 
type(bchv_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
 

Detailed Description

Input/Output module.

This module contains all the input/output subroutine and the realted variables.

Date
07/10/2016
Author
Mattia de' Michieli Vitturi

Function/Subroutine Documentation

subroutine inpout_2d::close_units ( )

Definition at line 298 of file inpout_2d.f90.

Here is the caller graph for this function:

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.

Author
Mattia de' Michieli Vitturi
Date
07/10/2016

Definition at line 106 of file inpout_2d.f90.

Here is the caller graph for this function:

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.

Parameters
[in]kinteger to convert
Date
07/10/2016
Author
Mattia de' Michieli Vitturi

Definition at line 318 of file inpout_2d.f90.

Here is the caller graph for this function:

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.

Parameters
[in]toutput time
Author
Mattia de' Michieli Vitturi
Date
07/10/2016

Definition at line 215 of file inpout_2d.f90.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

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.

  • T => write conservative variables on file
  • F => do not write the conservative variables

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.

  • T => write physical variables on file
  • F => do not write the physical variables

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.