Surface Meshing with Pointwise
Warning
This page assumes you are using Pointwise for surface meshing. For a version of this page that uses ICEM see here.
Introduction
Now that we have a geometry definition, we can start meshing it. Our end goal is to generate a structured volume mesh around the geometry that can be used by ADflow. Unlike the airfoil, this is a two step process for 3D geometries.
- We generate a surface mesh, a structured grid of points on the B-spline surfaces defining the geometry that create a watertight surface. 
- We extrude that surface mesh, using a hyperbolic or elliptic mesh extrusion algorithm, into a volume mesh that we can use with ADflow. 
This page describes how to accomplish the first step using Pointwise as the meshing tool of choice. This is not a full blown tutorial of Pointwise, more a step-by-step walk through on how to create a surface mesh for this particular wing geometry. If you want to learn more about using Pointwise, their Youtube channel is highly recommended. If you want to learn more about structured or unstructured meshing theory, refer to “Thompson, et.al. Handbook of grid generation. CRC press, 1998.” In this step we will focus on generating the L1 surface mesh. Generating the remaining members of the mesh family will be covered in the next step.
Files
Navigate to the directory wing/meshing/surface in your tutorial folder. This is where you will save your Pointwise project file and export the surface mesh to.
Basic Pointwise Usage
Please refer to your Pointwise provider for installation instructions and how to start Pointwise. Once you start Pointwise, it should look something like in the following picture.
 
Pointwise Overview.
- Object, Layer and Default control - main view for managing all the objects in your project, which layers they are on, and default parameters 
- Solver information - tells you the current solvers you have selected (i.e 2D, Stuctured, CGNS, etc.) 
- View and Selection - allows you to control your view and some special selection controls 
- Masks - Applies filters that limit what you can select based on the object types you chosen. Useful to avoid accidentally selecting things you don’t want to select. 
- Discretization and Solvers - Select how the object at hand is being discretized and apply solvers to it 
- Create - Buttons to create various kinds of objects 
- Attributes and Basics - Controls attributes of the object selected (like colors) and allows you to save your project or undo/redo actions. 
- Main View - what your objects currently look like 
It is highly recommend that you turn off mouse glide which is on by default in Pointwise sometimes.
To turn that off, click on Edit, Preferences, Mouse Style, and then uncheck Glide.
Then click Close.
We recommend using Tecplot style mouse controls in Pointwise for consistency but you don’t have to.
To set those up click on Edit, Preferences, Mouse Style, and then choose Tecplot under controls.
Then click Close.
With the Tecplot controls, you can control the main view with the following key and mouse combinations:
- zoom
- Rotate your - mouse wheelor press the- middle mouse buttonand drag. The zoom centers around your- mouse pointer.
- pan
- Press your - right mouse buttonwhile moving your mouse.
- rotate
- Press - ctrland your- middle mouse buttonwhile moving your mouse.
- orbit
- Press - ctrland your- right mouse buttonwhile moving your mouse. This will rotate around where the current rotation axes position is (red, green, and blue triple axes)
- move rotation axes
- Press - ctrl,- shift, and press your- right mouse buttonwhen you’re hovering over the position you want to move your axes to. This is an extremely handy function.
- right mouse menu
- Press your - right mouse buttonto a bring up a handy menu that gives you quick access to many functions. All of these functions are also available in other places in Pointwise.
Loading the Geometry Definition
Before we actually begin meshing, we have to set some standard values and import our geometry. First, we set some tolerances for Pointwise
- Click on - File->- Properties
- The - Model Sizeshould be around- 1000. (it is enough, if the order of magnitude is similar)
- The - Nodeproperty should be- 1e-4. The value of- Connectorshould automatically be- 1e-4as well
- OK
Note
The defaults seen here should be fine for this project and Pointwise usually automatically selects the correct Model Size and tolerances based on the geometery you import. It may however be necessary to edit these in case Pointwise isn’t interpreting the CAD geometry defintion correctly.
Now we have to choose the proper solver. In my case it is CGNS with adf support. If you have compiled the
MACH-Framework with hdf5 support, you can skip the last step.
- Click - CAE->- Select Solver
- Make Sure - CGNSis selected.
- Click - OK.
- Click - CAE->- Set Dimension->- 2D(this configures Pointwise for surface mesh generation)
- Click - CAE->- Set Solver Attributes(if you have- hdf5support, you can stop here)
- Select - adffor- CGNS File Type
- Click - Close
Now we can import the .igs file we created in the previous step.
- Click - File->- Import->- Database
- Select your - .igsFile ->- open
- Make sure - Unitsand- From Fileis selected
- Also make sure that - Import Layerand- Use Specified Layerare selected
- Make sure that the - Layer Numberis 0
- Click - OK
- You may receive a warning that some entities could not be converted. Just ignore it and click - YES
Warning
In Pointwise, some check boxes like Import Layer in the above step are only there to hide and show further options.
Unchecking them will not uncheck the check boxes the hide/show so be very careful.
After those steps, the window should look like this (you should probably save at this point):
 
Pointwise after setup.
Few important Pointwise labels:
- Block
- This is a 3 dimensional mesh section 
- Domain
- This is a 2 dimensional mesh section or section of a surface mesh 
- Connector
- A line constraining the extent of a - Blockor- Domain
- Database
- An imported geometry definition, typically composed of B-spline and trimmed surfaces 
- Model
- A Database entity containing one or more Quilts 
- Quilt
- A Database entity containing one more more B-spline surfaces. Comes below Model in the heirarchy. See this video for more details. 
- Spacing Constraint
- This controls how - nodeslay on a- Connector. Further down the line, the- Connectorcontrols how the- nodeslay in a- Domainor- Block
Geometry Clean-up
To make our life a bit easier in the coming mesh work, we first clean-up the geometry a bit.
- Select the whole - database. Just draw a rectangle around it while your- left mouse buttonis pressed
- Click - Wireframe->- Shaded
- Click on - Layers
- Double click on - Descriptionand enter- Geo
 
Geometry clean-up #1.
Now we will join some surfaces together into quilts and models to simplify our geometry. We will first assemble our wing into a watertight model composed of several quilts, one for each surface. We will then combine the two quilts composing the tip cap into a single quilt to make meshing easier.
- Rotate your view as necessary to get a good view of each surface of the wing, then click and drag to select all the database entities. 
- Click on the - Rainbow Colorsbutton with the the whole database selected to make each database surface a unique color. Note that this button assigns colors randomly so your wing will probably look different than the one shown here.
- With the whole database selected, click on - Create,- Assemble, and then- models.
 
- In the side panel that comes up, be sure that under the - Tolerancecheckbox- Use Defaultis selected.
- Then click - Assemble.
- Verify that you get 1 model, 5 quilts, 1 symmetry loop, 0 lamina boundaries, and 9 manifold boundaries. 
- Then click - OK
 
You should be able to see that the tip cap is comprised of two quilts, BSurf-7-quilt and BSurf-9-quilt in this case. We are now going to assemble these two surfaces into a single quilt.
- Click on an empty space in the main view to unselect any selected database entities. 
- Rotate your view with pressing - ctrland your- right mouse buttonwhile moving your mouse until you have a good view of the tip of the wing (or use the view presets)
- Select the two surfaces comprising the tip cap by clicking on each of them while holding - ctrl. You may need to use the spacebar while hovering over the tip cap to change your select to the quilts instead of the model. Alternatively you can just select the quilts from the list.
- With the tip cap quilts selected, click on - Create,- Assemble, and then- quilts.
- In the side panel that comes up you can select - Use Defaultsfor both the- Angleand- Boudary Angle.
- Click Assemble. 
- Verify you get 1 quilt, 0 lamina boundaries, and 4 manifold boundaries. 
- Click - OK.
 
You should now have 4 quilts and 1 Model in your Geo layer.
Double click on each entity in the list and name them accordingly if you wish as it will make knowing what is what much easier.
 
This completes the geometry clean-up section of the tutorial.
What we have done here is first assemble the five B-spline surfaces from our .igs file into a single watertight Model with five quilts.
Then we combine the two quilts making up the tip cap into one quilt giving us a final total of four quilts.
Performing the geometry clean-up process is not an exact science, especially near the tip cap.
What was shown here is only one way to do it.
As a rule of thumb you should always try and create one quilt for each domain you plan on making in your surface mesh.
Meshing
Meshing strategy
Before we start meshing, we will first discuss what our overall strategy is and what our mesh will look like.
Our plan is to create a multi-domain structured surface mesh with each quilt in our geometry being used to define a domain.
For the upper surface, lower surface, and trailing edge we will generate connectors on the boundaries of each associated quilt and then dimension the each connector with the number of nodes we want along it.
We will then assemble the domain on each quilt using the four connectors on each one domain at a time.
Lastly, we will then set the grid spacings at the ends of each connector as necessary.
The domain on the tip cap will require special attention and we will address it after the upper surface, lower surface, and trailing edge are all done.
Below, sketches of the wing dimensions are provided for the top planform view, root view, trailing edge view, and tip cap view.
The text in green indicates the number of nodes along each connector while the arrows point from the red text point out the space at each connectors end where it needs to be specified.
Some spacing are automatically assigned by Pointwise but will be copied to other connectors are some point.
These connectors are indicated as such in the mesh plan.
Planform view
Root view
Trailing-edge view
Tip cap view (note the O-grid topology)
Meshing the upper surface, lower surface, and trailing edge
- Start by selecting your upper surface, lower surface, and trailing edge quilts 
- Then click - Connectors on database entitiesto create your connectors.
- Verify you have 10 new connectors in your project. 
 
- Unselect the database entities you had selected and then select all 10 connectors you just created. 
- Go to - Layers, then enter 10 for the- Target layer number(it doesn’t matter what number you choose as long as it’s different from everything currently in the list).
- Click - Apply. This will move all the connectors to a new layer seperate from the database entries
- Find you new layer in the list and double click so that the green arrow moves next to it. This means the new layer is now the active one and anything new you create will be added to it. 
- Go ahead and name the new layer - connectorsor anything else you want to set it apart.
- We recommend unchecking the - Geolayer to hide it (we will need to show it later though so don’t delete it!).
 
- Click on - List
- Adjust your view so that you are looking at the trailing edge of the wing at the tip. 
- Hold - ctrland click on both of the connectors connectiong the upper and lower surfaces.
- Click on - Editand then click on- Jointo join the connectors into one (alternatively just use- ctrl + Jwhile having the connectors selected).
 
- Leave your newly joined connector selected. 
- Go to the dimension box in the upper bar and enter 17 then hit - Enteron your keyboard. This will assign 17 grid points to you connector.
 
- Adjust your view so that you are looking at the trailing edge at the root. 
- Click on the connector joining the upper and lower trailing edges and dimension it with 17 point the same way you did the connectors at the tip. 
- Select both of the the remaining connectors forming the trailing edge surface. 
- Go to the dimension box in the upper bar and enter 145 then hit - Enteron your keyboard.
 
- Adjust your view so that you are looking at the leading edge of the wing. 
- Select the sole leading edge connector. 
- Go to the dimension box in the upper bar and enter 145 then hit - Enteron your keyboard.
- Adjust your view so that you are looking at the root of the wing. 
- Select both the upper and lower airfoil connectors at the root. 
- Go to the dimension box in the upper bar and enter 193 then hit - Enteron your keyboard.
 
- Adjust your view so that you are looking at the tip of the wing. 
- Select both the upper and lower airfoil connectors at the tip. 
- Go to the dimension box in the upper bar and enter 193 then hit - Enteron your keyboard.
Your upper surface, lower surface, and trailing edge have now been dimensioned and are ready to mesh.
- Hold - ctrland click on all four connectors forming the trailing edge (some view adjustment is required or just choose them from the list).
- Click on - Assemble Domainsin the top bar
- You should see the domain at the trailing edge assembled. 
 
- Hold - ctrlthe click on all four connectors forming the upper surface (some view adjustment is required or just choose them from the list).
- Click on - Assemble Domainsin the top bar
- You should see the domain on the upper surface assembled. 
- Hold - ctrlthe click on all four connectors forming the lower surface (some view adjustment is required or just choose them from the list).
- Click on - Assemble Domainsin the top bar
- You should see the domain on the lower surface assembled. 
You should now have three domains in you project corresponding to the upper surface, lower surface, and trailing edge respectively.
 
We are now going to setup the grid spacings along the connectors. Before we start we need to eliminate a breakpoint that is left over from the two connectors we joined earlier at the trailing edge.
- Click the - Show Domainsbutton on the right hand side view panel to hide the domains you just created from view for the moment.
- Click on the trailing edge connector at the tip (the one that you got from joining two connectors earlier) 
- Click on - Grid,- Distribute, and then- Break Points.
- In the left panel that opens click - Delete All Breakpoints.
- Click - OK.
 
- Continue selecting the same connector you just deleted the breakpoint from. 
- Click on - All Masks On/Off
- Click on - Toggle Spacing Constraint Maskin the Masks bar. Only having this mask select will only enable you to select spacing contraints which will make the next part easier.
- Select the upper spacing contraint on the trailing edge tip connector as shown below. 
 
- Use - ctrl + Cto copy the spacing constraint.
- Select the trailing edge spacing constraint for both the upper and lower airfoil connectors that meet the trailing edge connect as shown below. 
- Use - ctrl + shift + Vto paste the copied spacing on to the upper and lower airfoil connectors at the trailing edge as shown below.
 
What we have done here is taken the spacing on the trailing edge connectors that was automatically assigned by Pointwise and then applied it to the upper and lower connectors that meet the trailing edge. This will ensure consistent spacing when the upper and lower surface join the trailing edge which is very important. We will now repeat the process at the root.
- Select the upper spacing contraint on the trailing edge root connector. 
- Use - ctrl + Cto copy the spacing constraint.
- Select the trailing edge spacing constraint for both the upper and lower airfoil connectors that meet the trailing edge at the root. 
- Use - ctrl + shift + Vto paste the copied spacing on to the upper and lower airfoil connectors at the trailing edge.
We will now apply the rest of the spacings as prescribed in the mesh plan.
- Select the upper and lower spanwise connector spacings at the trailing edge root. 
- With all three connectors selected enter a spacing of 0.19 in the - Spacingbox at the top bar.
- Then hit - Enteron your keyboard to apply the spacing.
 
- Select the leading edge spanwise connector spacing at the root enter a spacing of 0.20 in the - Spacingbox at the top bar.
- Then hit - Enteron your keyboard to apply the spacing.
- Select the leading edge spanwise connector spacing at the tip and both the upper and lower spanwise trailing edge connector spacings at the tip. 
- With all three connectors selected enter a spacing of 0.001 in the - Spacingbox at the top bar.
- Then hit - Enteron your keyboard to apply the spacing.
- Select the upper and lower root airfoil connector spacings at the leading edge and enter a spacing of 0.001 in the - Spacingbox at the top bar.
- Then hit - Enteron your keyboard to apply the spacing.
- Select the upper and lower tip airfoil connector spacings at the leading edge and enter a spacing of 5e-4 in the - Spacingbox at the top bar.
- Then hit - Enteron your keyboard to apply the spacing.
- Show all domains in your view and click on - All Masks On/Offto enable the remaining selection masks.
Your mesh should now look like this.
 
Note that the Hidden line view option is selected for the domain to allow a better view of the details.
Save your project at this point as we are now ready to move on to meshing the tip cap.
Meshing the tip cap
Meshing the tip cap is the most difficult part of meshing the wing and may require several attempts to get right. We will subdivide the tip cap into five domains using a O-grid topology as shown in the mesh plan. First, according to our meshing plan, we will need to split the upper and lower tip airfoil connectors at 9 points from the leading edge.
- Click - Show Domainsto hide the domains from your view. This will make the following steps easier.
- Zoom in on the tip leading edge and select the upper airfoil connector. 
- Click on - Edit,- Split, then choose the- Split only at Grid Pointsoption under- Curve Optionsin the left hand panel that opens.
- Next, click the right green arrow next to - Slide Pointto move the selected point. Monitor the- Iindex of the point in the bottom right of the screen and stop once you have reached I=9.
- Click - OK
- Repeat this process on the lower airfoil connector however note the indicies are reversed. You will need to split at I=185 and use the right green arrow to get to it faster. 
 
Now we are ready to create our domains. Carefully examine the mesh plan for the tip cap again and make sure you understand the O-grid topology we will be using.
1. Click on Layers and then click the check box next to the Geo layer to show it.
Be careful not to accidentally make it active.
2. Make sure Show Database is checked in the View panel to see the geometery as shown below.
You should now be able to see the geometery databases as follows.
 
The next step is the most difficult one to do correctly and may require several attempts to get right. There are two possible way to do the next step and one may work better than the other for you. This page will go over both methods. You may wish to increase the number of undo levels as the default in Pointwise is quiet low.
- Go to - Edit,- Preferences,- Miscellaneous, and then increase the- Max. Undo Levelsto as high as it will go.
- Click - Close.
Meshing the tip cap - Approach 1
- Select your tip cap quilt 
- Click on - Create,- Draw Curves,- Line on Database...
- A panel should open on the left side of the screen. 
- In the - On Databasesection click on the- Beginbutton.
 
- Click on the tip cap quilt and then click the - Endbutton next to the- Beginbutton you clicked earlier.
 
We will now draw three connectors to form the first domain. Where you place you points will have a major impact. We suggest you avoid placing point too far away from the boundary but also not too close from the boundary. The curvature of the tip cap that your connectors follow play major role in the quality of the mesh with more curvature being a bad thing in general.
- Draw the first segment connecting a point on the upper half to the upper connector split. Click on the point away from the boundary first to avoid accidentally selecting another quilt. 
- Click - Applyin the left hand panel.
- Draw the second segment connecting a point on the lower half to the lower connector split. Click on the point away from the boundary first to avoid accidentally selecting another quilt. 
- Click - Applyin the left hand panel.
- Connect the two remaining points. 
- Click - Applyin the left hand panel.
- When done click - OK
 
- Adjust your view to go the trailing edge of the tip. 
- Click on - Create,- Draw Curves,- Line on Database...
- A panel should open on the left side of the screen. 
- In the - On Databasesection click on the- Beginbutton.
- Click on the tip cap quilt and then click the - Endbutton next to the- Beginbutton you clicked earlier.
- Draw another set of three connectors to form the topology at the trailing edge of the tip cap. 
- Make sure to click - Applyafter you create each line segment.
- Click - OK
 
Meshing the tip cap - Approach 2
If the approach above is giving you trouble (will become apparent down the road later in the tutorial) then you might want to try this method.
- Select your tip cap quilt 
- Click on - Create,- Draw Curves,- 2 Point Curves..
- A panel should open on the left side of the screen. 
- Adjust your view so that you can see the tip cap leading edge. 
- Draw the first segment connecting a point on the upper half to the upper connector split. Your connector will not lay on the tip cap and that is ok as we will fix that later. 
- Draw the first segment connecting a point on the lower half to the lower connector split. Your connector will not lay on the tip cap and that is ok as we will fix that later. 
- Connect the two remaining points. 
- Click - OK
 
- Select all three connectors you just created. 
- Click - Editand then- Project
- In the panel that open click - Target Database Selectionand then- Begin
- Select the tip cap quilt and then click - End
- Under - Projection Control,- Directionbe sure- Project Shapeis selected
- Leave all other settings as they are anc click - Project
- Verify that 100% of the connectors are on the database otherwise you’ll have to repeat the entire process again 
- Click - OK
 
- Adjust your view so that you are looking at the tip cap trailing edge 
- Click on - Create,- Draw Curves,- 2 Point Curves..
- Draw three segments to from the trailing edge tip cap domain as shown. 
 
- Select all three connectors you just created. 
- Click - Editand then- Project
- In the panel that open click - Target Database Selectionand then- Begin
- Select the tip cap quilt and then click - End
- Under - Projection Control,- Directionbe sure- Project Shapeis selected
- Leave all other settings as they are anc click - Project
- Verify that 100% of the connectors are on the database otherwise you’ll have to repeat the entire process again 
- Click - OK
 
Meshing the tip cap - Both approaches continued
Note
This section continues from the end of either Approach 1 or 2
We are now going to connect the two topologies at the leading and trailing edges to create the O-grid on the tip cap.
- Select your tip cap quilt 
- Click on - Create,- Draw Curves,- Line on Database...
- A panel should open on the left side of the screen. 
- In the - On Databasesection click on the- Beginbutton.
- Select your tip cap quilt then click - End
- Now we are going to connect the upper surface point we just created together with several consecutive line segments Be sure to follow the curvature of the airfoil as best as you can. See image below for an example. 
- Click - Apply.
- Repeat the process for the lower connector. 
- Click - OK.
 
With all the necessary connectors finished we need to dimension them. Refer to the mesh plan for the number of nodes used along each connector.
- Toggle - All Masks On/Offand make sure the- Connector Maskis the only mask selected.
- Adjust you view to the tip cap leading edge. 
- Select the both the short split leading edge connectors while holding - ctrl
- Go to the dimension box in the upper bar and enter 9 then hit - Enteron your keyboard.
 
- Now select all the remaining connectors forming the leading edge tip cap domain. 
- Go to the dimension box in the upper bar and enter 17 then hit - Enteron your keyboard.
 
- Adjust your view so that you’re looking at the trailing edge of the tip cap. 
- Select all three connectors you created for the tip cap trailing edge 
- Go to the dimension box in the upper bar and enter 17 then hit - Enteron your keyboard.
 
- Select the two remaining long connectors you created. 
- Go to the dimension box in the upper bar and enter 185 then hit - Enteron your keyboard.
 
We will now assemble all five domains on the tip cap.
- Click - Show Domainsto see the domains.
- Select all five connectors forming the tip cap leading edge and then click - Assemble Domains
 
1. Create the remaining domains for the tip in a similar fashion. There should be five tip cap domains total after you’re done.
You should now have a poor quality surface mesh for your tip cap as shown below.
 
We will now use the solver in Pointwise to smooth out the mesh in the tip cap to improve its quality.
- Click - Show Databasesto hide the databases.
- Toggle - All Masks On/Offand make sure the- Domain Maskis the only mask selected.
- Select all five domains composing the tip cap mesh 
- Click on - Gridand then- Solve
- In the panel that opens click on the - Edge Attributestab.
- Change - Boundary Conditionstype to- floating.
- Click - Apply.
 
- Click on the - Solvetab.
- In the - Iterationsbox enter 100.
- Click on the - Runbutton and monitor the residuals in the list above.
- Click - Runagain until the residuals stop changing significantly.
- Inspect the tip cap leading edge mesh and verify the tip cap leading edge domain appears correct. The image below shows an example of an poor quality tip cap leading edge mesh. If you get this result then you may need to undo, switch your approach and try again. Getting this right may require several attempts. 
 
Bad tip cap mesh
Here is what a tip cap leading edge with acceptable mesh quality will look like. The tip cap mesh should be approximately symmetrical.
 
Acceptable tip cap mesh
- Click - OKto save your smoothed mesh
The tip cap mesh is now finished. Our last steps will be orient normals and inspect mesh quality.
Orienting the Mesh
Orienting the surface normals in Pointwise is easy.
- Select all 8 of your domains. 
- Click on - Editthen- Orient
- In your main view you should see all the surface normal vectors for each domain appear. 
- Click on a surface that has a outward facing normal vector. In this case we will choose the upper surface but in your case make sure you are choosing any outward facing normal vector. 
- Click on - Set Master
 
- Select all 8 domains. 
- Click on - Alignwhich will make all domains match the normal orientation of the master.
- Click - OK.
 
Mesh with aligned normals
You should now save your project.
Inspecting Mesh Quality
- Select all 8 domains 
- Click on - Examineand then- Area Ratio
- Move your mouse around to see the exact area ratio of each cell. 
 
Area ratio is only one metric used to evaluate the quality of a mesh however it’s what we will choose here. Cell colored in cooler colors are good quality cells with warmer colors being worse quality cells. Most of the wing should have good quality cells with all of worst quality cells being near the tip cap. Don’t worry if you see red cells near the tip cap. As long as your maximum area ratio is below five you should be okay for the rest of this tutorial.
Exporting the Mesh
We will now export the mesh as a .cgns file that can be read by pyHyp for extrusion.
- Select all 8 domains. 
- Click on - File,- Export, and then- CAE.
- Save your file as - wing_surf_L1.cgns.
- In the panel that pops up leave all settings as their defaults. 
- Click - OK.
Congratulations on completing the the most tedious part of the tutorial. Meshing with Pointwise takes practice and it will be revisited again in a later tutorial.