meshquality: What does it represent and what is a good number?
2 次查看(过去 30 天)
显示 更早的评论
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'.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geometry and Mesh 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!