Tutorials: Volume Generation

The final step towards a finished grid is to generate an outer boundary, assign boundary conditions, and generate the volume grid.  The outer boundary is really dependent on the geometry and the problem being solved.  For example, the outer boundary for a supersonic case can be much closer than for a subsonic case.  For illustration, the outer boundary will be 15 body lengths away in all directions.  To start, download the file flying_minnow_clean_split_spaced.igs.gz or continue from the last tutorial.

1.  Read the file flying_minnow_clean_split_spaced.igs.gz in with gluing and trimming enabled. Select the two points shown and inquire to get an approximate body length.  The message window reports almost 25.5 units long.  Click averagept to get an approximate center.

volgridtut1

2.  Leaving the point created selected, enter 255 (10x25.5) in the radiusnew field.  Leave the start and end angles at the default (0 and 90 respectively).  Click circulararc.  Select the curve and point shown and go to the surfaces_button Application. Since the rotation is about the x-axis, there is no need to select a vector.  Make sure the VX in vectorxyzfields is selected.  Leave the startangnew field at 0.0 but change the endangnew  to 90.0 and click  surfofrevrepick and delete

volgridtut2

3.  Select the surface and point shown and go the utilities_button Application. Change the anglefield to 90.0.  Change repeatnew to 3.  Make sure the VX in vectors component field is clicked to rotate about the x-axis.  Click rotate

volgridtut3

4.  Select the surfaces shown and the point shown.  Change the (VX,VY,VZ) fields in the Vector application to (1,0,0).  Click mirror.  Select the surfaces of the sphere just created, enter "OuterBoundary" in the name field of the group editor area and add_cuttingplane.  Check the topology and glue the edges of the newly created surfaces.  Click glue to glue the edges and then click check to ensure that the model is topologically valid.

volgridtut4

5.  Select the 6 outer boundary points.  Go to the surfgrid_button application and enter a value of 30 for the spacing, space, and surfgrid

volgridtut5

6.  In the volgrid_button application, set the Absolute Initial Spacing to 2.5e-4.  Click the Prop, Body, LeftWing, RightWing, and Mouth groups.  Select  normgrow and reconnect and apply.  Click the OuterBoundary group.  Select reconnect and apply.  Generate the volume grid by clicking volgrid. (This could take a while.  If possible change the host field to another machine).  For illustration,  set only normal growth on groups Prop, Body, LeftWing, RightWing, and Mouth and generate the volume grid again.  (Change the case name in fileio so your previous volume grid doesn't get written over.)  This disables reconnection on the surface grid.  In this case, the volume grid won't generate. (It makes it part of the way and dies).  In some cases, the resulting volume grid is better than with reconnection on.

volgridtut6

7.  Read (sm -grid gridfilename)  in the good grid (the one generated with reconnection on).  The group names are not retained so find the group containing the outer boundary, off, andreset.  Make the S_grid Shaded.  In the viz_button application, turn the preview plane on.   Change to the XZ plane,  change the Y value to 0, and add_cuttingplane.  Turn the preview plane off.

volgridtut7

8.  Left click somewhere on the prop close to the cutting plane and zoom.  You can see the viscous packing close to the solid surface.  Set the CuttingPlane to Invisible in the global graphics edit area.  At the top of the viz_button panel, select  Volume Weather Map and click stats.  This gives a plot of the angles in the volume grid.  Click disp.  This returns the max and min angles to the message window. 

volgridtut8

This completes the grid generation process.  The various functions in the viz_button panel can be used for quality evaluation.  Practice is the best way to become proficient in grid generation.  Good Luck!

contents_btn previous_btn home_btn next_btn