IMEX_SfloW2D  0.9
Shallowwatergranularflowmodel
Functions/Subroutines | Variables
geometry_2d Module Reference

Grid module. More...

Functions/Subroutines

subroutine init_grid
 Finite volume grid initialization. More...
 
subroutine interp_1d_scalar (x1, f1, x2, f2)
 Scalar interpolation. More...
 
subroutine interp_2d_scalar (x1, y1, f1, x2, y2, f2)
 Scalar interpolation (2D) More...
 
subroutine interp_2d_scalarb (x1, y1, f1, x2, y2, f2)
 Scalar interpolation (2D) More...
 
real *8 function topography_function (x, y)
 Topography function. More...
 

Variables

real *8, dimension(:), allocatable x_comp
 Location of the centers (x) of the control volume of the domain. More...
 
real *8, dimension(:), allocatable x_stag
 Location of the boundaries (x) of the control volumes of the domain. More...
 
real *8, dimension(:), allocatable y_comp
 Location of the centers (y) of the control volume of the domain. More...
 
real *8, dimension(:), allocatable y_stag
 Location of the boundaries (x) of the control volumes of the domain. More...
 
real *8, dimension(:,:), allocatable b_stag_x
 Topography at the boundaries (x) of the control volumes. More...
 
real *8, dimension(:,:), allocatable b_stag_y
 Topography at the boundaries (y) of the control volumes. More...
 
real *8, dimension(:,:), allocatable b_ver
 Topography at the vertices of the control volumes. More...
 
real *8, dimension(:,:), allocatable b_cent
 Topography at the centers of the control volumes. More...
 
real *8, dimension(:,:), allocatable b_prime_x
 Topography slope (x direction) at the centers of the control volumes. More...
 
real *8, dimension(:,:), allocatable b_prime_y
 Topography slope (y direction) at the centers of the control volumes. More...
 
real *8, dimension(:,:), allocatable grid_output
 Solution in ascii grid format (ESRI) More...
 
real *8, dimension(:,:), allocatable grav_surf
 gravity vector wrt surface coordinates for each cell More...
 
real *8, dimension(:,:), allocatable curv_xy
 curvature wrt mixed directions for each cell More...
 
real *8, dimension(:,:,:), allocatable topography_profile
 
integer n_topography_profile_x
 
integer n_topography_profile_y
 
real *8 dx
 Control volumes size. More...
 
real *8 x0
 Left of the physical domain. More...
 
real *8 xn
 Right of the physical domain. More...
 
real *8 dy
 Control volumes size. More...
 
real *8 y0
 Bottom of the physical domain. More...
 
real *8 yn
 Top of the physical domain. More...
 
real *8 dx2
 Half x Control volumes size. More...
 
real *8 dy2
 Half y Control volumes size. More...
 
integer comp_cells_x
 Number of control volumes x in the comp. domain. More...
 
integer comp_interfaces_x
 Number of interfaces (comp_cells_x+1) More...
 
integer comp_cells_y
 Number of control volumes y in the comp. domain. More...
 
integer comp_interfaces_y
 Number of interfaces (comp_cells_y+1) More...
 
real *8 cell_size
 

Detailed Description

Grid module.

This module contains the variables and the subroutines related to the computational grid

Function/Subroutine Documentation

subroutine geometry_2d::init_grid ( )

Finite volume grid initialization.

This subroutine initialize the grids for the finite volume solver.

Date
16/08/2011

Definition at line 80 of file geometry_2d.f90.

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine geometry_2d::interp_1d_scalar ( real*8, dimension(:), intent(in)  x1,
real*8, dimension(:), intent(in)  f1,
real*8, intent(in)  x2,
real*8, intent(out)  f2 
)

Scalar interpolation.

This subroutine interpolate the values of the array f1, defined on the grid points x1, at the point x2. The value are saved in f2

Date
13/02/2009
Parameters
x1original grid (input)
f1original values (input)
x2new point (output)
f2interpolated value (output)

Definition at line 379 of file geometry_2d.f90.

Here is the caller graph for this function:

subroutine geometry_2d::interp_2d_scalar ( real*8, dimension(:,:), intent(in)  x1,
real*8, dimension(:,:), intent(in)  y1,
real*8, dimension(:,:), intent(in)  f1,
real*8, intent(in)  x2,
real*8, intent(in)  y2,
real*8, intent(out)  f2 
)

Scalar interpolation (2D)

This subroutine interpolate the values of the array f1, defined on the grid points (x1,y1), at the point (x2,y2). The value are saved in f2

Date
OCTOBER 2016
Parameters
x1original grid (input)
y1original grid (input)
f1original values (input)
x2new point (output)
y2new point (output)
f2interpolated value (output)

Definition at line 437 of file geometry_2d.f90.

Here is the caller graph for this function:

subroutine geometry_2d::interp_2d_scalarb ( real*8, dimension(:), intent(in)  x1,
real*8, dimension(:), intent(in)  y1,
real*8, dimension(:,:), intent(in)  f1,
real*8, intent(in)  x2,
real*8, intent(in)  y2,
real*8, intent(out)  f2 
)

Scalar interpolation (2D)

This subroutine interpolate the values of the array f1, defined on the grid points (x1,y1), at the point (x2,y2). The value are saved in f2. In this case x1 and y1 are 1d arrays.

Date
OCTOBER 2016
Parameters
x1original grid (input)
y1original grid (input)
f1original values (input)
x2new point (output)
y2new point (output)
f2interpolated value (output)

Definition at line 507 of file geometry_2d.f90.

Here is the caller graph for this function:

real*8 function geometry_2d::topography_function ( real*8, intent(in)  x,
real*8, intent(in)  y 
)

Topography function.

This subroutine generates a point of the topography from the input (x,y) grid point

Date
OCTOBER 2016
Parameters
xoriginal grid (input)
yoriginal grid (input)

Definition at line 572 of file geometry_2d.f90.

Variable Documentation

real*8, dimension(:,:), allocatable geometry_2d::b_cent

Topography at the centers of the control volumes.

Definition at line 35 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::b_prime_x

Topography slope (x direction) at the centers of the control volumes.

Definition at line 38 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::b_prime_y

Topography slope (y direction) at the centers of the control volumes.

Definition at line 41 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::b_stag_x

Topography at the boundaries (x) of the control volumes.

Definition at line 26 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::b_stag_y

Topography at the boundaries (y) of the control volumes.

Definition at line 29 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::b_ver

Topography at the vertices of the control volumes.

Definition at line 32 of file geometry_2d.f90.

real*8 geometry_2d::cell_size

Definition at line 68 of file geometry_2d.f90.

integer geometry_2d::comp_cells_x

Number of control volumes x in the comp. domain.

Definition at line 64 of file geometry_2d.f90.

integer geometry_2d::comp_cells_y

Number of control volumes y in the comp. domain.

Definition at line 66 of file geometry_2d.f90.

integer geometry_2d::comp_interfaces_x

Number of interfaces (comp_cells_x+1)

Definition at line 65 of file geometry_2d.f90.

integer geometry_2d::comp_interfaces_y

Number of interfaces (comp_cells_y+1)

Definition at line 67 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::curv_xy

curvature wrt mixed directions for each cell

Definition at line 50 of file geometry_2d.f90.

real*8 geometry_2d::dx

Control volumes size.

Definition at line 56 of file geometry_2d.f90.

real*8 geometry_2d::dx2

Half x Control volumes size.

Definition at line 62 of file geometry_2d.f90.

real*8 geometry_2d::dy

Control volumes size.

Definition at line 59 of file geometry_2d.f90.

real*8 geometry_2d::dy2

Half y Control volumes size.

Definition at line 63 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::grav_surf

gravity vector wrt surface coordinates for each cell

Definition at line 47 of file geometry_2d.f90.

real*8, dimension(:,:), allocatable geometry_2d::grid_output

Solution in ascii grid format (ESRI)

Definition at line 44 of file geometry_2d.f90.

integer geometry_2d::n_topography_profile_x

Definition at line 54 of file geometry_2d.f90.

integer geometry_2d::n_topography_profile_y

Definition at line 54 of file geometry_2d.f90.

real*8, dimension(:,:,:), allocatable geometry_2d::topography_profile

Definition at line 52 of file geometry_2d.f90.

real*8 geometry_2d::x0

Left of the physical domain.

Definition at line 57 of file geometry_2d.f90.

real*8, dimension(:), allocatable geometry_2d::x_comp

Location of the centers (x) of the control volume of the domain.

Definition at line 14 of file geometry_2d.f90.

real*8, dimension(:), allocatable geometry_2d::x_stag

Location of the boundaries (x) of the control volumes of the domain.

Definition at line 17 of file geometry_2d.f90.

real*8 geometry_2d::xn

Right of the physical domain.

Definition at line 58 of file geometry_2d.f90.

real*8 geometry_2d::y0

Bottom of the physical domain.

Definition at line 60 of file geometry_2d.f90.

real*8, dimension(:), allocatable geometry_2d::y_comp

Location of the centers (y) of the control volume of the domain.

Definition at line 20 of file geometry_2d.f90.

real*8, dimension(:), allocatable geometry_2d::y_stag

Location of the boundaries (x) of the control volumes of the domain.

Definition at line 23 of file geometry_2d.f90.

real*8 geometry_2d::yn

Top of the physical domain.

Definition at line 61 of file geometry_2d.f90.