GMS:Creating and Editing UGrids: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
Line 14: Line 14:
*Dimension – Specifies whether a 2D or 3D UGrid will be created.
*Dimension – Specifies whether a 2D or 3D UGrid will be created.
*UGrid type
*UGrid type
**Regular (not refined) – Creates a grid with rectangular cells that are not refined.
**Regular (not refined) – Creates a grid with rectangular cells that are not refined. Any refinement attributes specified on feature objects is ignored.
**Quad tree – Creates a grid with rectangular cells that is refined around refine points and arcs with cell sizes increasing in size with distance from the points and arcs.
**Quad tree – Creates a grid with rectangular cells that are refined in a quad tree manner around any points, arcs and polygons which specify the refinement attribute and refinement size.
**Voronoi – Creates a Voronoi grid with cells of various sizes and shapes to meet the Voronoi criteria. The active coverage must contain a polygon because it is first meshed with a triangular mesh and refined around points and arcs.
**Voronoi – Creates a Voronoi grid with cells of various sizes and shapes which meet the Voronoi criteria. Only the active coverage is used and it must contain a polygon because the algorithm uses the polygon to create a triangular mesh. The mesh is refined around points that are marked as refine points based on the specified refinement size. The mesh is constructed to honor all arc geometry. If refinement is specified as an attribute on arcs or polygons it is ignored.
*Refine points – If the quad tree option is selected and refine points exist in multiple coverages, specifies which refine points to use.
*Refine points – If the quad tree option is selected and refine points exist in multiple coverages, specifies which refine points to use.
*X, Y, Z number of cells
*X, Y, Z number of cells
** If not using the Voronoi UGrid type, the size and number of cells in the X, Y and Z dimensions can be specified. For quad tree UGrids, the cell size represents the large, unrefined size because the small, refined size is determined by the refine points and arcs. Also for quad tree UGrids, if the cell size is specified, it represents a target cell size; the actual cell size will likely be somewhat different than that specified so that an even number of cells will fit within the grid boundaries.
** If not using the Voronoi UGrid type, the size and number of cells in the X, Y and Z dimensions can be specified. For quad tree UGrids, the cell size represents the large, unrefined size. The small, refined size is determined by the refinement specified at points, arcs and polygons. Also for quad tree UGrids, if the cell size is specified, it represents a target cell size (large, unrefined size); the actual cell size will likely be somewhat different so that the cells fit within the grid boundaries.


If a [[GMS:Grid_Frame|grid frame]] exists, it is used to determine the location of the grid. If polygons exist and the '''Regular''' or '''Quad tree''' options are used, any cells that are not inside a polygon are removed.
If a [[GMS:Grid_Frame|grid frame]] exists, it is used to determine the location of the grid boundaries. If polygons exist and the '''Regular''' or '''Quad tree''' options are used, any cells that are not inside a polygon are not included in the UGrid.


{| class="wikitable"
{| class="wikitable"

Revision as of 00:05, 6 March 2014

UGrid Module
VoronoiUGrid.png
UGrid
Creating and Editing
Viewing Modes
Converting to Other Data Types
Exporting UGrids
UGrid Interpolation
More
Display Options
Tool Palette
Cell Properties
UGrid Commands

There are a number of ways to create UGrids. Currently UGrids cannot be edited after they are created.

Importing

UGrids can be imported from a VTK XML file by selecting the File|Open command or by dragging and dropping the file onto the GMS window. GMS recognizes the ".vtu" extension, which by convention is the extension used for a VTK XML file containing an unstructured grid.

Map → UGrid

The Map → UGrid command creates a UGrid from feature objects. It can be found in the Feature Objects menu, in the Map toolbar, and in some pop-up menus when right-clicking on items in the Project Explorer (Coverage, Grid Frame). The command opens the Create UGrid dialog.

Create UGrid dialog.

Create UGrid Dialog

  • Dimension – Specifies whether a 2D or 3D UGrid will be created.
  • UGrid type
    • Regular (not refined) – Creates a grid with rectangular cells that are not refined. Any refinement attributes specified on feature objects is ignored.
    • Quad tree – Creates a grid with rectangular cells that are refined in a quad tree manner around any points, arcs and polygons which specify the refinement attribute and refinement size.
    • Voronoi – Creates a Voronoi grid with cells of various sizes and shapes which meet the Voronoi criteria. Only the active coverage is used and it must contain a polygon because the algorithm uses the polygon to create a triangular mesh. The mesh is refined around points that are marked as refine points based on the specified refinement size. The mesh is constructed to honor all arc geometry. If refinement is specified as an attribute on arcs or polygons it is ignored.
  • Refine points – If the quad tree option is selected and refine points exist in multiple coverages, specifies which refine points to use.
  • X, Y, Z number of cells
    • If not using the Voronoi UGrid type, the size and number of cells in the X, Y and Z dimensions can be specified. For quad tree UGrids, the cell size represents the large, unrefined size. The small, refined size is determined by the refinement specified at points, arcs and polygons. Also for quad tree UGrids, if the cell size is specified, it represents a target cell size (large, unrefined size); the actual cell size will likely be somewhat different so that the cells fit within the grid boundaries.

If a grid frame exists, it is used to determine the location of the grid boundaries. If polygons exist and the Regular or Quad tree options are used, any cells that are not inside a polygon are not included in the UGrid.

Various UGrids created from the same coverage.
Regular UGrid
Regular UGrid
Quad Tree UGrid
Voronoi UGrid

Conversion From Other Data Types

The following data types can be converted to UGrids by right-clicking on the object in the Project Explorer and selecting the Convert To > UGrid command from the pop-up menu.

Horizons

The Horizons → UGrid command (in the TINs and Boreholes menus) uses horizons to create a 3D UGrid.