MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
|
File input and output. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine, public | inout::input () |
Reads input file. More... | |
subroutine, public | inout::output (iprof, time, ystate, neq, pp) |
Saves results to file. More... | |
subroutine, public | inout::print_header |
Prints header to console. More... | |
File input and output.
Inputs are loaded from JSON file, pressure profiles are saved in text files.
Definition in file InOut.f90.
subroutine, public inout::input | ( | ) |
Reads input file.
Inputs are saved to global variables.
Definition at line 18 of file InOut.f90.
References globals::dcell, globals::dfoam, globals::dg, globals::diffmodel, globals::divcell, globals::divsheet, globals::divwall, globals::dsheet, globals::dwall, globals::fstrut, globals::nroutputs, globals::pbg, globals::pressure, globals::rhof, globals::rhop, globals::sg, globals::sheet, globals::sheetdg, globals::sheetsg, globals::solmodel, globals::tbeg, globals::temp, globals::temp_cond, tend, and globals::xg.
subroutine, public inout::output | ( | integer, intent(in) | iprof, |
real(dp), intent(in) | time, | ||
real(dp), dimension(:), intent(in) | ystate, | ||
integer, intent(in) | neq, | ||
real(dp), dimension(:), intent(out) | pp | ||
) |
Saves results to file.
Saves partial pressure profiles in whole foam and in gas phase only.
[in] | time | time |
[in] | iprof | number time step |
[in] | neq | number of equations |
[in] | ystate | integrated variables |
[out] | pp | partial pressure |
Definition at line 303 of file InOut.f90.
References globals::dz, globals::ngas, and globals::temp.
subroutine, public inout::print_header | ( | ) |
Prints header to console.
Outputs useful information, which identifies, which foam is simulated.
Definition at line 375 of file InOut.f90.
References globals::dcell, globals::dfoam, globals::dg, globals::dgas, globals::divcell, globals::divsheet, globals::divwall, globals::dsheet, globals::dwall, globals::eps, globals::fstrut, globals::ncell, globals::rhof, globals::rhop, globals::sg, globals::sheet, globals::tbeg, globals::temp, globals::temp_cond, and tend.