Fluent Inc. Logo return to home
next previous contents index

5. USING THE MODELING TOOLS

When you click the Tools command button on the Operation toolpad, GAMBIT opens the Tools subpad. The Tools subpad provides access to the following GAMBIT operations.

Symbol

Command Set Description

Coordinate Systems Create, modify, and display coordi­nate systems, grids, and rulers

Size Functions Create functions that control the size of mesh element edges in proximity of specified model entities

Turbo Operations Create and mesh collections of volumes that together represent flow regions surrounding turbomachinery blades

NOTE: The Turbo Functions commands represent a specialized command set that can be licensed from Fluent. They are not included in the standard set of GAMBIT functions.


5.1 Coordinate Systems

5.1.1 Overview

Coordinate systems provide reference points and directions for GAMBIT operations such as the construction of volume primitives and geometry Move and Copy operations. GAMBIT performs all such operations with respect to a specified coordinate system. For example, if you create a rectangular brick volume according to the specifications shown in Figure 5-1, GAMBIT creates a unit cube one corner of which is located at the center of coordinate system c_sys.1.

Figure 5-1: Example Create Real Brick form specifications

There are two types of coordinate systems:

The global coordinate system, c_sys.1, is a permanent system that serves as the default coordinate system for all GAMBIT geometry operations. Local coordinate systems allow you to perform GAMBIT geometry operations at localized regions in the model domain. They are particularly useful for the creation of geometry in regions that are distant from the center of the model.

NOTE: GAMBIT does not allow you to delete the global coordinate system.


5.1.2 Coordinate System Commands

The following commands are available on the Tools/Coordinate System subpad.

Symbol

Command Description

Create Coordinate System Creates local coordinate systems

Modify Coordinate System Changes the coordinate system label and default system type

Activate Coordinate System Activates a coordinate system

Display Grid Displays a point grid or line grid aligned with one of the coordinate planes

Display Ruler Displays a ruler along any or all of the coordinate axes

Summarize Coordinate Systems Displays the global coordinates of all currently defined coordinate system origins and axis vectors

Delete Coordinate Systems Deletes coordinate systems

The following sections describe the purpose and operation of each of the commands listed above.


Create Coordinate System

The Create Coordinate System command allows you to create a local coordinate system for use in creating and manipulating model geometry.

To create a coordinate system, you must specify the following parameters.

Specifying the System Type

There are three types of coordinate systems: Cartesian, cylindrical, and spherical. They differ from each other only with respect to the manner in which the coordinates for any given location are expressed. The coordinate specifications for each type of system are as follows.

System Type

Coordinate Specifications

Cartesian

Cylindrical

Spherical

When you perform modeling operations such as creating vertices or moving volumes, GAMBIT allows you to specify the relevant coordinates or offset parameters with respect to either the global coordinate system (c_sys.1) or the currently active local coordinate system. The default coordinate parameters for the local system are those defined for the system when it is created or modified (see "Modify Coordinate System," below).

For example, if you create a local coordinate system labeled c_sys.2 and specify the system type as spherical, then activate the system and open the Create Real Vertex form, the default coordinate parameters shown in the Local text boxes on the Create Real Vertex form are r (r), t () and p () rather than x (x), y (y), and z (z). To change the Local text box coordinate parameters on any form, specify the coordinate system type using the Type option button located on the form.

Specifying the Location and Orientation

You can specify the location and orientation of the new system by means of two options available on the Create Coordinate System form. The two options are as follows:

The Offset/Angle option allows you to specify the following parameters for the new system:

The Vertices option allows you to specify existing vertices that define the origin, x axis, and x-y plane for the new system. The specifications associated with each option are described below.

Using the Create Coordinate System Form

To open the Create Coordinate System form (see below), click the Create Coordinate System command button on the Tools/Coordinate System subpad.

The Create Coordinate System form contains the following options and specifications.

Type --------------------------------------
Cartesian
Cylindrical
Spherical
specifies the type of coordinate parameters to be used in defining the coordinate system.
Location and orientation: contains two radio buttons that allow you to specify the manner in which the location of the new coordinate system is defined. The two available options are Offset/Angle and Vertices. The following sections describe the specifications required for each option.

Specifying Coordinate System Offset and Angle

When you select the Offset/Angle option, the middle section of the Create Coordinate System form appears as shown above. The corresponding options and specifications are as follows.

Reference Sys specifies the existing coordinate system relative to which the new coordinate system is located.
Angle contains three sets of option buttons and text boxes that allow you to specify the rotation of the new coordinate system relative to the reference system.

Each option button allows you to specify whether the corresponding text box value (in degrees) represents a rotation with respect to the x, y, or z axis. For example, if you specify X and 35 using the topmost option button and text field, respectively, GAMBIT rotates the new coordinate system about the x axis by an angle of 35 relative to the reference system. GAMBIT applies the rotation operations in sequence according to the specifications in the top, middle, and bottom fields. For example, if you specify the parameters

X = 35, Y = 27

in the top and middle fields, respectively, GAMBIT rotates the new system first by 35 about the x axis, then by 27 about the y axis. If, on the other hand, you specify the parameters

Y = 27, X = 35

in the top and middle fields, respectively, GAMBIT rotates the new system first by 27 about the y axis, then by 35 about the x axis. The final orientations of the systems that result from the two operations are not identical.

Offset contains three text boxes that allow you to specify the X, Y, and Z coordinates of the origin of the new system relative to the reference system.

Specifying Vertices That Define the New System

To specify the location and orientation of the new system by means of vertices, you must specify three vertices (see Figure 5-2):

Figure 5-2: Defining a new coordinate system using vertices

The location of the origin of the system is defined by the Origin vertex. The direction of the x axis is defined by a vector that points from the Origin vertex toward the X axis vertex. The orientation of the x-y plane is defined such that it contains both the x-axis vector and a vector that points from the Origin vertex to the XY plane vertex.

When you select the Vertices option, the middle section of the Create Coordinate System form appears as shown below.

The options and specifications available for the Vertices option are as follows.

Origin specifies the vertex that defines the location of the origin of the new system.
X axis specifies the vertex that defines the direction of the x axis for the new system.
XY plane specifies the vertex that defines the orientation of the x-y plane for the new system.

Specifying the System Label

Label specifies a label for the new coordinate system.


Modify Coordinate System

The Modify Coordinate System command allows you to change the coordinate system label and the default system parameter type.

Using the Modify Coordinate System Form

To open the Modify Coordinate System form (see below), click the Modify command button on the Tools/Coordinate System subpad.

The Modify Coordinate System form contains the following options and specifications.

Coordinate Sys specifies the coordinate system to be modified.
Type --------------------------------------
Cartesian
Cylindrical
Spherical
specifies the type of coordinate parameters to be used as the default type for the modified coordinate system.
Label specifies a label for the coordinate system.


Activate Coordinate System

The Activate Coordinate System command allows you to activate an existing coordinate system.

When you activate a coordinate system, GAMBIT uses the system as the default reference system for operations such as creating, moving, and copying topological entities.

Using the Activate Coordinate System Form

To open the Activate Coordinate System form (see below), click the Activate Coordinate System command button on the Tools/Coordinate System subpad.

The Activate Coordinate System form contains the following specification.

Coordinate System specifies the coordinate system to be activated.


Display Grid

The Display Grid command allows you to activate and display a grid associated with any existing coordinate system.

Overview

When you activate and display a grid, GAMBIT displays a rectangular planar grid in the graphics window. The dimensions of the grid are defined relative to the coordinate system with which it is associated. The grid is always parallel to one of the Cartesian coordinate planes but may be offset from the origin of the coordinate system.

Using the Mouse to Create Vertices

When the grid is displayed in any graphics window quadrant, GAMBIT allows you to create vertices by means of the mouse-regardless of whether the Create Vertex form is open. To create a vertex by means of the mouse, Ctrl-right-click at the desired vertex location. GAMBIT creates the vertex at the selection point-which is defined as the point of intersection between the grid plane and a line normal to the screen that passes through the cursor location.

Specifying the Grid Parameters

To define and display a grid, you must specify the following parameters.

The following sections describe each of the specifications listed above.

Specifying the Coordinate System

GAMBIT allows you to define and display a grid for any existing coordinate system. When you define and display a grid, GAMBIT activates the coordinate system associated with the grid.

Specifying Visibility

When you define and display a grid, GAMBIT allows you to specify the graphics window quadrants in which the grid is displayed. You can specify that the grid is displayed in any or all quadrants, but each specified quadrant displays only the currently active grid. For example, you cannot simultaneously display an x-z grid in one quadrant and a y-z grid in a separate quadrant.

Defining the Grid

To define the grid, you must specify its orientation, location, dimensions, and characteristics by means of the Plane, Axis, Offset, Minimum, Maximum, and Increment specifications on the Display Grid form. The specifications are defined as follows.

Specification

Definition

Plane

Coordinate plane with which the grid plane is aligned

Axis

Axis of the Plane for which grid values are currently being specified

Offset

Location of the grid plane along an axis normal to the Plane and with respect to the origin of the coordinate system

Minimum

Minimum coordinate value for the grid plane along the currently specified Axis

Maximum

Maximum coordinate value for the grid plane along the currently specified Axis

Increment

Distance between grid lines along the currently specified Axis

Specifying the Snap Option

When you create a grid, GAMBIT allows you to specify that any vertices created by means of the mouse are "snapped" to the grid. When a vertex is snapped to the grid, it is created at the grid point nearest to the selection point rather than at the selection point itself. To activate the snap option for any grid, select the Snap checkbox at the bottom of the Display Grid form.

Specifying the Grid Type

The grid type determines the manner in which the grid is displayed. There are two grid-type options: Points and Lines. When you select the Points option, GAMBIT displays the grid as a matrix of parallel rows of points. When you select the Lines option, GAMBIT displays the grid as a series of intersecting perpendicular lines.

Using the Display Grid Form

To open the Display Grid form (see below), click the Grid command button on the Tools/Coordinate System subpad.

The Display Grid form contains the following specifications.

Coordinate Sys specifies and activates the coordinate system corresponding to the grid.
Visibility specifies whether or not the grid is displayed in the currently active graphics window quadrants.

(quadrant command buttons) enable or disable any or all quadrants with respect to grid visibility.
Plane contains three radio buttons that allow you to specify the Cartesian coordinate plane that contains the grid. The Plane options are XY, YZ, and XZ.
Axis contains two radio buttons that allow you to specify the grid coordinate axis to which the current specifications apply. For example, if you select the XZ Plane option, the Axis options are X and Z. If you select the Z Axis option, the subsequent specifications for Minimum, Maximum, Increment, and the displayed grid values apply only to the z axis.
X, Y, or Z Offset specifies the distance by which the grid plane is offset from the origin of the coordinate system along an axis normal to the specified Plane. For example, if you select the XZ Plane option, this field is labeled Y offset and allows you to specify the distance by which the grid is offset from the origin in the y direction.
Minimum specifies the lower limit of the grid range measured with respect to the specified coordinate system.
Maximum specifies the upper limit of the grid range measured with respect to the specified coordinate system.
Increment specifies the spacing increment between grid lines or parallel rows of grid points.

Update list
generates a sequence of evenly-spaced grid-line location values based on the currently displayed Minimum, Maximum, and Increment parameters. The values appear in the Values scroll list located in the middle section of the form.
Values displays a list of grid-line location values for the currently selected grid coordinate axis. (NOTE: The scroll list heading indicates the plane and axis corresponding to the currently displayed values. For example, if you select the XZ Plane and Z Axis options, the heading is XZ_plane Z Values.)

The command buttons and text box located immediately to the right of and below the scroll list, respectively, allow you to modify the automatically generated grid-line location values as follows.

Delete
deletes one current grid-line location value. To remove a value from the scroll list, select (left-click) the value, then click Delete.

Unselect
unselects the currently selected value.

Delete All
deletes all currently displayed values in the scroll list.
Value: allows you to modify a currently displayed value or to create a new value to be included in the list.

To modify a currently displayed value, select (left-click) it from the scroll list, then input the new value in the Value text box and press Enter. GAMBIT automatically updates the scroll list to reflect the modified value.

To create a new value, Unselect any currently selected value, then input the new value in the Value text box and press Enter. GAMBIT automatically updates the scroll list to reflect the new value.

Options: -------------------------
Snap activates the snap feature for the grid. The snap feature affects vertex creation in the following manner.
  • If you select the snap feature, each vertex created by means of the mouse is automatically located at the grid point that is nearest to the selection point.
  • If you do not select the snap feature, each vertex created by means of the mouse is located at the selection point itself.
Grid: contains two option buttons that allow you to specify whether the grid is displayed as a matrix of points (Points) or as a series of intersecting perpendicular lines (Lines).


Display Ruler

The Display Ruler command allows you to display rulers along any or all of the axes in the currently active coordinate system.

To display a ruler along any of the coordinate axes, you must specify the following parameters.

If the range status is on, you must also specify the lower and upper limits of the ruler range.

Specifying the Display Status

The display status determines whether or not the ruler is displayed in the graphics window. To display or erase the ruler for any particular axis in the active coordinate system, select On or Off, respectively, in the Ruler field corresponding to the axis.

Specifying the Range Status

The range status determines whether the lower and upper limits of the ruler are user-specified or automatically set by GAMBIT for any particular axis. To specify the range status for any axis, select On or Off in the Range field corresponding to the axis. The range status specification operates in the following manner.

When GAMBIT automatically determines the lower and upper limits for an axis ruler, it constructs a theoretical "bounding box" that encompasses all components of the model domain, including topological entities, coordinate systems, and rulers themselves. The bounding box represents a rectangular brick volume the edges of which are aligned with the axes of the global coordinate system, c_sys.1.

When GAMBIT displays a ruler with an automatically determined range, it sets the range so that the ruler is exactly contained by the sides of the bounding box. If you increase the length of a user-specified ruler beyond the current limits of the bounding box, GAMBIT increases the size of the bounding box to accommodate the new ruler dimensions. GAMBIT also adjusts all currently displayed, automatically determined rulers so that, again, they are exactly contained by the sides of the bounding box.

Specifying the Intervals and Subintervals

The number of intervals for any axis determines the locations along the ruler at which GAMBIT displays tic marks and corresponding numbers. The number of subintervals determines the spacing of tic marks between numbered marks. For example, if you specify a ruler range of -5 to +5 with 10 intervals and 2 subintervals, GAMBIT displays a ruler that contains numbered tic marks at -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, and 5 and tic marks without numbers at -4.5, -3.5, -2.5, -1.5, -0.5, 0.5, 1.5, 2.5, 3.5, and 4.5.

Using the Display Ruler Form

To open the Display Ruler form (see below), click the Display Ruler command button on the Tools/Coordinate System subpad.

The Display Ruler form contains the following options and specifications.

Ruler: contains a field of three option buttons that turn the ruler display On or Off for the X, Y, and Z axes of the active coordinate system.
Range: contains a field of three option buttons that specify whether the ruler range is user-specified (On) or automatically determined (Off) for the x (X), y (Y) and z (Z) axes of the active coordinate system.
Min: contains a field of three text boxes that specify the lower limit of the ruler for the x (X), y (Y) and z (Z) axes of the active coordinate system.
Max: contains a field of three text boxes that specify the upper limit of the ruler for the x (X), y (Y) and z (Z) axes of the active coordinate system.
Intervals: contains a field of three text boxes that specify the numbered tic marks for the x (X), y (Y) and z (Z) axes of the active coordinate system.
Subintervals specifies the number of intermediate intervals between numbered tic marks for all displayed rulers.


Summarize Coordinate Systems

The Summarize Coordinate Systems command allows you to display (in the Transcript window) summary information for one or more coordinate systems.

When you summarize a coordinate system, GAMBIT displays four sets of global x, y, and z coordinates corresponding to the system. One set defines the origin of the system. The other three define the endpoints of unit vectors that point from the origin in the directions of the x, y, and z axes.

Using the Summarize Coordinate Systems Form

To open the Summarize Coordinate Systems form (see below), click the Summarize command button on the Tools/Coordinate System subpad.

The Summarize Coordinate Systems form contains the following specification.

Coordinate Systems specifies the coordinate system(s) about which information is to be displayed in the Transcript window.


Delete Coordinate Systems

The Delete Coordinate Systems command allows you to delete one or more existing local coordinate systems. (NOTE: You cannot delete the global coordinate system, c_sys.1.)

Using the Delete Coordinate Systems Form

To open the Delete Coordinate Systems form (see below), click the Delete command button on the Tools/Coordinate System subpad.

The Delete Coordinate Systems form contains the following specification.

Coordinate Systems specifies the coordinate system(s) to be deleted.

next previous contents index © Fluent, Inc. 10/29/01