Mesh Generation, Quality, and Verification
What You'll Learn
- 1Choose structured or unstructured meshing for a geometry
- 2Judge quality with skewness, orthogonal quality, and growth rate
- 3Size first cells and inflation layers to a target y-plus
- 4Run a grid convergence study and report an order
A beautiful solution on a poor mesh is still wrong. Meshing decides how much of the flow the solver can see and sets a truncation error floor that no amount of iteration will lower. This lesson covers meshing strategies, quality metrics with real acceptance thresholds, first cell sizing for wall resolved and wall modeled flows, and the grid convergence index that turns a mesh study into a number a reviewer will accept. Every threshold here is one a reviewer can check on the mesh itself in a few minutes, before any solver run begins.
Choosing a Meshing Strategy
Structured quadrilateral and hexahedral meshes align with the expected flow, giving the lowest diffusion and best convergence per cell, but they cost human time and struggle with complex geometry. Body fitted hex meshes are worth that effort whenever the geometry allows.
Unstructured tetrahedral meshes generate quickly for arbitrary geometry yet need refinement to reach the same accuracy, because misaligned cells add numerical diffusion. Polyhedral cells behave like locally adaptive hex meshes with better accuracy per cell, and prisms bridge the two.
Quality Metrics and Acceptance Thresholds
Skewness measures deviation from an equilateral cell, with 0 perfect and 1 degenerate. Average below 0.25 and maximum below 0.85 are the usual acceptance limits for tetrahedral meshes, and cells above 0.95 are unusable.
Orthogonal quality runs from 0 to 1 and measures the angle between the centroid vector and the face normal, so keep the minimum above 0.1. Aspect ratios of 100 to 1000 are fine inside boundary layers when the long axis follows the flow, and growth rate near walls should stay below about 1.2.
Sizing the First Cell and Inflation Layers
The first cell height follows from a target wall unit and an estimate of friction velocity from skin friction. Getting this backward is the most common setup error in wall bounded CFD.
Wall resolved runs target y-plus between 1 and 5 inside the viscous sublayer, while wall function runs target 30 to 300 inside the log layer where the model was calibrated. Total inflation height should exceed the boundary layer estimate.
Grid Convergence Study
Run the same case on three meshes with a refinement ratio of at least 1.3, record a quantity of interest, and compute the observed order from the three solutions.
A converging sequence shows changes shrinking toward the extrapolated value, and once the fine and medium results sit within about 1 percent the mesh is adequate for that quantity.
| Mesh | Cells | Drag coefficient | Change |
|---|---|---|---|
| Coarse | 400000 | 0.312 | baseline |
| Medium | 1100000 | 0.327 | 4.8 percent |
| Fine | 3000000 | 0.334 | 2.1 percent |
Real-World Examples
- Airfoil boundary layer - A first cell near 5 times 10 to the minus 7 meters holds y-plus near 1 at Reynolds number five million.
- Duct with wall functions - A 0.1 meter duct at 10 meters per second needs a first cell near 2 millimeters for y-plus near 60.
- Automotive aerodynamics - A production car study uses 6 to 12 million cells with 12 prism layers and skewness below 0.85.
đĄCheck Quality Before the First Iteration
Common Mistakes
Targeting y-plus near 1 with a wall function model
Fix: Match the first cell to the model: sublayer for low Reynolds models, log layer for wall functions.
Refining uniformly instead of near gradients
Fix: Uniform refinement spends cells where nothing changes; concentrate them in boundary layers and wakes.
Reporting one mesh as converged
Fix: A single mesh cannot show truncation error, so run three levels and report the order.
Key Takeaways
- Structured hex meshes give the most accuracy per cell; unstructured meshes reach complex geometry fastest.
- Keep skewness below 0.85 and orthogonal quality above 0.1 for tet and poly meshes.
- First cell height comes from a target y-plus that must match the wall treatment.
- Grid convergence needs three meshes and an observed order, not one smooth solution.
Frequently Asked Questions
What if the mesh gives y-plus below 1 with a wall function?
The function is applied inside the viscous sublayer where its logarithmic assumptions fail, producing wrong wall shear.
Is low skewness enough to call a mesh good?
No. It is necessary but not sufficient; the mesh must also be refined where gradients exist and aligned with the flow.
How many cells are enough?
Enough is defined by a converged quantity of interest, so run a grid convergence study rather than picking a count.
Interview Questions
Q1: Describe your grid convergence procedure.
Build three meshes at a refinement ratio near 1.3, converge each tightly, track one quantity, compute the observed order, and report a grid convergence index with an uncertainty band.
Q2: Which mesh quality metrics do you check first?
Maximum and average skewness, minimum orthogonal quality, aspect ratio away from boundary layers, and growth rate between adjacent inflation layers.
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type â Always start by categorizing the problem
- Incorrect formula application â Verify the formula applies to your specific case
- Unit errors â Always check units are consistent throughout
- Sign errors â Pay careful attention to positive and negative values
- Rounding too early â Keep full precision until the final answer
- Forgetting constraints â Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic â Build on the foundation laid here
- Next Topic â See how this concept extends to more advanced material
- Practice Problems â Additional exercises with solutions
- Video Explanation â Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions