MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
DiscretizationBase.f90 File Reference

Go to the source code of this file.

Data Types

type  basedismodule::disbasetype

Modules

module  basedismodule

Functions/Subroutines

subroutine basedismodule::dis_df (this)
 Define the discretization.
subroutine basedismodule::dis_ac (this, moffset, sparse)
 Add connections to sparse cell connectivity matrix.
subroutine basedismodule::dis_mc (this, moffset, idxglo, matrix_sln)
 Map cell connections in the numerical solution coefficient matrix.
subroutine basedismodule::dis_ar (this, icelltype)
 Allocate and setup variables, and write binary grid file.
subroutine basedismodule::write_grb (this, icelltype)
 Write a binary grid file.
subroutine basedismodule::dis_da (this)
 Deallocate variables.
subroutine basedismodule::nodeu_to_string (this, nodeu, str)
 Convert a user nodenumber to a string (nodenumber), (k,j), or (k,i,j).
subroutine basedismodule::nodeu_to_array (this, nodeu, arr)
 Convert a user nodenumber to an array (nodenumber), (k,j), or (k,i,j).
integer(i4b) function basedismodule::get_nodeuser (this, noder)
 Convert a reduced nodenumber to a user node number.
integer(i4b) function basedismodule::get_nodenumber_idx1 (this, nodeu, icheck)
integer(i4b) function basedismodule::get_nodenumber_idx2 (this, k, j, icheck)
integer(i4b) function basedismodule::get_nodenumber_idx3 (this, k, i, j, icheck)
subroutine basedismodule::connection_normal (this, noden, nodem, ihc, xcomp, ycomp, zcomp, ipos)
 Get normal vector components between the cell and a given neighbor. The normal points outward from the shared face between noden and nodem.
subroutine basedismodule::connection_vector (this, noden, nodem, nozee, satn, satm, ihc, xcomp, ycomp, zcomp, conlen)
 Get unit vector components between the cell and a given neighbor. Saturation must be provided to compute cell center vertical coordinates. Also return the straight-line connection length.
subroutine, public basedismodule::dis_transform_xy (x, y, xorigin, yorigin, angrot, xglo, yglo)
 Get global (x, y) coordinates from cell-local coordinates.
subroutine basedismodule::get_dis_type (this, dis_type)
 Get the discretization type (DIS, DISV, or DISU).
integer(i4b) function basedismodule::get_dis_enum (this)
 Get the discretization type enumeration.
subroutine basedismodule::allocate_scalars (this, name_model, input_mempath)
 Allocate and initialize scalar variables.
subroutine basedismodule::allocate_arrays (this)
 Allocate and initialize arrays.
integer(i4b) function basedismodule::nodeu_from_string (this, lloc, istart, istop, in, iout, line, flag_string, allow_zero)
 Convert a string to a user nodenumber.
integer(i4b) function basedismodule::nodeu_from_cellid (this, cellid, inunit, iout, flag_string, allow_zero)
 Convert a cellid string to a user nodenumber.
integer(i4b) function basedismodule::noder_from_string (this, lloc, istart, istop, in, iout, line, flag_string)
 Convert a string to a reduced nodenumber.
integer(i4b) function basedismodule::noder_from_cellid (this, cellid, inunit, iout, flag_string, allow_zero)
 Convert cellid string to reduced nodenumber.
logical function basedismodule::supports_layers (this)
 Indicates whether the grid discretization supports layers.
integer(i4b) function basedismodule::get_ncpl (this)
 Return number of cells per layer. This is nodes for a DISU grid, as there are no layers.
real(dp) function basedismodule::get_cell_volume (this, n, x)
 Return volume of cell n based on x value passed.
subroutine basedismodule::get_polyverts (this, ic, polyverts, closed)
 Get a 2D array of cell polygon vertices, in clockwise order starting with the lower left corner.
integer(i4b) function basedismodule::get_npolyverts (this, ic, closed)
 Get the number of cell polygon vertices.
integer(i4b) function basedismodule::get_max_npolyverts (this, closed)
 Get the maximum number of cell polygon vertices.
subroutine basedismodule::read_int_array (this, line, lloc, istart, istop, iout, in, iarray, aname)
 Read an integer array.
subroutine basedismodule::read_dbl_array (this, line, lloc, istart, istop, iout, in, darray, aname)
 Read a double precision array.
subroutine basedismodule::fill_int_array (this, ibuff1, ibuff2)
 Fill an integer array.
subroutine basedismodule::fill_dbl_array (this, buff1, buff2)
 Fill a double precision array.
subroutine basedismodule::read_list (this, line_reader, in, iout, iprpak, nlist, inamedbound, iauxmultcol, nodelist, rlist, auxvar, auxname, boundname, label, pkgname, tsmanager, iscloc, indxconvertflux)
 Read a list using the list reader.
subroutine basedismodule::read_layer_array (this, nodelist, darray, ncolbnd, maxbnd, icolbnd, aname, inunit, iout)
 Read a 2d double array into col icolbnd of darray.
subroutine basedismodule::record_array (this, darray, iout, iprint, idataun, aname, cdatafmp, nvaluesp, nwidthp, editdesc, dinact)
 Record a double precision array.
subroutine basedismodule::record_connection_array (this, flowja, ibinun, iout)
 Record a connection-based double precision array.
subroutine basedismodule::noder_to_string (this, noder, str)
 Convert reduced node number to string (nodenumber), (k,j) or (k,i,j).
subroutine basedismodule::noder_to_array (this, noder, arr)
 Convert reduced node number to array (nodenumber), (k,j) or (k,i,j).
subroutine basedismodule::record_srcdst_list_header (this, text, textmodel, textpackage, dstmodel, dstpackage, naux, auxtxt, ibdchn, nlist, iout)
 Record list header for imeth=6.
subroutine basedismodule::record_srcdst_list_entry (this, ibdchn, noder, noder2, q, naux, aux, olconv, olconv2)
 Record list header.
subroutine basedismodule::nlarray_to_nodelist (this, darray, nodelist, maxbnd, nbound, aname)
 Convert an integer array to nodelist.
subroutine basedismodule::highest_active (this, n, ibound)
 Find the first highest active cell beneath cell n.
subroutine basedismodule::highest_saturated (this, n, sat)
 Find the first saturated cell beneath cell n.
real(dp) function basedismodule::get_area (this, node)
 Return the cell area for the given node.
real(dp) function basedismodule::get_area_factor (this, node, idx_conn)
 Calculate the area factor for the cell connection.
subroutine basedismodule::get_flow_width (this, n, m, idx_conn, width_n, width_m)
 Calculate the flow width between two cells.
logical(lgp) function basedismodule::is_3d (this)
 return true if grid is three dimensional
logical(lgp) function basedismodule::is_2d (this)
 return true if grid is two dimensional
logical(lgp) function basedismodule::is_1d (this)
 return true if grid is one dimensional