Top 5 misunderstandings on (good) mesh

Although there are quite a few mesh-free (mesh-less) FEA and CFD codes, meshing is still one of the most important tasks for most CAE users. The importance of generating high-quality mesh can never be overemphasized.

Source: (to be updated).

But how to define a high-quality, or more preciously good, mesh? Reading the output of mesh quality report in your meshing software is only the first step; you need to make judgements whether the mesh is good enough for your physical problem.

Unfortunately, there are a lot of misunderstanding of good mesh. Nowadays, it is hard to find meshing course in engineering departments. The numerical algorithm in most engineering schools is optional. So, it is not surprising, the new generation CAE users lack some fundamental knowledge on how meshing works in a CAE system.

Here are the top 5 misunderstandings on a good mesh.

#1. Good mesh must follow CAD model well.

More and more CAE users are designers, as explained in the previous post. They are generally well trained in CAD, and they tend to bring all details to analysis. They believe more details means more close to the reality.

This is not true, most of the time. Good mesh need resolve physics, not follow the CAD model.

The purpose of CAE simulation is to get physical quantities: stress, strain, displacement, velocity, pressure. CAD model is simply an abstraction of physical objects. Lots of details are not relevant to your analysis or have a marginal impact on your calculation. Therefore, knowing the physics in your system is essential. Good mesh should simplify CAD model and placing nodes based on physics.

This implies you can generate good mesh only if you know the physics in your system.

#2. Good mesh is always good.

So many times, we can see some CAE users work hard to get high-quality mesh by changing meshing size, decomposing geometry and defeaturing. They carefully check the mesh quality output in the meshing software.

This is necessary. But do not over-do it, because a good mesh is not always good. It depends on the physic problem to be simulated.

For example, you generate a very good mesh that captures the flow around an airfoil perfectly and calculates all forces accurately. Now if you change the flow attack angle from 0 to 45 degree, is your mesh still good? Very likely not.

A good mesh is always associated with the physics. When you change your boundary conditions, or change your load conditions, or change analysis types, or change flow models, the good mesh (with the identical geometry) may turn to be bad mesh.

#3. Hexahedron is always better than tetrahedron.

Most old textbooks will tell you hexa (quad) mesh is better than tetra (tri) and show you how large the numerical errors may be introduced by tetra (tri) mesh. Sometimes, this is true, especially 15 or 20 years ago.

Historically, people prefer hex mesh due to: 1). At that time, only structured mesh can be used for most CFD solvers; 2). Less cell (element) count (so, a lot of saving in RAM and CPU time); 3). Unstructured solver was not matured.

The solver technology developments in most commercial FEA and CFD codes in the last decade have led to the similar results for hex and tetra mesh for most problems. Of course, tetra mesh usually needs more computing resources during solving stage. But his can be easily offset by the time saved in mesh generation. The accuracy advantage of hex mesh no longer exists anymore, for most engineering problems.

For some particular applications, e.g., wind turbine, pump, or aeroplane, hex mesh is still preferred, because of 1). Industry convention; 2). Well-understood physics (most users know how to align the mesh); 3). Special tools to generated hex mesh for such geometries.

However, for most FEA and CFD users, if the geometry is slightly complicated, it is just a waste to spend time on hex meshing. Your results will not be better, most of the time, if not always. The (solver) computing time saved with hex mesh is marginal compared with time wasted in mesh generation.

#4. Good mesh can only not be generated by automatic meshing.

When the software vendor needs to justify that his meshing software is in the high-end (of course price is usually in the high end as well), he will tell you the software allows you to have all sorts of manual controls. The hidden information is only manual controls can generate a better mesh.

Yes, to a salesman, a good mesh needs manual control. But to engineer, you need to understand this is misleading. A good meshing software should have the intelligence to analyze the underlying geometry: calculating curvatures, finding gaps; finding small features; finding hard edges; finding sharp angles, applying sensible default settings…

This is what automatic meshing should do. For most users, the software can gather more info, and more accurately,  on the underlying geometry. So, the software should be able to apply better settings to get better quality mesh compared with a lot of users.

Of course, for advanced users who use the software every day and work on similar geometries for years, the story may be different. Such users also know the physics very well, and meshing software has no way to understand physic problems to be solved. But the percentage of such power users is decreasing day by day.

Anyway, for mesh quality, an excellent automatic meshing software should perform far better than most non-experienced users unless you have a lousy meshing software. Manual control is for experienced users who know the physics very well.

#5. Good mesh must have a large cell/node count.

Because HPC resource is easy to access, even an FYP student may try to solve 10-20 million cells CFD problems. In the eyes of most CAE users, large cell count means high fidelity and therefore all physics can be resolved.

This is not true, because some physics must be modelled. For example, in CFD, if you are going to use standard wall function, then any nodes in the viscous layer simply makes your wall function invalid.  You are not only wasting computing resources but also producing unphysical results. Even for LES, an excessive fine mesh may lead to larger errors and unphysical solutions.

Fine mesh does not mean good mesh. The purpose of meshing is to get solutions in discrete locations. A good mesh is a mesh that serves your project objectives. So, as long as your results are: 1) physical;  and 2) accurate enough for your project, your mesh is sufficiently good.

Another example of this misunderstanding is that most users always use the full 3D model. In their eyes, a 3D full model is “realistic”. However, if the problem is symmetry, using a portion of your geometry (therefore fewer nodes/elements) will produce better results because the symmetric condition is exactly enforced. If the problem is axis-symmetric, 2D results could be far more accurate than most 3D ones. Anyway, most new generation CAE users does not have the time to fully understand the physics of the system to be simulated. It is hard for them to do any simplifications. So, it is not surprising that the CAE problem is getting bigger and bigger, unnecessarily.

Currently,  CAE still replies on meshing. A good mesh should:

  1. be able to resolve the physics to be studied;
  2. have reasonable quality so that the solver will not fail;
  3. simplify the geometry based on physics;
  4. be problem specific;
  5. meet your project requirements
shengwei

Dr. Ma Shengwei has spent last 20 years in numerical simulation, including writing CFD solver and applying numerical simulation in solving various real-world problems, including pollutant dispersion, sediment transport, heat transfer, membrane separation, water and waster treatment, centrifugal pump, natural ventilation, and separation systems. You may get his detailed info on his expertise from Linkedin .

View Comments

  • I would say that the most important of these is the point you made in #2. It's critical to make sure the mesh correctly resolves the physics of your problem. For instance, I develop codes for plasma modeling. These codes use a hybrid method in which both kinetic particles and a mesh is used (http://www.particleincell.com/2010/es-pic-method/). Depending on the type of the problem you are solving, there is a certain maximum size a cell element can have in order to resolve the local electric field correctly.

    Also, in these hybrid particle/cell methods, another issue that comes up is the ease at which you can interpolate data from particles to the mesh and vice versa. Although an unstructured mesh can give you a much better resolution of the geometry of interest, it also significantly complicates the particle push. The unstructured mesh also results in zero-order electric field, unless second-order polynomials are used to solve for the potential. So it ends up being a tradeoff between the resolving the geometry and obtaining results faster and possibly also with a greater accuracy.

  • Thanks for that article. I just got some feedback on a proposal I submitted. The question was, "Will a mesh sensitivity analysis be performed?" I'm composing a reply that I hope won't come off as flippant that essentially says the whole project is a study in mesh sensitivity.

  • A good article for most part, but a couple of comments:

    1. For structural incompressible problems, Hex and Quads give better results than Tets and Tri. Even with the addition of bubble functions and incompatible modes to satisfy the LBB conditions, the Tets and Tris do not reach the same level of accuracy. In the fluids problems, the flow direction can lead to numerical diffusion if not aligned (so Physics based meshing is a must but that can be judiciously combined with Hexs and Quads to give better results than Tets and Tris).

    2. Instead of FEA and CFD, please say Structural and CFD since finite elements have been extensively used for CFD as well.

  • Very nice article.

    Regarding Point # 4. I have two observations:

    1. There are many meshers in market which are able to make mesh with minimum user input. But still they need manual work for fine tuning the mesh in important regions which software does not know at all. Moreover for hexa mesh, automatic meshers will find hard time for complicated models. But I would always go for good tet mesh than the bad Hexa mesh.

    2. Author has emphasized importance of experienced users and Hexa mesh. Which implies if you have option to create Hexa mesh you should go for it. Which is really a contradiction!!!

    But there are many situations in which it is not possible to create hexa mesh or the problem is not highly dependent on mesh.

    Last but not the least, you always need a good Hexa mesh if you want to have good results and your model shall be used for different design points simulation e.g. aircraft, missile, turbine, compressor CFD simulation etc.

    • thank you for your input.
      1. as an experienced user, you probably seldom rely on these automatic tools. However, for most not-so-experienced users, automation tools are valuable.

      2. actually, my point is hex mesh are seldom necessary. Mesh quality, not mesh type, is the key.

      • Point # 2 : As we increase the no of faces (hexa, polygonal) in a cell, we can have more information from neighbouring cells. Since tet cells have less neighbouring cells therefore it needs more dense mesh in those critical regions. This is what we learned in our CFD classes.

        Take an example of backward facing step validation case. You can easily observe HEX meshes have clear advantages.

        However for quick design iterations for complex geometries, it is better to go for tet type meshes, which easily adopt the themselves to geometry.

        Can we use tet mesh for transition predictions? separation dominated flows? LES simulations?

        How we are going to estimate uncertainty with tet mesh to the time needed for hex mesh generation? Which one is more important? Doubts on results from tet meshes or time consumed in Hex mesh?

  • I find this post as well as the follow-up discussion-comments very helpful and valuable. I highly appreciate the author's knowledge and participants' contributions.

    I wonder if anybody has done detailed comparison between finite volume method and finite element method with the same mesh containing non-orthogonality, skewness, non-uniformity. To my understanding (with some level of experience with the finite element method on hex-quad meshes), the finite element method is quite robust (or insensitive) with high aspect ratio meshes and large element-to-element size ratios (nonuniformity). But finite volume method, based on central difference or so, will theoretically lose accuracy on nonuniform meshes. Am I correct?

  • Hello shengwei sir,

    I am going to start my career in the CAE field with the software ANSYS. But the problem i am facing is how to decide the mesh element size for a particular geometry.
    Sir, can you please suggest me about how to decide mesh element size (max face size of element, mini element size and max element size.)
    Thank You

  • very useful post
    could you please provide us some references regarding the point No.#3

    Thnx

  • Agree. As far as some modeling is not compare with experimental datas even the mesh size may be badly estimated.

  • I'm not 100% agree, but 95% instead. In these days, not always a tethraedral mesh can be better than hexaedral mesh, and in that few cases you MUST be capable of discern if your solution is ok. (sorry for my english errors). Try to simulate hertz contact between 2 cylinders (do it in 3D) with tethraedral mesh, and you will know to which I refer.

  • However I am new in abaqus but some of the thing that I got from my simulation is that meshing with tet element creates a large number of element as compared to hex or hex-dominated element. And tet element takes more computational time as compared to hex. So, I want to know, Is there any way to reduce the number of element in tet meshing. The second thing is that which is better, to spend time in partition to generate hex or hex-dominated type meshing or simply go for tet meshing.

Leave a Reply

Your email address will not be published. Required fields are marked*

Published by
shengwei

Recent Posts

CFD in 2014

When a reader asked me whether there would be a post for CFD in 2014,… Read More

10 years ago

Why isn’t open source CFD solution for everyone?

When open source CFD solution is talked, two familiar statements are often heard:  Open source… Read More

11 years ago

CFD in 2013: what will change? what will not

Obviously, the doomsday didn't come. It proves again it is hard to predicate what will… Read More

11 years ago

From post-processing and visualization to simulation result exploration

We all know post-processing because it is part of CAE. All textbooks teach you how… Read More

12 years ago

The best 3 answers to “Why is visulization important for CFD?”

Last year, FieldView jumped into Altair's bed, and now got a baby named AcuFieldView in the… Read More

12 years ago

Ease of use, why is it important for CAE software?

If you happened to touch a real punch card in your university time, you probably… Read More

13 years ago