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!