Assigning faces or cells fro meshes created by distmesh
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Ravi Kumar
el 21 de En. de 2019
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 comentarios
Ver también
Categorías
Más información sobre Geometry and Mesh en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!