Creating custom mesh in Matlab PDE toolbox

I have 2 questions.
1-Why generatemesh in Matlab PDE does not allow to create custom mesh? I can not use legacy workflow like poimesh because I need quadratic elements and legacy workflow does not have quadratic elements.
2-Also what if the mesh needs to be finer in some parts of geometry. Generate mesh only has the option for maximum element size or minimum element size in the whole domain. I need fine mesh on the boundary of a rectangular domain only and not in the whole rectangle.

2 Comments

The solution is here.
https://www.mathworks.com/matlabcentral/answers/346410-is-there-a-way-to-import-2d-meshes-nodes-and-triangles-into-pde-model-objects
External mesh generators such as GMSH or TETGEN maybe helpful here.

Sign in to comment.

Answers (0)

Asked:

on 21 Nov 2017

Commented:

on 1 Jun 2020

Community Treasure Hunt

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

Start Hunting!