MODFLOW 6
version 6.7.0.dev0
USGS Modular Hydrologic Model
|
Functions/Subroutines | |
subroutine, public | vector_interpolation_2d (dis, flowja, nedges, nodedge, propsedge, vcomp, vmag, flowareaja) |
Interpolate 2D vector components at cell center. More... | |
subroutine, public vectorinterpolationmodule::vector_interpolation_2d | ( | class(disbasetype), intent(in) | dis, |
real(dp), dimension(:), intent(in) | flowja, | ||
integer(i4b), intent(in), optional | nedges, | ||
integer(i4b), dimension(:), intent(in), optional | nodedge, | ||
real(dp), dimension(:, :), intent(in), optional | propsedge, | ||
real(dp), dimension(:, :), intent(inout), optional | vcomp, | ||
real(dp), dimension(:), intent(inout), optional | vmag, | ||
real(dp), dimension(:), intent(in), optional | flowareaja | ||
) |
Given a component of a vector on the edges of all cells, assumed to be normal to the edge, interpolate a 2d vector using an XT3D-like interpolation. Can be used to calculate a cell-center velocity given face flows. Routine can optionally divide the edge flow by area, if provided, to interpolate velocity, for example. Sign on flowja is assumed to be positive into the cell.
Routine requires that disconnection_vector() and disconnection_normal() are available.
[in] | dis | discretization package object |
[in] | flowja | flow across each face in model grid (size njas) |
[in] | nedges | number of external edges for which a flow is provided |
[in] | nodedge | array of node numbers that have edges |
[in] | propsedge | edge properties (Q, area, nx, ny, distance) |
[in,out] | vcomp | vector components: vx, vy, vz (nodes, 3) |
[in,out] | vmag | vector magnitude (nodes) |
[in] | flowareaja | flow area across each face in model grid |
Definition at line 25 of file VectorInterpolation.f90.