MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
connectionsmodule::connectionstype Type Reference
Collaboration diagram for connectionsmodule::connectionstype:
Collaboration graph

Public Member Functions

procedure con_da (this)
 Deallocate connection variables.
procedure allocate_scalars (this, name_model)
 Allocate scalars for ConnectionsType.
procedure allocate_arrays (this)
 Allocate arrays for ConnectionsType.
procedure con_finalize (this, ihctemp, cl12temp, hwvatemp, angldegx)
 Finalize connection data.
procedure read_connectivity_from_block (this, name_model, nodes, nja, iout)
 Read and process IAC and JA from an an input block called CONNECTIONDATA.
procedure set_cl1_cl2_from_fleng (this, fleng)
 Using a vector of cell lengths, calculate the cl1 and cl2 arrays.
procedure disconnections (this, name_model, nodes, ncol, nrow, nlay, nrsize, delr, delc, top, bot, nodereduced, nodeuser)
 Construct the connectivity arrays for a structured three-dimensional grid.
procedure disvconnections (this, name_model, nodes, ncpl, nlay, nrsize, nvert, vertex, iavert, javert, cellxy, top, bot, nodereduced, nodeuser)
 Construct the connectivity arrays using cell disv information.
procedure disuconnections (this, name_model, nodes, nodesuser, nrsize, nodereduced, nodeuser, iainp, jainp, ihcinp, cl12inp, hwvainp, angldegxinp, iangledegx)
 Construct the connectivity arrays using disu information. Grid may be reduced.
procedure disv1dconnections_verts (this, name_model, nodes, nodesuser, nrsize, nvert, vertices, iavert, javert, cellxy, cellfdc, nodereduced, nodeuser, reach_length)
 Fill the connections object for a disv1d package from vertices.
procedure iajausr (this, nrsize, nodesuser, nodereduced, nodeuser)
 Fill iausr and jausr if reduced grid, otherwise point them to ia and ja.
procedure getjaindex (this, node1, node2)
 Get the index in the JA array corresponding to the connection between two nodes of interest.
procedure set_mask (this, ipos, maskval)
 routine to set a value in the mask array (which has the same shape as thisja)

Public Attributes

character(len=lenmempath) memorypath
 memory path of the connections data
character(len=lenmodelname), pointer name_model => null()
 name of the model
integer(i4b), pointer nodes => null()
 number of nodes
integer(i4b), pointer nja => null()
 number of connections
integer(i4b), pointer njas => null()
 number of symmetric connections
integer(i4b), pointer ianglex => null()
 indicates whether or not anglex is present
integer(i4b), dimension(:), pointer, contiguous ia => null()
 (size:nodes+1) csr index array
integer(i4b), dimension(:), pointer, contiguous ja => null()
 (size:nja) csr pointer array
integer(i4b), dimension(:), pointer, contiguous mask => null()
 (size:nja) to mask certain connections: ==0 means masked. Do not set the mask directly, use set_mask instead!
real(dp), dimension(:), pointer, contiguous cl1 => null()
 (size:njas) connection length between node n and shared face with node m
real(dp), dimension(:), pointer, contiguous cl2 => null()
 (size:njas) connection length between node m and shared face with node n
real(dp), dimension(:), pointer, contiguous hwva => null()
 (size:njas) horizontal perpendicular width (ihc>0) or vertical flow area (ihc=0)
real(dp), dimension(:), pointer, contiguous anglex => null()
 (size:njas) connection angle of face normal with x axis (read in degrees, stored as radians)
integer(i4b), dimension(:), pointer, contiguous isym => null()
 (size:nja) returns csr index of symmetric counterpart
integer(i4b), dimension(:), pointer, contiguous jas => null()
 (size:nja) map any connection to upper triangle (for pulling out of symmetric array)
integer(i4b), dimension(:), pointer, contiguous ihc => null()
 (size:njas) horizontal connection (0:vertical, 1:mean thickness, 2:staggered)
integer(i4b), dimension(:), pointer, contiguous iausr => null()
 (size:nodesusr+1)
integer(i4b), dimension(:), pointer, contiguous jausr => null()
 (size:nja)
type(blockparsertype) parser
 block parser

Detailed Description

Definition at line 19 of file Connections.f90.

Member Function/Subroutine Documentation

◆ allocate_arrays()

procedure connectionsmodule::connectionstype::allocate_arrays ( class(connectionstype) this)

Definition at line 44 of file Connections.f90.

◆ allocate_scalars()

procedure connectionsmodule::connectionstype::allocate_scalars ( class(connectionstype) this,
character(len=*), intent(in) name_model )

Definition at line 43 of file Connections.f90.

◆ con_da()

procedure connectionsmodule::connectionstype::con_da ( class(connectionstype) this)

Definition at line 42 of file Connections.f90.

◆ con_finalize()

procedure connectionsmodule::connectionstype::con_finalize ( class(connectionstype) this,
integer(i4b), dimension(:), intent(in) ihctemp,
real(dp), dimension(:), intent(in) cl12temp,
real(dp), dimension(:), intent(in) hwvatemp,
real(dp), dimension(:), intent(in) angldegx )

Definition at line 45 of file Connections.f90.

◆ disconnections()

procedure connectionsmodule::connectionstype::disconnections ( class(connectionstype) this,
character(len=*), intent(in) name_model,
integer(i4b), intent(in) nodes,
integer(i4b), intent(in) ncol,
integer(i4b), intent(in) nrow,
integer(i4b), intent(in) nlay,
integer(i4b), intent(in) nrsize,
real(dp), dimension(ncol), intent(in) delr,
real(dp), dimension(nrow), intent(in) delc,
real(dp), dimension(nodes), intent(in) top,
real(dp), dimension(nodes), intent(in) bot,
integer(i4b), dimension(:), intent(in), target nodereduced,
integer(i4b), dimension(:), intent(in) nodeuser )

Definition at line 48 of file Connections.f90.

◆ disuconnections()

procedure connectionsmodule::connectionstype::disuconnections ( class(connectionstype) this,
character(len=*), intent(in) name_model,
integer(i4b), intent(in) nodes,
integer(i4b), intent(in) nodesuser,
integer(i4b), intent(in) nrsize,
integer(i4b), dimension(:), intent(in), contiguous nodereduced,
integer(i4b), dimension(:), intent(in), contiguous nodeuser,
integer(i4b), dimension(:), intent(in), contiguous iainp,
integer(i4b), dimension(:), intent(in), contiguous jainp,
integer(i4b), dimension(:), intent(in), contiguous ihcinp,
real(dp), dimension(:), intent(in), contiguous cl12inp,
real(dp), dimension(:), intent(in), contiguous hwvainp,
real(dp), dimension(:), intent(in), contiguous angldegxinp,
integer(i4b), intent(in) iangledegx )

Definition at line 50 of file Connections.f90.

◆ disv1dconnections_verts()

procedure connectionsmodule::connectionstype::disv1dconnections_verts ( class(connectionstype) this,
character(len=*), intent(in) name_model,
integer(i4b), intent(in) nodes,
integer(i4b), intent(in) nodesuser,
integer(i4b), intent(in) nrsize,
integer(i4b), intent(in) nvert,
real(dp), dimension(3, nvert), intent(in) vertices,
integer(i4b), dimension(:), intent(in) iavert,
integer(i4b), dimension(:), intent(in) javert,
real(dp), dimension(2, nodesuser), intent(in) cellxy,
real(dp), dimension(nodesuser), intent(in) cellfdc,
integer(i4b), dimension(:), intent(in) nodereduced,
integer(i4b), dimension(:), intent(in) nodeuser,
real(dp), dimension(:), intent(in) reach_length )

Note that nothing is done for hwva

Parameters
[in]reach_lengthlength of each reach

Definition at line 51 of file Connections.f90.

◆ disvconnections()

procedure connectionsmodule::connectionstype::disvconnections ( class(connectionstype) this,
character(len=*), intent(in) name_model,
integer(i4b), intent(in) nodes,
integer(i4b), intent(in) ncpl,
integer(i4b), intent(in) nlay,
integer(i4b), intent(in) nrsize,
integer(i4b), intent(in) nvert,
real(dp), dimension(2, nvert), intent(in) vertex,
integer(i4b), dimension(:), intent(in) iavert,
integer(i4b), dimension(:), intent(in) javert,
real(dp), dimension(2, ncpl), intent(in) cellxy,
real(dp), dimension(nodes), intent(in) top,
real(dp), dimension(nodes), intent(in) bot,
integer(i4b), dimension(:), intent(in) nodereduced,
integer(i4b), dimension(:), intent(in) nodeuser )

Definition at line 49 of file Connections.f90.

◆ getjaindex()

procedure connectionsmodule::connectionstype::getjaindex ( class(connectionstype) this,
integer(i4b), intent(in) node1,
integer(i4b), intent(in) node2 )

Node1 is used as the index in the IA array, and IA(Node1) is the row index in the (nodes x nodes) matrix represented by the compressed sparse row format.

-1 is returned if either node number is invalid. 0 is returned if the two nodes are not connected.

Definition at line 53 of file Connections.f90.

◆ iajausr()

procedure connectionsmodule::connectionstype::iajausr ( class(connectionstype) this,
integer(i4b), intent(in) nrsize,
integer(i4b), intent(in) nodesuser,
integer(i4b), dimension(:), intent(in) nodereduced,
integer(i4b), dimension(:), intent(in) nodeuser )

Definition at line 52 of file Connections.f90.

◆ read_connectivity_from_block()

procedure connectionsmodule::connectionstype::read_connectivity_from_block ( class(connectionstype) this,
character(len=*), intent(in) name_model,
integer(i4b), intent(in) nodes,
integer(i4b), intent(in) nja,
integer(i4b), intent(in) iout )

Definition at line 46 of file Connections.f90.

◆ set_cl1_cl2_from_fleng()

procedure connectionsmodule::connectionstype::set_cl1_cl2_from_fleng ( class(connectionstype) this,
real(dp), dimension(:), intent(in) fleng )

Definition at line 47 of file Connections.f90.

◆ set_mask()

procedure connectionsmodule::connectionstype::set_mask ( class(connectionstype) this,
integer(i4b), intent(in) ipos,
integer(i4b), intent(in) maskval )

Definition at line 54 of file Connections.f90.

Member Data Documentation

◆ anglex

real(dp), dimension(:), pointer, contiguous connectionsmodule::connectionstype::anglex => null()

Definition at line 32 of file Connections.f90.

◆ cl1

real(dp), dimension(:), pointer, contiguous connectionsmodule::connectionstype::cl1 => null()

Definition at line 29 of file Connections.f90.

◆ cl2

real(dp), dimension(:), pointer, contiguous connectionsmodule::connectionstype::cl2 => null()

Definition at line 30 of file Connections.f90.

◆ hwva

real(dp), dimension(:), pointer, contiguous connectionsmodule::connectionstype::hwva => null()

Definition at line 31 of file Connections.f90.

◆ ia

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::ia => null()

Definition at line 26 of file Connections.f90.

◆ ianglex

integer(i4b), pointer connectionsmodule::connectionstype::ianglex => null()

Definition at line 25 of file Connections.f90.

◆ iausr

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::iausr => null()

Definition at line 36 of file Connections.f90.

◆ ihc

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::ihc => null()

Definition at line 35 of file Connections.f90.

◆ isym

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::isym => null()

Definition at line 33 of file Connections.f90.

◆ ja

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::ja => null()

Definition at line 27 of file Connections.f90.

◆ jas

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::jas => null()

Definition at line 34 of file Connections.f90.

◆ jausr

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::jausr => null()

Definition at line 37 of file Connections.f90.

◆ mask

integer(i4b), dimension(:), pointer, contiguous connectionsmodule::connectionstype::mask => null()

Definition at line 28 of file Connections.f90.

◆ memorypath

character(len=lenmempath) connectionsmodule::connectionstype::memorypath

Definition at line 20 of file Connections.f90.

20 character(len=LENMEMPATH) :: memoryPath !< memory path of the connections data

◆ name_model

character(len=lenmodelname), pointer connectionsmodule::connectionstype::name_model => null()

Definition at line 21 of file Connections.f90.

◆ nja

integer(i4b), pointer connectionsmodule::connectionstype::nja => null()

Definition at line 23 of file Connections.f90.

◆ njas

integer(i4b), pointer connectionsmodule::connectionstype::njas => null()

Definition at line 24 of file Connections.f90.

◆ nodes

integer(i4b), pointer connectionsmodule::connectionstype::nodes => null()

Definition at line 22 of file Connections.f90.

◆ parser

type(blockparsertype) connectionsmodule::connectionstype::parser

Definition at line 38 of file Connections.f90.

38 type(BlockParserType) :: parser !< block parser

The documentation for this type was generated from the following file:
  • /home/runner/work/modflow6/modflow6/src/Model/ModelUtilities/Connections.f90