LAHARS-MODEL
0.1
templategithubproject
|
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... | |
subroutine | regrid_scalar (xin, yin, fin, xl, xr, yl, yr, fout) |
Scalar regrid (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_nw |
Topography interpolated at the NW corner of the control volumes. More... | |
real *8, dimension(:,:), allocatable | b_ne |
Topography interpolated at the NE corner of the control volumes. More... | |
real *8, dimension(:,:), allocatable | b_sw |
Topography interpolated at the SW corner of the control volumes. More... | |
real *8, dimension(:,:), allocatable | b_se |
Topography interpolated at the SE corner 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 |
Grid module.
This module contains the variables and the subroutines related to the computational grid
subroutine geometry_2d::init_grid | ( | ) |
Finite volume grid initialization.
This subroutine initialize the grids for the finite volume solver.
Definition at line 92 of file geometry_2d.f90.
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
x1 | original grid (input) |
f1 | original values (input) |
x2 | new point (output) |
f2 | interpolated value (output) |
Definition at line 398 of file geometry_2d.f90.
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
x1 | original grid (input) |
y1 | original grid (input) |
f1 | original values (input) |
x2 | new point (output) |
y2 | new point (output) |
f2 | interpolated value (output) |
Definition at line 456 of file geometry_2d.f90.
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.
x1 | original grid (input) |
y1 | original grid (input) |
f1 | original values (input) |
x2 | new point (output) |
y2 | new point (output) |
f2 | interpolated value (output) |
Definition at line 526 of file geometry_2d.f90.
subroutine geometry_2d::regrid_scalar | ( | real*8, dimension(:), intent(in) | xin, |
real*8, dimension(:), intent(in) | yin, | ||
real*8, dimension(:,:), intent(in) | fin, | ||
real*8, intent(in) | xl, | ||
real*8, intent(in) | xr, | ||
real*8, intent(in) | yl, | ||
real*8, intent(in) | yr, | ||
real*8, intent(out) | fout | ||
) |
Scalar regrid (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.
x1 | original grid (input) |
y1 | original grid (input) |
f1 | original values (input) |
xl | new point (input) |
xr | new point (input) |
yl | new point (input) |
yr | new point (input) |
f2 | interpolated value (output) |
Definition at line 610 of file geometry_2d.f90.
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
x | original grid (input) |
y | original grid (input) |
Definition at line 664 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::b_cent |
Topography at the centers of the control volumes.
Definition at line 47 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::b_ne |
Topography interpolated at the NE corner of the control volumes.
Definition at line 35 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::b_nw |
Topography interpolated at the NW corner of the control volumes.
Definition at line 32 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 50 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 53 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::b_se |
Topography interpolated at the SE corner 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_sw |
Topography interpolated at the SW corner of the control volumes.
Definition at line 38 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::b_ver |
Topography at the vertices of the control volumes.
Definition at line 44 of file geometry_2d.f90.
real*8 geometry_2d::cell_size |
Definition at line 80 of file geometry_2d.f90.
integer geometry_2d::comp_cells_x |
Number of control volumes x in the comp. domain.
Definition at line 76 of file geometry_2d.f90.
integer geometry_2d::comp_cells_y |
Number of control volumes y in the comp. domain.
Definition at line 78 of file geometry_2d.f90.
integer geometry_2d::comp_interfaces_x |
Number of interfaces (comp_cells_x+1)
Definition at line 77 of file geometry_2d.f90.
integer geometry_2d::comp_interfaces_y |
Number of interfaces (comp_cells_y+1)
Definition at line 79 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::curv_xy |
curvature wrt mixed directions for each cell
Definition at line 62 of file geometry_2d.f90.
real*8 geometry_2d::dx |
Control volumes size.
Definition at line 68 of file geometry_2d.f90.
real*8 geometry_2d::dx2 |
Half x Control volumes size.
Definition at line 74 of file geometry_2d.f90.
real*8 geometry_2d::dy |
Control volumes size.
Definition at line 71 of file geometry_2d.f90.
real*8 geometry_2d::dy2 |
Half y Control volumes size.
Definition at line 75 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::grav_surf |
gravity vector wrt surface coordinates for each cell
Definition at line 59 of file geometry_2d.f90.
real*8, dimension(:,:), allocatable geometry_2d::grid_output |
Solution in ascii grid format (ESRI)
Definition at line 56 of file geometry_2d.f90.
integer geometry_2d::n_topography_profile_x |
Definition at line 66 of file geometry_2d.f90.
integer geometry_2d::n_topography_profile_y |
Definition at line 66 of file geometry_2d.f90.
real*8, dimension(:,:,:), allocatable geometry_2d::topography_profile |
Definition at line 64 of file geometry_2d.f90.
real*8 geometry_2d::x0 |
Left of the physical domain.
Definition at line 69 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 70 of file geometry_2d.f90.
real*8 geometry_2d::y0 |
Bottom of the physical domain.
Definition at line 72 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 73 of file geometry_2d.f90.