필터 지우기
필터 지우기

Assigning faces or cells fro meshes created by distmesh

조회 수: 3 (최근 30일)
Lewis Bartel
Lewis Bartel 2019년 1월 19일
답변: Ravi Kumar 2019년 1월 21일
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.

답변 (1개)

Ravi Kumar
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

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by