MAMMA  1.0
Conduitsolver
Functions/Subroutines | Variables
inpout Module Reference

Input/Output module. More...

Functions/Subroutines

subroutine init_param
 Initialization of the variables read from the input file. More...
 
subroutine read_param
 Read the input file. More...
 
subroutine output_steady (zeta, qp, radius)
 Write the steady solution on the output unit. More...
 
character *4 function lettera (k)
 Numeric to String conversion. More...
 

Variables

character(len=50) run_name
 Name of the run. More...
 
character(len=50) bak_name
 Name of the backup file for the parameters. More...
 
character(len=50) input_file
 Name of the file with the run parameters. More...
 
character(len=50) output_q_file
 Name of the output files. More...
 
character(len=50) output_p_file
 Name of the output files. More...
 
character(len=50) steady_p_file
 Name of the steady output file. More...
 
character(len=50) steady_q_file
 Name of the steady output file. More...
 
character(len=50) exit_file
 Name of the steady output file. More...
 
integer, parameter input_unit = 7
 Input data unit. More...
 
integer, parameter backup_unit = 8
 Backup input data unit. More...
 
integer, parameter output_q_unit = 10
 Output data unit. More...
 
integer, parameter output_p_unit = 11
 Output data unit. More...
 
integer, parameter steady_p_output_unit = 13
 Output unit. More...
 
integer, parameter steady_q_output_unit = 14
 Output unit. More...
 
integer, parameter dakota_unit = 15
 Dakota Output unit. More...
 
integer, parameter dakota_unit2 = 17
 Dakota Output unit. More...
 
integer, parameter exit_unit = 16
 Exit Output unit. More...
 
logical close_units
 
real *8 log10_k_cr
 
real *8 log10_drag_funct_coeff
 
real *8 log10_tau_p_coeff
 
real *8, dimension(:), allocatable log10_tau_c
 
real *8, dimension(:), allocatable log10_tau_d
 

Detailed Description

Input/Output module.

Author
Mattia de' Michieli Vitturi This module contains all the input/output subroutine and the realted variables.
Date
15/08/2011

Function/Subroutine Documentation

subroutine inpout::init_param ( )

Initialization of the variables read from the input file.

Author
Mattia de' Michieli Vitturi 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.
Date
26/08/2011

Definition at line 176 of file inpout.f90.

Here is the caller graph for this function:

character*4 function inpout::lettera ( integer  k)

Numeric to String conversion.

Author
Mattia de' Michieli Vitturi This function convert the integer in input into a numeric string for the subfix of the output files.
Date
27/20/2009
Parameters
kinteger to convert (input)

Definition at line 1404 of file inpout.f90.

subroutine inpout::output_steady ( real*8, intent(in)  zeta,
real*8, dimension(n_vars)  qp,
real*8, intent(in)  radius 
)

Write the steady solution on the output unit.

Author
Mattia de' Michieli Vitturi 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]zetavertical coordinate
[in]qparray of physical variables
Date
25/09/2012

Definition at line 1204 of file inpout.f90.

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine inpout::read_param ( )

Read the input file.

Author
Mattia de' Michieli Vitturi This subroutine read the input parameters from the file "two_phases.inp" and write a backup file of the input parameters with name "run_name.bak", where run_name is read from the input file.
Date
26/08/2011

Definition at line 452 of file inpout.f90.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

integer, parameter inpout::backup_unit = 8

Backup input data unit.

Definition at line 93 of file inpout.f90.

character(len=50) inpout::bak_name

Name of the backup file for the parameters.

Definition at line 84 of file inpout.f90.

logical inpout::close_units

Definition at line 103 of file inpout.f90.

integer, parameter inpout::dakota_unit = 15

Dakota Output unit.

Definition at line 98 of file inpout.f90.

integer, parameter inpout::dakota_unit2 = 17

Dakota Output unit.

Definition at line 99 of file inpout.f90.

character(len=50) inpout::exit_file

Name of the steady output file.

Definition at line 90 of file inpout.f90.

integer, parameter inpout::exit_unit = 16

Exit Output unit.

Definition at line 100 of file inpout.f90.

character(len=50) inpout::input_file

Name of the file with the run parameters.

Definition at line 85 of file inpout.f90.

integer, parameter inpout::input_unit = 7

Input data unit.

Definition at line 92 of file inpout.f90.

real*8 inpout::log10_drag_funct_coeff

Definition at line 108 of file inpout.f90.

real*8 inpout::log10_k_cr

Definition at line 105 of file inpout.f90.

real*8, dimension(:), allocatable inpout::log10_tau_c

Definition at line 110 of file inpout.f90.

real*8, dimension(:), allocatable inpout::log10_tau_d

Definition at line 111 of file inpout.f90.

real*8 inpout::log10_tau_p_coeff

Definition at line 108 of file inpout.f90.

character(len=50) inpout::output_p_file

Name of the output files.

Definition at line 87 of file inpout.f90.

integer, parameter inpout::output_p_unit = 11

Output data unit.

Definition at line 95 of file inpout.f90.

character(len=50) inpout::output_q_file

Name of the output files.

Definition at line 86 of file inpout.f90.

integer, parameter inpout::output_q_unit = 10

Output data unit.

Definition at line 94 of file inpout.f90.

character(len=50) inpout::run_name

Name of the run.

Definition at line 83 of file inpout.f90.

character(len=50) inpout::steady_p_file

Name of the steady output file.

Definition at line 88 of file inpout.f90.

integer, parameter inpout::steady_p_output_unit = 13

Output unit.

Definition at line 96 of file inpout.f90.

character(len=50) inpout::steady_q_file

Name of the steady output file.

Definition at line 89 of file inpout.f90.

integer, parameter inpout::steady_q_output_unit = 14

Output unit.

Definition at line 97 of file inpout.f90.