|
||
| Problem Specification 1. Create Geometry in GAMBIT 2. Mesh Geometry in GAMBIT 3. Specify Boundary Types in GAMBIT 4. Set Up Problem in FLUENT 5. Solve! 6. Analyze Results 7. Refine Mesh Problem 1 Problem 2 |
||
Step 1: Create Geometry in GAMBITIf you would prefer to skip the mesh generation steps, you can create a working directory (see below), download the mesh from here (right click and save as pipe.msh) into the working directory and go straight to step 4. Strategy for Creating GeometryIn order to create the rectangle, we will first create the vertices at the four corners. We'll then join adjacent vertices by straight lines to form the "edges" of the rectangle. Lastly, we'll create a "face" corresponding to the area enclosed by the edges. In Step 2, we'll mesh the face i.e. the rectangle. Note that in 3D problems, you'll have to form a "volume" from faces. So the hierarchy of geometric objects in GAMBIT is vertices -> edges -> faces -> volumes. Create a Working DirectoryCreate a folder called pipe in a convenient location. We'll use this as the working folder in which files created during the session will be stored. Note for ACCEL computer lab users: Each user gets his/her own 100 MB of disk space under S: at ACCEL. You can put your files in S: and it'll be accessible from any computer. This is where you should put files that you want to keep and access later on. Start GAMBITStart your command prompt. Start > Programs > Lab Apps > Fluent Inc Products > Gambit 2.3.16 > Gambit 2.3.16 This brings up the GAMBIT startup window. Click Browse and select the folder that you just created. Enter -id pipe in the options box to tell GAMBIT to use pipe as the default file prefix, then click Run.
In Windows, the Exceed X-server starts up before the GAMBIT interface comes up. Exceed is a third-party application needed to render the interface in Windows (GAMBIT was originally developed under Unix). To make best use of screen real estate, move the windows and resize them so that you approximate this screen arrangement. This way you can read instructions in the browser window and implement them in GAMBIT. You can resize the text in the browser window to your taste and comfort: In Internet Explorer: Menubar > View > Text Size, then choose the appropriate font size. In Netscape: Menubar > View > Increase Font or Menubar > View > Decrease Font. The GAMBIT Interface consists of the following:
Select SolverIf the window titlebar does not say the solver is FLUENT 5/6, then you need to specify: Main Menu > Solver > FLUENT 5/6 Verify this has been done by looking in the Transcript Window where you should see:
The boundary types that you'll be able to select in the third step depends on the solver selected. We can assume that the flow is axisymmetric. The problem domain is: where r and x are the radial and axial coordinates, respectively. Strategy for creating geometryWe will put the origin of the coordinate system at the lower left corner of the rectangle. The coordinates of the corners are shown in the figure below:
We will first create four vertices at the four corners and join adjacent vertices to get the edges of the rectangle. We will then form a face that covers the area of the rectangle. Create VerticesFind the buttons described below by pointing the mouse at each of the buttons and reading the Description Window. Operation Toolpad > Geometry Command Button Notice that the Create Vertex button has already been selected by default. After you select a button under a sub-pad, it becomes the default when you go to a different sub-pad and then come back to the sub-pad. Create the vertex at the lower-left corner of the rectangle:
In the Transcript window, GAMBIT reports that it "Created vertex: vertex.1". The vertices are numbered vertex.1, vertex.2 etc. in the order in which they are created. Repeat this process to create three more vertices: Vertex 2: (0,0.1,0) Note that for a 2D problem, the z-coordinate can always be left to the default value of 0. Operation Toolpad > Global Control > Fit to
Window Button
This fits the four vertices of the rectangle we have created to the size of the Graphics Window.
Create EdgesWe'll now connect appropriate pairs of vertices to form edges. To select any entity in GAMBIT, hold down the Shift key and click on the entity. Operation Toolpad > Geometry Command Button Select two vertices that make up an edge of this rectangle by holding down the Shift button and clicking on the corresponding vertices. As each vertex is picked, it will appear red in the Graphics Window. Then let go of the Shift button. We can check the selected vertices by clicking on the up-arrow next to Vertices:.
This will bring up a window containing the vertices that have been selected. Vertices can be moved from the Available and Picked lists by selecting them and then pressing the left or right arrow buttons.
After the correct vertices have been selected, click Close, then click Apply in the Create Straight Edge window. Repeat this process to create a rectangle.
Create FaceOperation Toolpad > Geometry Command Button To form a face out of the area enclosed by the four lines, we need to select the four ledges that enclose this area. This can be done by holding down the Shift key, clicking on each line (notice that the currently selected line appears red), and then releasing the Shift key after all four lines have been selected. Alternatively, an easier way to do this would be to click on the up arrow next to edges: |
||