How to generate a Cartesian 2D Mesh using MATLAB

6 ビュー (過去 30 日間)
Sujith Subramanian
Sujith Subramanian 2014 年 3 月 11 日
編集済み: Sujith Subramanian 2014 年 3 月 16 日
Hi everyone,
I am working on a Final Year Project, where I am asked to develop a 2D Cartesian Mesh with a Moving boundary and validate the mesh using a number of simple flow geometries.
I have decided to use MATLAB to generate the mesh, but all I can do is to generate the mesh using the "meshgrid' function. I could not figure out a way to call/refer the nodes and apply the Cut-Cell Approach. Is there a way that you could actually refer to the nodes in the mesh?
Can anyone help me on how to create a simple Cartesian mesh or guide me with any relevant resources that can be of some help ,please?
Any reply on this matter would be highly appreciated.
Awaiting your assistance, Sujith
  4 件のコメント
Patrik Ek
Patrik Ek 2014 年 3 月 13 日
Ok so you are not just trying to create a mesh like a matrix?
mtx = [3,3,3;
2 2 3;
1,2,3];
but rather some kind of mesh object? Not just
q = mesh([1 2 3]);
max(q,flipud(q.'));
Sujith Subramanian
Sujith Subramanian 2014 年 3 月 16 日
編集済み: Sujith Subramanian 2014 年 3 月 16 日
Hi Patrik,
That is exactly what I was looking to create. I finally figured how to do that using MATLAB. Thank you so much for helping me out and I am very sorry for confusing you with my questions. I just couldn't convey you what I was trying to say. Sorry buddy!
Have a good day, Sujith

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by