MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
integration.f90 File Reference

Sets up and integrates the models. More...

Go to the source code of this file.

Functions/Subroutines

subroutine, public integration::preprocess
 Prepares integration.
 
subroutine, public integration::integrate
 Calculates the evolution of concentrations of gases. More...
 
subroutine integration::drain_residual (n, x, fvec, iflag)
 Residual function for the draininng. More...
 

Variables

procedure(sub), pointer integration::odesystem_ptr => null()
 pointer to the subroutine with the system of ODEs
 

Detailed Description

Sets up and integrates the models.

Author
Pavel Ferkl

Prepares for and uses the ODEPACK solver..

Definition in file integration.f90.

Function/Subroutine Documentation

◆ drain_residual()

subroutine integration::drain_residual ( integer, intent(in)  n,
real(dp), dimension(n), intent(in)  x,
real(dp), dimension(n), intent(out)  fvec,
integer, intent(inout)  iflag 
)

Residual function for the draininng.

Parameters
[in]nnumber of equations
[in,out]iflagerror flag
[in]xindependent variables
[out]fvecfunction values

Definition at line 111 of file integration.f90.

References globals::y.

◆ integrate()

subroutine public integration::integrate ( )

Calculates the evolution of concentrations of gases.

Performes the main integration loop.

Loads the inputs, prepares the integration and holds the main integration loop. And cleans up afterwards.

Definition at line 19 of file integration.f90.

References globals::dcell, globals::dfoam, globals::dg, globals::dgas, globals::diffmodel, globals::divcell, globals::divsheet, globals::divwall, globals::dsheet, globals::dwall, globals::dz, globals::eps, globals::fstrut, globals::ncell, globals::ngas, 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.