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!