How can I generate a mesh of quadrilaterals for a given 2D surface using MATLAB?

Does somebody know, how to simply and theoretically generate a mesh of quadrilaterals on a given surface?
The surface is in the x,y-plane and might also have curved borders.
I have searched on google and found like tons and tons of informations and also free software to take over this Job, but I really would like to know, how I can generate a mesh of quadrilateral elements which corresponds to a given surface just on my own.
So where is the best place to start? I need to develop my own understanding and also my own spaghetti code for this task.
Given the borders of and the interior of a 2D surface, how or where should I start in order to get my 'new' vertices on the interior of the surface? How do I know, how many quadrilateral elements and corresponding vertices do I need?
Thank you for your help and support in advance.
Regards
Ahmed Hossam

 Accepted Answer

3 Comments

I remember reading about this algebraic method. But I couldn't find enough explanations for this method in the textbooks. I will check these links and answer you later.
What I need is the detailed mathematical theory of the transfinite interpolation in order for me to be able to generate my own code based on this theory.

Sign in to comment.

More Answers (1)

A general way is using Gmsh to generate quasi-structured or unstructured quadrilateral mesh.
In Im2mesh (an open-source Matlab package), I demostrate how to define 2d geometry in Matlab and then generate unstructured quadrilateral mesh via Gmsh.
Please check these two examples: demo11 demo12
To run demo, you need to download Im2mesh package and Gmsh sofware.

Asked:

on 29 Mar 2017

Edited:

about 9 hours ago

Community Treasure Hunt

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

Start Hunting!