GWF-DISU

Structure of Blocks

FOR EACH SIMULATION

    BEGIN OPTIONS
      [LENGTH_UNITS <length_units>]
      [NOGRB]
      [XORIGIN <xorigin>]
      [YORIGIN <yorigin>]
      [ANGROT <angrot>]
      [VERTICAL_OFFSET_TOLERANCE <vertical_offset_tolerance>]
      [EXPORT_ARRAY_ASCII]
    END OPTIONS
    BEGIN DIMENSIONS
      NODES <nodes>
      NJA <nja>
      [NVERT <nvert>]
    END DIMENSIONS
    BEGIN GRIDDATA
      TOP
            <top(nodes)> -- READARRAY
      BOT
            <bot(nodes)> -- READARRAY
      AREA
            <area(nodes)> -- READARRAY
      [IDOMAIN
            <idomain(nodes)> -- READARRAY]
    END GRIDDATA
    BEGIN CONNECTIONDATA
      IAC
            <iac(nodes)> -- READARRAY
      JA
            <ja(nja)> -- READARRAY
      IHC
            <ihc(nja)> -- READARRAY
      CL12
            <cl12(nja)> -- READARRAY
      HWVA
            <hwva(nja)> -- READARRAY
      [ANGLDEGX
            <angldegx(nja)> -- READARRAY]
    END CONNECTIONDATA
    BEGIN VERTICES
      [<iv> <xv> <yv>
      <iv> <xv> <yv>
      ...]
    END VERTICES
    BEGIN CELL2D
      [<icell2d> <xc> <yc> <ncvert> <icvert(ncvert)>
      <icell2d> <xc> <yc> <ncvert> <icvert(ncvert)>
      ...]
    END CELL2D

Explanation of Variables

Block: OPTIONS

  • length_units is the length units used for this model. Values can be “FEET”, “METERS”, or “CENTIMETERS”. If not specified, the default is “UNKNOWN”.

  • NOGRB keyword to deactivate writing of the binary grid file.

  • xorigin x-position of the origin used for model grid vertices. This value should be provided in a real-world coordinate system. A default value of zero is assigned if not specified. The value for XORIGIN does not affect the model simulation, but it is written to the binary grid file so that postprocessors can locate the grid in space.

  • yorigin y-position of the origin used for model grid vertices. This value should be provided in a real-world coordinate system. If not specified, then a default value equal to zero is used. The value for YORIGIN does not affect the model simulation, but it is written to the binary grid file so that postprocessors can locate the grid in space.

  • angrot counter-clockwise rotation angle (in degrees) of the model grid coordinate system relative to a real-world coordinate system. If not specified, then a default value of 0.0 is assigned. The value for ANGROT does not affect the model simulation, but it is written to the binary grid file so that postprocessors can locate the grid in space.

  • vertical_offset_tolerance checks are performed to ensure that the top of a cell is not higher than the bottom of an overlying cell. This option can be used to specify the tolerance that is used for checking. If top of a cell is above the bottom of an overlying cell by a value less than this tolerance, then the program will not terminate with an error. The default value is zero. This option should generally not be used.

  • EXPORT_ARRAY_ASCII keyword that specifies input griddata arrays should be written to layered ascii output files.

Block: DIMENSIONS

  • nodes is the number of cells in the model grid.

  • nja is the sum of the number of connections and NODES. When calculating the total number of connections, the connection between cell n and cell m is considered to be different from the connection between cell m and cell n. Thus, NJA is equal to the total number of connections, including n to m and m to n, and the total number of cells.

  • nvert is the total number of (x, y) vertex pairs used to define the plan-view shape of each cell in the model grid. If NVERT is not specified or is specified as zero, then the VERTICES and CELL2D blocks below are not read. NVERT and the accompanying VERTICES and CELL2D blocks should be specified for most simulations. If the XT3D or SAVE_SPECIFIC_DISCHARGE options are specified in the NPF Package, then this information is required.

Block: GRIDDATA

  • top is the top elevation for each cell in the model grid.

  • bot is the bottom elevation for each cell.

  • area is the cell surface area (in plan view).

  • idomain is an optional array that characterizes the existence status of a cell. If the IDOMAIN array is not specified, then all model cells exist within the solution. If the IDOMAIN value for a cell is 0, the cell does not exist in the simulation. Input and output values will be read and written for the cell, but internal to the program, the cell is excluded from the solution. If the IDOMAIN value for a cell is 1 or greater, the cell exists in the simulation. IDOMAIN values of -1 cannot be specified for the DISU Package.

Block: CONNECTIONDATA

  • iac is the number of connections (plus 1) for each cell. The sum of all the entries in IAC must be equal to NJA.

  • ja is a list of cell number (n) followed by its connecting cell numbers (m) for each of the m cells connected to cell n. The number of values to provide for cell n is IAC(n). This list is sequentially provided for the first to the last cell. The first value in the list must be cell n itself, and the remaining cells must be listed in an increasing order (sorted from lowest number to highest). Note that the cell and its connections are only supplied for the GWF cells and their connections to the other GWF cells. Also note that the JA list input may be divided such that every node and its connectivity list can be on a separate line for ease in readability of the file. To further ease readability of the file, the node number of the cell whose connectivity is subsequently listed, may be expressed as a negative number, the sign of which is subsequently converted to positive by the code.

  • ihc is an index array indicating the direction between node n and all of its m connections. If IHC = 0 then cell n and cell m are connected in the vertical direction. Cell n overlies cell m if the cell number for n is less than m; cell m overlies cell n if the cell number for m is less than n. If IHC = 1 then cell n and cell m are connected in the horizontal direction. If IHC = 2 then cell n and cell m are connected in the horizontal direction, and the connection is vertically staggered. A vertically staggered connection is one in which a cell is horizontally connected to more than one cell in a horizontal connection.

  • cl12 is the array containing connection lengths between the center of cell n and the shared face with each adjacent m cell.

  • hwva is a symmetric array of size NJA. For horizontal connections, entries in HWVA are the horizontal width perpendicular to flow. For vertical connections, entries in HWVA are the vertical area for flow. Thus, values in the HWVA array contain dimensions of both length and area. Entries in the HWVA array have a one-to-one correspondence with the connections specified in the JA array. Likewise, there is a one-to-one correspondence between entries in the HWVA array and entries in the IHC array, which specifies the connection type (horizontal or vertical). Entries in the HWVA array must be symmetric; the program will terminate with an error if the value for HWVA for an n to m connection does not equal the value for HWVA for the corresponding n to m connection.

  • angldegx is the angle (in degrees) between the horizontal x-axis and the outward normal to the face between a cell and its connecting cells. The angle varies between zero and 360.0 degrees, where zero degrees points in the positive x-axis direction, and 90 degrees points in the positive y-axis direction. ANGLDEGX is only needed if horizontal anisotropy is specified in the NPF Package, if the XT3D option is used in the NPF Package, or if the SAVE_SPECIFIC_DISCHARGE option is specified in the NPF Package. ANGLDEGX does not need to be specified if these conditions are not met. ANGLDEGX is of size NJA; values specified for vertical connections and for the diagonal position are not used. Note that ANGLDEGX is read in degrees, which is different from MODFLOW-USG, which reads a similar variable (ANGLEX) in radians.

Block: VERTICES

  • iv is the vertex number. Records in the VERTICES block must be listed in consecutive order from 1 to NVERT.

  • xv is the x-coordinate for the vertex.

  • yv is the y-coordinate for the vertex.

Block: CELL2D

  • icell2d is the cell2d number. Records in the CELL2D block must be listed in consecutive order from 1 to NODES.

  • xc is the x-coordinate for the cell center.

  • yc is the y-coordinate for the cell center.

  • ncvert is the number of vertices required to define the cell. There may be a different number of vertices for each cell.

  • icvert is an array of integer values containing vertex numbers (in the VERTICES block) used to define the cell. Vertices must be listed in clockwise order.

Example Input File

    BEGIN OPTIONS
      LENGTH_UNITS METERS
    END OPTIONS
    
    BEGIN DIMENSIONS
      NODES 9
      NJA 33
    END DIMENSIONS
    
    BEGIN GRIDDATA
      TOP
        CONSTANT 0.
      BOT
        CONSTANT -10
      AREA
        INTERNAL FACTOR 1
          10000 10000 10000 10000 10000 10000 10000 10000 10000
    END GRIDDATA
    
    BEGIN CONNECTIONDATA
      IHC
        CONSTANT 1
      IAC
        INTERNAL FACTOR 1
        3 4 3 4 5 4 3 4 3
      JA
        INTERNAL FACTOR 1
        1 2 4
        2 1 3 5
        3 2 6
        4 1 5 7
        5 2 4 6 8
        6 3 5 9
        7 4 8
        8 5 7 9
        9 6 8
      CL12
        INTERNAL FACTOR 1
        0 50 50
        0 50 50 50
        0 50 50
        0 50 50 50
        0 50 50 50 50
        0 50 50 50
        0 50 50
        0 50 50 50
        0 50 50
      HWVA
        INTERNAL FACTOR 1
        0 100 100
        0 100 100 100
        0 100 100
        0 100 100 100
        0 100 100 100 100
        0 100 100 100
        0 100 100
        0 100 100 100
        0 100 100
    END CONNECTIONDATA