UGrid 2D from UGrid 3D Tool: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
===UGrid 2D from UGrid 3D===
{{UGrid 2D from UGrid 3D Tool}}
The ''UGrid 2D from UGrid 3D'' tool is used to create a 2D UGrid from the top or bottom of a 3D UGrid, preserving the order of the points and cells. The point and cell numbers in the 2D UGrid may not exactly match the top (or bottom) of the 3D UGrid because the 2D numbering must start at 1, but the order will be the same (see examples below). The user selects a 3D UGrid as input to the tool, selects whether to use the top or the bottom, and, optionally, provides a name for the 2D UGrid that will be created.
This tool will only work on UGrids that are made up of 3D cells.
====Input parameters====
*''3D UGrid'' – The input 3D UGrid that will be used.
*''Top or bottom'' – Option to use the top or bottom of the 3D UGrid.
*''2D UGrid name'' – Name of the 2D UGrid that will be created.


====Output parameters====
[[Category:Old SMS Toolbox]]
*The output is a 2D UGrid.
 
====Current location in Toolbox====
Unstructured Grids/2D UGrid from 3D UGrid
 
====Examples====
Files for example 1 can be downloaded [https://s3.amazonaws.com/gmstutorials.aquaveo.com/2d_ugrid_from_3d_ugrid.zip here].
=====Example 1=====
The following figure shows a 3D UGrid with three layers in oblique view.
:[[File:2dTo3d-3d.png|thumb|none|400 px|Example 1 3D UGrid]]
The next two figures show the numbering of the points and cells on the top of the 3D UGrid, and on the 2D UGrid that would get generated by the tool if the "Top" option is selected. Notice the 2D UGrid numbering happens to match exactly with that of the 3D UGrid because the top points and cells start at one and there are no gaps in the numbering.
<gallery widths="400 px" heights="300 px">
File:2dTo3d-3d-top.png|thumb|none|400 px|Example 1 3D UGrid top numbering]]
File:2dTo3d-3d-bottom.png|thumb|none|400 px|Example 1 3D UGrid bottom numbering
</gallery>
The next two figures show the numbering of the points and cells on the bottom of the 3D UGrid, and on the 2D UGrid that would get generated by the tool if the "Bottom" option is selected. Notice the 2D UGrid numbering differs from the bottom of the 3D UGrid but the order for both points and cells is the same.
<gallery widths="400 px" heights="300 px">
File:2dTo3d-2d-top.png|thumb|none|400 px|Example 1 2D UGrid from selecting "Top"
File:2dTo3d-2d-bottom.png|thumb|none|400 px|Example 1 2D UGrid from selecting "Bottom"
</gallery>

Latest revision as of 21:40, 1 May 2024

UGrid 2D from UGrid 3D

The UGrid 2D from UGrid 3D tool is used to create a 2D UGrid from the top or bottom of a 3D UGrid, preserving the order of the points and cells. The point and cell numbers in the 2D UGrid may not exactly match the top (or bottom) of the 3D UGrid because the 2D numbering must start at 1 and have no gaps, but the order will be the same (see examples below). The user selects a 3D UGrid as input to the tool, selects whether to use the top or the bottom, and, optionally, provides a name for the 2D UGrid that will be created. This tool will only work on UGrids that are made up of 3D cells.

The tool uses layer information to determine the top and bottom of the UGrid. If there is no layer information, the tool will create the 2D UGrid from upward (if 'Top' is selected) or downward (if 'Bottom' is selected) oriented faces that have no adjacent cell above (or below). This could result in a incorrect 2D UGrid if there are cells in the middle of the 3D UGrid which do not have an adjacent cell above (or below).

Input parameters

  • 3D UGrid – The input 3D UGrid that will be used.
  • Top or bottom – Option to use the top or bottom of the 3D UGrid.
  • 2D UGrid name – Name of the 2D UGrid that will be created.

Output parameters

  • The output is a 2D UGrid.

Current location in Toolbox

Unstructured Grids/2D UGrid from 3D UGrid

Examples

Files for example 1 can be downloaded here.

Example 1

The following figure shows a 3D UGrid with three layers in oblique view.

Example 1: 3D UGrid

The next two figures show the numbering of the points and cells on the top of the 3D UGrid, and on the 2D UGrid that would get generated by the tool if the "Top" option is selected. Notice the 2D UGrid numbering happens to match exactly with that of the 3D UGrid because the top points and cells start at one and there are no gaps in the numbering.

The next two figures show the numbering of the points and cells on the bottom of the 3D UGrid, and on the 2D UGrid that would get generated by the tool if the "Bottom" option is selected. Notice the 2D UGrid numbering differs from the bottom of the 3D UGrid but the order for both points and cells is the same.