MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   MATLAB中的网格生成 (https://www.labfans.com/bbs/showthread.php?t=22876)

poster 2019-12-10 16:49

MATLAB中的网格生成
 
在[URL="http://en.wikipedia.org/wiki/MATLAB"]MATLAB中[/URL] ,是否有子程序接受点列表,并给我返回一个可以用来显示给同事的好网格,例如这样?

[IMG]https://www.mathworks.com/access/helpdesk/help/techdoc/ref/tri_scat_interp.png[/IMG]

实际上,我所需要的只是一个简单的2D网格生成器,该生成器接受一系列X,Y坐标(定义区域的边界),并给我返回可以很好地对该区域进行网格化的元素列表。 [URL="https://stackoverflow.com/questions/1672176/how-do-i-generate-a-3-d-surface-from-isolines"]我可以使用MATLAB命令对Z值进行插值来完成其余的工作。[/URL]

[B]编辑:我[I]不[/I]感兴趣使用MATLAB来生成上述外观图。我对使用MATLAB库获取元素列表感兴趣,这样当我自己绘制这些元素时(不是在MATLAB本身;而是在我自己的C#程序中),我可以获得该网格化表面。[/B]

PS:我知道有这个[URL="http://www-math.mit.edu/~persson/mesh/"]DistMesh[/URL] ,但是我正在寻找更简单的东西-也许直接在MATLAB中内置的东西。不, [URL="http://www.mathworks.com/access/helpdesk/help/.../meshgrid.html"]meshgrid[/URL] [I]不是[/I]生成网格。


回答:
听起来好像您想创建一个[URL="http://en.wikipedia.org/wiki/Finite_element_method"]有限元网格[/URL] ,从一组定义区域边界的点开始,然后生成一个三角形网格,在该区域内创建更多点。我认为没有针对此问题的“简单”解决方案。

最近的“内置”的解决方案很可能是[URL="http://www.mathworks.com/access/helpdesk/help/toolbox/pde/"]偏微分方程工具箱[/URL] ,特别是一些的[URL="http://www.mathworks.com/access/helpdesk/help/toolbox/pde/ug/f7498.html#f8753"]几何算法[/URL]像[URL="http://www.mathworks.com/access/helpdesk/help/toolbox/pde/ug/initmesh.html"]INITMESH[/URL]和[URL="http://www.mathworks.com/access/helpdesk/help/toolbox/pde/ug/refinemesh.html"]REFINEMESH[/URL] 。

您提供给[URL="http://www-math.mit.edu/~persson/mesh/"]DistMesh[/URL]的链接似乎是另一个很好的解决方案。在[URL="http://www.mathworks.com/matlabcentral/fileexchange/"]MathWorks File Exchange[/URL]上也有一些提交,您可以看一下:
[LIST][*] [URL="http://www.mathworks.com/matlabcentral/fileexchange/25555-mesh2d-automatic-mesh-generation"]MESH2D[/URL]由[URL="http://www.mathworks.com/matlabcentral/fileexchange/authors/22624"]达伦Engwirda[/URL][*] [URL="http://www.mathworks.com/matlabcentral/fileexchange/authors/6906"]Rasmus Anthin的[/URL] [URL="http://www.mathworks.com/matlabcentral/fileexchange/2808-finite-element-toolbox-2-1"]有限元工具箱2.1[/URL][/LIST]
[url=https://stackoverflow.com/questions/1686265]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 04:13

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.