Cone generateMesh uniform mesh

Hi,
I have a conic frustrum in the form of an stl file. I am using generateMesh (as in the Matlab product toolbox which uses PDEs).
I have the following code: where ConeFrut48 is the stl file name.
model = createpde(1);
importGeometry(model,'ConeFrust48.stl');
generateMesh(model,'Hmax',1);
pdeplot3D(model)
And it gives the following mesh:
This is a mesh where most of the elements are equilateral triangles of side length 1mm, which is what I want. However there is a region on the right side of the frustrum where the triangular elements are no longer equilateral but are skewed. I need the entire body to be uniform equilateral. I am new to using this toolbox, is there a way to make it uniform everywhere? Perhaps there is a way to make this structured?
Thanks and kind regards,
Sabrina

댓글 수: 1

Chunru
Chunru 2022년 9월 1일
Generally speaking, it is not possible to have absolutely uniform equailateral triangularization for an arbitrary geometry. Many mesh grid generation algorithma somehow generate as uniform as possible grids. That is what you have obtained from generateMesh.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

질문:

2022년 8월 31일

댓글:

2022년 9월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by