MODFLOW 6
version 6.7.0.dev0
USGS Modular Hydrologic Model
|
Data Types | |
type | disv2dtype |
Vertex grid discretization. More... | |
type | disvfoundtype |
Functions/Subroutines | |
subroutine, public | disv2d_cr (dis, name_model, input_mempath, inunit, iout) |
Create a new discretization by vertices object. More... | |
subroutine | disv2d_load (this) |
Transfer IDM data into this discretization object. More... | |
subroutine | disv2d_df (this) |
Define the discretization. More... | |
subroutine | disv2d_da (this) |
subroutine | source_options (this) |
Copy options from IDM into package. More... | |
subroutine | log_options (this, found) |
Write user options to list file. More... | |
subroutine | source_dimensions (this) |
Copy dimensions from IDM into package. More... | |
subroutine | log_dimensions (this, found) |
Write dimensions to list file. More... | |
subroutine | source_griddata (this) |
Copy grid data from IDM into package. More... | |
subroutine | log_griddata (this, found) |
Write griddata found to list file. More... | |
subroutine | grid_finalize (this) |
Finalize grid (check properties, allocate arrays, compute connections) More... | |
subroutine | source_vertices (this) |
Load grid vertices from IDM into package. More... | |
subroutine | define_cellverts (this, icell2d, ncvert, icvert) |
Build data structures to hold cell vertex info. More... | |
subroutine | source_cell2d (this) |
Copy cell2d data from IDM into package. More... | |
subroutine | connect (this) |
Build grid connections. More... | |
subroutine | write_grb (this, icelltype) |
Write a binary grid file. More... | |
subroutine | nodeu_to_string (this, nodeu, str) |
Convert a user nodenumber to a string (nodenumber) or (k,j) More... | |
subroutine | nodeu_to_array (this, nodeu, arr) |
Convert a user nodenumber to an array (nodenumber) or (k,j) More... | |
integer(i4b) function | get_nodenumber_idx1 (this, nodeu, icheck) |
Get reduced node number from user node number. More... | |
subroutine | connection_normal (this, noden, nodem, ihc, xcomp, ycomp, zcomp, ipos) |
Get normal vector components between the cell and a given neighbor. More... | |
subroutine | connection_vector (this, noden, nodem, nozee, satn, satm, ihc, xcomp, ycomp, zcomp, conlen) |
Get unit vector components between the cell and a given neighbor. More... | |
subroutine | get_dis_type (this, dis_type) |
Get the discretization type. More... | |
subroutine | allocate_scalars (this, name_model, input_mempath) |
Allocate and initialize scalars. More... | |
subroutine | allocate_arrays (this) |
Allocate and initialize arrays. More... | |
real(dp) function | get_cell2d_area (this, icell2d) |
Get the signed area of the cell. More... | |
integer(i4b) function | nodeu_from_string (this, lloc, istart, istop, in, iout, line, flag_string, allow_zero) |
Convert a string to a user nodenumber. More... | |
integer(i4b) function | nodeu_from_cellid (this, cellid, inunit, iout, flag_string, allow_zero) |
Convert a cellid string to a user nodenumber. More... | |
subroutine | get_polyverts (this, ic, polyverts, closed) |
Get a 2D array of polygon vertices, listed in clockwise order beginning with the lower left corner. More... | |
subroutine | record_array (this, darray, iout, iprint, idataun, aname, cdatafmp, nvaluesp, nwidthp, editdesc, dinact) |
Record a double precision array. More... | |
subroutine | record_srcdst_list_header (this, text, textmodel, textpackage, dstmodel, dstpackage, naux, auxtxt, ibdchn, nlist, iout) |
Record list header for imeth=6. More... | |
|
private |
Definition at line 982 of file Disv2d.f90.
|
private |
Definition at line 962 of file Disv2d.f90.
|
private |
|
private |
The normal points outward from the shared face between noden and nodem.
[in] | noden | cell (reduced nn) |
[in] | nodem | neighbor (reduced nn) |
[in] | ihc | horizontal connection flag |
Definition at line 865 of file Disv2d.f90.
|
private |
Saturation must be provided to compute cell center vertical coordinates. Also return the straight-line connection length.
[in] | noden | cell (reduced nn) |
[in] | nodem | neighbor (reduced nn) |
[in] | nozee | do not use z in calculations |
[in] | satn | not used for disv1d |
[in] | satm | not used for disv1d |
[in] | ihc | horizontal connection flag |
[in,out] | xcomp | x component of connection vector |
[in,out] | ycomp | y component of connection vector |
[in,out] | zcomp | z component of connection vector |
[in,out] | conlen | calculated straight-line distance between cell centers |
Definition at line 911 of file Disv2d.f90.
|
private |
Definition at line 501 of file Disv2d.f90.
subroutine, public disv2dmodule::disv2d_cr | ( | class(disbasetype), pointer | dis, |
character(len=*), intent(in) | name_model, | ||
character(len=*), intent(in) | input_mempath, | ||
integer(i4b), intent(in) | inunit, | ||
integer(i4b), intent(in) | iout | ||
) |
|
private |
Definition at line 152 of file Disv2d.f90.
|
private |
Definition at line 144 of file Disv2d.f90.
|
private |
Definition at line 129 of file Disv2d.f90.
|
private |
A negative result means points are in counter-clockwise orientation. Area is computed from the formula: a = 1/2 *[(x1*y2 + x2*y3 + x3*y4 + ... + xn*y1) - (x2*y1 + x3*y2 + x4*y3 + ... + x1*yn)]
Definition at line 1011 of file Disv2d.f90.
|
private |
Definition at line 951 of file Disv2d.f90.
|
private |
|
private |
[in] | ic | cell number (reduced) |
[out] | polyverts | polygon vertices (column-major indexing) |
[in] | closed | whether to close the polygon, duplicating a vertex (default false) |
Definition at line 1217 of file Disv2d.f90.
|
private |
|
private |
Definition at line 324 of file Disv2d.f90.
|
private |
Definition at line 364 of file Disv2d.f90.
|
private |
Definition at line 239 of file Disv2d.f90.
|
private |
If flag_string is present and true, the first token may be non-numeric (e.g. boundary name). In this case, return -2.
If allow_zero is present and true, and all indices are zero, the result can be zero. If allow_zero is false, a zero in any index is an error.
Definition at line 1144 of file Disv2d.f90.
|
private |
Parse layer and within-layer cell number and return user nodenumber. If flag_string is present and true, the first token may be non-numeric (e.g. boundary name). In this case, return -2.
Definition at line 1066 of file Disv2d.f90.
|
private |
subroutine disv2dmodule::nodeu_to_string | ( | class(disv2dtype) | this, |
integer(i4b), intent(in) | nodeu, | ||
character(len=*), intent(inout) | str | ||
) |
|
private |
The array is written to a formatted or unformatted external file depending on the arguments.
[in,out] | darray | double precision array to record |
[in] | iout | ascii output unit number |
[in] | iprint | whether to print the array |
[in] | idataun | binary output unit number, if negative don't write by layers, write entire array |
[in] | aname | text descriptor |
[in] | cdatafmp | write format |
[in] | nvaluesp | values per line |
[in] | nwidthp | number width |
[in] | editdesc | format type (I, G, F, S, E) |
[in] | dinact | double precision value for cells excluded from model domain |
Definition at line 1265 of file Disv2d.f90.
|
private |
subroutine disv2dmodule::source_cell2d | ( | class(disv2dtype) | this | ) |
|
private |
|
private |
Definition at line 345 of file Disv2d.f90.
subroutine disv2dmodule::source_options | ( | class(disv2dtype) | this | ) |
Definition at line 214 of file Disv2d.f90.
|
private |
|
private |
Definition at line 660 of file Disv2d.f90.