Assigning faces or cells fro meshes created by distmesh
3 ビュー (過去 30 日間)
古いコメントを表示
For example, I have generated a rectangular 2-D mesh with a cirlular objject embedded in the rectangle using "distmesh". Using geometryFromMesh (PDE toolbox), I can get the geometry and the mesh. However, the geometry variable only contains the the edges and one face, F!, and no information on the embedded object. I would like to apply different material properties to the two regions in my model. Without an identifier for the "face" of the circle, I am having diffiiculty trying to assign differnt properties to the two regions of my model. For 3D problems, this is even more of a problem in combining different geometries in the same model. How do I solve this problem when I obtain a geometry from a mesh created by other software packages.
0 件のコメント
回答 (1 件)
Ravi Kumar
2019 年 1 月 21 日
Hello Lewis,
To get multiple subdomains into PDE Toolbox you need to use the four argument format of the geometryFromMesh. Like,
[g, msh] = geometryFromMesh(model,nodes,elements,ElementIDToRegionID)
Here, ElementIDToRegionID maps the elements to subdomains.
Regards,
Ravi
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Geometry and Mesh についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!