meshquality: What does it represent and what is a good number?

7 views (last 30 days)
According to the documentation:
  • meshQuality evaluates the shape quality of mesh elements and returns numbers from 0 to 1 for each mesh element. The value 1 corresponds to the optimal shape of the element. By default, the meshQuality function combines several criteria when evaluating the shape quality.
What are these "criteria"? I believe it should a combination of aspect ratio, max/min size, angle, Jacobian, etc. But it would be good to see how it is calculated...
And what is considered to be a "good" mesh? above 0.3, or 0.5, or 0.7?
Q = meshQuality(model.Mesh);
elemIDs = find(Q < 0.5);
My idea is to find all elements with a quality lower than a certain threshold and locally refine the mesh. Which brings me to another question....
I know that you can locally refine mesh using 'Hvertex' and 'Hedge'. But can you do the same thing based on elemIDs?
m3 = generateMesh(model,'Hedge',{1,0.001},'Hvertex',{[6 7],0.002})
This would require the generateMesh function to refer to model.Mesh rather than model itself ... which doesn't seem to work:
Check for incorrect argument data type or missing argument in call to function 'generateMesh'.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!