|
GridTool: A Tool for Structured and Unstructured Grid Generation
Tutorial
This section covers some simple examples which are based on
a geometry with a fuselage and a simple wing. The geometry file
is distributed with the GridTool package (Class). The users are
encouraged to follow at least steps A-G to get familiar with the
code. Then, steps H-L can be followed.
A. To run:
GridTool
B. Input / Output Panel
Read an IGES file
Select a project name (any name with no blank spaces)
Select ASCII file format (use the right mouse)
Select IGES file format (use the right mouse)
Select Class.igs file name from "Files" browser
Click on "Read" button to read Class.igs file
Stow panel
C. Display Window / Viewing Controls panel
To use hotkeys, the cursor must be in the display window
To Make a surface active, select it from display window
by using hotkey "s" (active surface is drawn in magenta)
Turn active surface on/off by using hotkey "w"
Turn axes on/off (x is hotkey)
Turn all surface/boundaries off/on by using hotkey "F12"
Translate with left mouse Zoom with middle mouse
Rotate world (key pad, x-rot num/lock, y-rot /, z-rot *)
Rotate screen (key pad, x-rot 7, y-rot 8, z-rot 9)
Use "-" sign on key pad to reverse direction
Do all above from Viewing Control Panel
To active the Viewing Control Panel, push "Control" button
on the main window
Rotate the object 90 degrees
Change the center of rotation to an active surface
Try all buttons in Controls Panel
D. Surfaces (Background Color)
change the display window's background color
activate the Surface Panel from the main panel
push the Background button in the Surface panel
use sliders or numeric inputs fields to change the color
E. Attributes (Surface Properties)
press "Surfaces" Button
Turn surfaces on/off from "On / Off" browser
change the "Selection Type" to single (use right mouse),
change the "Display Type" (use right mouse), e.g. shaded.
place the cursor over the surface number in the browser
and press the right mouse button
Change display paths of three surfaces (#2, #3 and 4)
turn the desired surfaces on
select the number of display paths,
(-n change it to n*default) (-2, 31)
press "Change DP" button
Change direction of a surface
press the "Arrow" button
turn the surfaces on
press "Switch Dir" button
Change directions of all surfaces to point outward
F. Points / Curves
Select a family from "Patches" panel
Create a curve on the active surface
press "Next Curve" button
press "next Point" button (the point will be in the
middle of surface (red))
use uv panel to change u/v (sliders, positioner,
change the rate, lock the direction)
Use hotkey "T" to move it to a display point on the
active surface
Use hotkey "M" to move to an existing point on a
curve
press "next Point" button" for the second point,
the second point will be on the top of the first,
move it to the right location
To put more point on this curve use the enrich and
Distribute buttons
G. Patches
press "Next Patch" button
Make first curve active
press "Next Edge" button
press "Find Edge" button to find the right curve
Repeat step 3-4
Note: Exit GridTool and start again
H. example (Class.igs)
Make sure all surfaces are pointing outward
Generate patches for surfaces 1, 3, 4, 5 automatically
Turn the surfaces on
select a family name (e.g. front-fuse)
select a BC, use the right mouse
select numbers of patches in each directions and
number of points
press the "Auto Patch" button
Shrink the patches by 5%
I. Point / Curves
Turn surface #2 on
Generate the boundary edges automatically by pressing
"Auto Edge" button
Create the necessary curves for mid-fuse
J. Patches
Create necessary patches for mid fuselage
Make the tip curve active
press "Next Patch" (hotkey F5)
press "Next Edge" (hotkey F6)
Connect the edge if necessary (hotkey F8)
press "Find Edge" (hotkey F7)
(till you find the correct curve)
go to step 3 (repeat till the patch is
finished)
check direction of the patch
(pointing into the flow field)
Make sure the patch has only four sides
(a circle marks the corner of each patch)
Create the box by pressing "Box" bottom
Connect the symmetry plane to the fuselage
Turn the surfaces / axes / curves / patches / curves off
Turn the "Bad Patches On"
Correct all Bad Patches
Turn all patches off and leave curves turned on
K. Bg Grids (Note: you need to have "Bg Grids" and
"Points / Curves" panels down).
Bring "Bg Grids" and "Points / Curves" panels down
Create a line source in the middle of fuselage
press "Next Source" button
press "Nodal Source" button (making it a linear source)
Move first and second points to the right locations
set the properties
repeat steps 1-4
L. Input / Output
Select a name for your restart file (e.g. my_rest1)
Write restart file
Write d3m file out (d3m file would be your
project name + d3m e.g., project.d3m)
|