You will perform region adaption in the Region Adaption Dialog Box (Figure 29.6: The Region Adaption Dialog Box).
Setting Up Domain → Adapt → Mark/Adapt Cells → Region...
The procedure for performing region adaption is as follows:
In the Region Adaption Dialog Box, select the Inside or Outside option.
If you choose Inside, cells with centroids within the specified region will be marked or refined.
If you choose Outside, cells with centroids outside the specified region will be marked or refined.
Specify the shape of the region.
In 2D, you may specify a Quad (that is, a quadrilateral), Circle, or Cylinder by making a selection from the Shape group box. In 3D, your options include Hex (that is, a hexahedron), Sphere, or Cylinder.
Define the region by entering values into the dialog box or by using the mouse.
In the dialog box, the inputs are as follows:
To define a hexahedron or quadrilateral, enter the coordinates of two points defining the diagonal of the box.
For a hexahedron, define X Min, Y Min, and Z Min, as well as X Max, Y Max, and Z Max. For a quadrilateral, define X Min and Y Min, as well as X Max and Y Max.
To define a sphere or circle, enter the values for the Radius and the coordinates of its center: X Center, Y Center, and Z Center for a sphere, or X Center and Y Center for a circle.
To define a cylinder, enter the value for the Radius and the minimum and maximum coordinates defining the cylinder axis: X-Axis Min, Y-Axis Min, and Z-Axis Min, as well as X-Axis Max, Y-Axis Max, and Z-Axis Max for 3D, or X-Axis Min and Y-Axis Min, as well as X-Axis Max and Y-Axis Max for 2D. In 2D, this will be the width of the resulting rectangle.
To define the region using the mouse, click the button. Using the right mouse button, select the input coordinates from a display of the mesh or solution field. After selecting the points, the values will be loaded automatically into the appropriate fields in the dialog box. See Controlling the Mouse Button Functions for details about mouse button functions.
You have the option of editing these values before marking or adapting.
To define a hexahedron or quadrilateral, select the two points of the diagonal in any order.
To define a sphere or circle, first select the location of the centroid and then select a point that lies on the sphere/circle (that is, a point that is one radius away from the centroid).
To define a cylinder, first select the two points that define the cylinder axis and then select a point that is one radius away from the axis.
(optional) If you want to set any adaption options (described in Mesh Adaption Controls Dialog Box), click the button to open the Mesh Adaption Controls Dialog Box.
Click to mark the cells for refinement by placing them in an adaption register (which can be manipulated as described in Manipulating Adaption Registers), or click to perform the refinement immediately.