GMS:Creating and Editing 3D Grids

From XMS Wiki
Revision as of 21:14, 14 October 2009 by Bdolinar (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
3D Grid Module
Samp mt3d.gif
3D Grid
Creating and Editing
Viewing Modes
Converting to Other Data Types
Exporting Grids
More
Display Options
Tool Palette
Cell Properties
MODFLOW Display Options
MODPATH Display Options
MT3DMS Display Options
3D Grid Commands

Creating 3D Grids

Two techniques are available for creating 3D grids: the Create Grid command in the 3D Grid Module and the Map -> 3D Grid command in the Map Module. When a 3D Cell Centered Grid is created two different viewing modes are available.

Create Grid
A new grid can be created by selecting the Create Grid command from the Grid menu. This command brings up the Create Grid dialog. The options in the dialog are as follows:
Origin, Length, Rotation - By default, the rows and columns of 2D grids are aligned with the x and y axes. However, grids can be rotated about the z-axis, if desired. Thus, the information needed to determine the overall size and location of the grid is the xy coordinates of the lower left corner of the grid (the lower left corner prior to rotation), the length of the grid in the x and y directions, and the rotation angle. The xy coordinates of the origin are entered in the Origin edit fields, the dimensions are entered in the Length fields, and the angle of rotation is entered in the field entitled Rotation about Z-axis.
Bias - Several options are available for defining the number and locations of the cell boundaries. A bias can be defined which controls how the cell size varies from one cell to the next. For example, an X bias of 1.5 causes each cell to be 50% larger than the previous cell when moving in the positive x direction.
Number of Cells - The total number of cells in each direction (number of rows or columns) can be defined by explicitly entering a number or by entering a base cell size and a limit cell size. The base and limit cell size options are used when a bias other than 1.0 is specified. The base cell size is the size of the first cell in the sequence. The cells are then generated by altering the cell size according to the bias until the limit cell size is reached. The remainder of the cells are constructed using the limit cell size.
Type and Orientation - The controls at the bottom of the Create Grid dialog are used to define the type and orientation of the grid. The user can specify whether the grid should be a mesh-centered grid or a cell-centered grid. The orientation of the ij axes with respect to the XY axes can also be specified.
Map -> 3D Grid
Once the feature object coverages defining a conceptual model have been completely defined, the conceptual model is ready to be converted to a numerical model. The first step in this conversion process is to create a grid using the Map -> 3D Grid command. Typically, the Grid Frame command is used prior to this command to define the location and dimensions of the grid.
When the Map -> 3D Grid command is selected, the Create Grid dialog appears. If a grid frame has been defined, the size and location of the grid frame are used to initialize the fields in the Create Grid dialog. In most cases, these values will not need to be changed and the user can simply select the OK button to create the grid. If a grid frame has not been defined, the size and location of the grid are initialized so that the grid just surrounds the currently defined conceptual model. Once again, in most cases, no changes will need to be made and the user can typically immediately select the OK button to create the grid.
If one or more refine points are defined in the conceptual model, the number of rows and columns in the grid will be automatically determined when the grid is created. Thus, these fields cannot be edited by the user and will be dimmed. If refine points are not defined, the number of rows and columns must be entered.
When refine points are specified you must enter the Base size, Bias and Max size. The base size is the size you want the cell to be right at the refine point. The Max size is the largest size that you would like your cells to be in the entire grid. The bias determines how quickly the cell size will vary as you move away from the refine point. If you use a bias of 1.1 then the row next to the refine point will be 1.1 times the base size. The next row will be 1.1 size the previous row.

Editing 3D Grids

Each cell in a 3D grid has attributes associated with it. Each grid cell can be specified as active/inactive and each cell has a material associated with it. To edit the cell attributes associated with a numerical model see Cell Properties.

Rows, columns, or layers can be added or removed from a 3D grid. A row, column, or layer may be added to the grid by using one of the following tools found in the 3D Grid Tool Palette:

The boundary of a cell can also be moved to a new location by using the Move Boundary tool. Existing rows, columns, or layers can be deleted by using the Merge Selected command in the Grid menu which is used to merge two or more selected rows, columns, or layers into a single row, column, or layer. Since the dimensions of the grid are changed, this command causes all data sets to be deleted. However, MODFLOW input parameters are preserved.

Exporting 3D Grid Data Sets to a Shapefile

To export a 3D Grid data set (for example, a MODFLOW head data set) to a shapefile requires the user to follow a series of commands to convert the data set to a form that can be exported as a shapefile from GMS. The steps are detailed below:

  1. With the correct 3D Grid data set selected, use the Convert->2D Grid command in the Grid menu to convert the 3D Grid to a 2D Grid.
  2. Use the 3D Data->2D Data command in the Data menu to convert the data set from a 3D data set to a 2D data set.
  3. Use the Grid->2D Scatter Points command in the Grid menu to convert the 2D Grid data set to a 2D scatter data set.
  4. Right click on the newly-created scatter set and select Export. Change the file type to shapefile.