version 0.6.0
Loading...
Searching...
No Matches
mod_interpolate_scalar_cell_to_vertices Module Reference

Interpolate scalar from cells to vertices.

Functions/Subroutines

subroutine interpolate_scalar_cell_to_vertices (field_cell, field_vertices, order)
 Interpolate at the cell's vertices the field stored at cell centers.
 
subroutine interpolate_scalar_cell_to_vertices_generic (field_cell, field_vertices, scheme)
 Interpolate at the cell's vertices the field stored at cell centers IMPORTANT: the field needs to be known one cell outside the boundary (see extrapolation) field_vertices is of size (NX+1)x(NY+1)x(NZ+1) with null values on the boundaries.
 

Function/Subroutine Documentation

◆ interpolate_scalar_cell_to_vertices()

subroutine mod_interpolate_scalar_cell_to_vertices::interpolate_scalar_cell_to_vertices ( double precision, dimension(:,:,:), intent(in) field_cell,
double precision, dimension(:,:,:), intent(inout) field_vertices,
integer, intent(in), optional order )
Warning
the field needs to be known one cell outside the boundary
Note
field_vertices is of size (NX+1)x(NY+1)x(NZ+1) with null values on the boundaries
Todo
deal with the boundaries (extrapolate?) With the index (i,j,k) corresponding to the intersection of cells (i+{0,1},j+{0,1},k+{0,1})
Parameters
[in]field_cellThe input field
[in,out]field_verticesThe resulting field
[in]order*(optional)* The order of interpolation: space_order_2 (default) or space_order_4

◆ interpolate_scalar_cell_to_vertices_generic()

subroutine mod_interpolate_scalar_cell_to_vertices::interpolate_scalar_cell_to_vertices_generic ( double precision, dimension(:,:,:), intent(in) field_cell,
double precision, dimension(:,:,:), intent(inout) field_vertices,
class(t_int_scheme), intent(in) scheme )
Todo
deal with the boundaries (extrapolate?) With the index (i,j,k) corresponding to the intersection of cells (i+{0,1},j+{0,1},k+{0,1})
Parameters
field_cellThe input field
field_verticesThe resulting field
[in]schemeThe interpolation scheme