MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
|
Subroutines controlling input and output. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine, public | in_out::set_paths |
Sets paths to all files. More... | |
subroutine, public | in_out::read_inputs |
Sets input values from the input file. More... | |
subroutine, public | in_out::save_integration_header |
Opens output files and writes a header. More... | |
subroutine, public | in_out::save_integration_step (iout) |
Writes an integration step to output file. More... | |
subroutine, public | in_out::save_integration_close (iout) |
Closes output files. More... | |
subroutine, public | in_out::load_old_results |
Loads old results. More... | |
Subroutines controlling input and output.
All input and output should be handled through this module.
Definition in file in_out.f90.
subroutine, public in_out::load_old_results | ( | ) |
Loads old results.
Reads the precalculated evolution of bubble radius.
Definition at line 402 of file in_out.f90.
References globals::outputs_1d.
subroutine public in_out::read_inputs | ( | ) |
Sets input values from the input file.
Reads inputs from json file.
Quantites are saved in global variables.
Definition at line 44 of file in_out.f90.
References globals::abs_tol, globals::amine_ini, globals::aoh, globals::avconc, globals::aw, globals::catalyst, globals::cbl, globals::co2_pos, globals::cpblg, globals::cpbll, globals::cppol, globals::d, globals::d0, globals::dhoh, globals::dhv, globals::dhw, globals::diff_model, globals::dilution, globals::eoh, globals::eta, globals::ew, globals::gelpointconv, globals::geometry, globals::inertial_term, globals::inputs, globals::int_meth, globals::integrator, globals::isocyanate1_ini, globals::isocyanate2_ini, globals::isocyanate3_ini, globals::itens_model, globals::its, globals::kh, globals::kin_model, globals::maxts, globals::mb, globals::mb2, globals::mb3, globals::mbl, globals::mshco, globals::nb0, globals::nco0, globals::ngas, globals::oh0, globals::p, globals::pamb, globals::polyol1_ini, globals::polyol2_ini, globals::pressure, globals::r0, globals::rel_tol, globals::rhobl, globals::rhop, globals::rhop_model, globals::shooting, globals::sigma, globals::sol_model, globals::solcorr, globals::surfactantpresent, globals::temp0, globals::visc_model, globals::w0, globals::wblpol, and globals::xgas.
subroutine, public in_out::save_integration_close | ( | integer, intent(in) | iout | ) |
Closes output files.
Soubroutine is called after the integration finishes.
[in] | iout | number of the time step |
Definition at line 362 of file in_out.f90.
References globals::fi5, globals::its, globals::kin_model, globals::outputs_af, globals::pressure, globals::radius, and globals::rhofoam.
subroutine, public in_out::save_integration_header | ( | ) |
Opens output files and writes a header.
Names of variables are written on the first line in the file. Soubroutine is called before the integration commences.
Definition at line 302 of file in_out.f90.
References globals::fi5, globals::kin_model, globals::outputs_1d, globals::outputs_c, globals::outputs_drain, globals::outputs_gr, and globals::outputs_kin.
subroutine, public in_out::save_integration_step | ( | integer, intent(in) | iout | ) |
Writes an integration step to output file.
Subroutine is called once per time step.
[in] | iout | number of the time step |
Definition at line 331 of file in_out.f90.
References globals::avconc, globals::eqconc, globals::eta, globals::fceq, globals::fi5, globals::grrate, globals::kin_model, globals::kineq, globals::mb, globals::mb2, globals::mb3, globals::ngas, globals::p, globals::porosity, globals::pressure, globals::radius, globals::rhofoam, globals::st, globals::temp, globals::time, globals::wblpol, globals::xoheq, globals::xweq, and globals::y.
subroutine, public in_out::set_paths | ( | ) |
Sets paths to all files.
Holds the names and paths of all files.
Definition at line 22 of file in_out.f90.
References globals::fileplacein, globals::fileplaceout, globals::inputs, globals::outputs_1d, globals::outputs_af, globals::outputs_c, globals::outputs_drain, globals::outputs_gr, and globals::outputs_kin.