![]() |
MODFLOW 6
version 6.7.0.dev2
USGS Modular Hydrologic Model
|
Functions/Subroutines | |
integer(i4b) function, public | number_connected_faces (dis, n) |
Returns the number of connected faces for a given cell. More... | |
real(dp) function, dimension(3), public | node_distance (dis, n, m) |
Returns the vector distance from cell n to cell m. More... | |
real(dp) function, dimension(3), public | cell_center (dis, n) |
Returns the center coordinates of a given cell. More... | |
real(dp) function, dimension(3), public disutilsmodule::cell_center | ( | class(disbasetype), intent(in) | dis, |
integer(i4b), intent(in) | n | ||
) |
This function computes the center of cell n
in the discretization. The center is returned as a 3-element vector containing the x, y, and z coordinates. The x and y coordinates are taken directly from the cell center arrays, while the z coordinate is computed as the average of the cell's top and bottom elevations.
Definition at line 89 of file DisUtils.f90.
real(dp) function, dimension(3), public disutilsmodule::node_distance | ( | class(disbasetype), intent(in) | dis, |
integer(i4b), intent(in) | n, | ||
integer(i4b), intent(in) | m | ||
) |
This function computes the vector from the center of cell n
to the center of cell m
in the discretization. If the cells are directly connected, the vector is computed along the connection direction, taking into account cell geometry and, if available, cell saturation. If the cells are not directly connected (e.g., when using an extended stencil such as neighbors-of-neighbors), the vector is simply the difference between their centroids: d = centroid(m) - centroid(n)
. The returned vector always points from cell n
to cell m
.
Definition at line 38 of file DisUtils.f90.
integer(i4b) function, public disutilsmodule::number_connected_faces | ( | class(disbasetype), intent(in) | dis, |
integer(i4b), intent(in) | n | ||
) |
This function computes the number of faces of cell n
that are connected to neighboring cells in the discretization. The value is determined from the connectivity information in the connection arrays, and does not include boundary faces (faces not connected to another cell).
Definition at line 21 of file DisUtils.f90.