How can I generate a geometry and mesh for two adjacent squares in the PDE Toolbox 1.0.7 (R14SP3)?
2 次查看(过去 30 天)
显示 更早的评论
I would like an example to generate a mesh and geometry for 2 square regions with one common side.
采纳的回答
MathWorks Support Team
2010-1-22
The following code can be used to obtain the mesh for 2 squares as desired. It calls the sqpde.m file (attached below)
pdegplot('sqpde')
axis equal
[p,e,t]=initmesh('sqpde');
pdemesh(p,e,t), axis equal
For more information on how to develop your own Geometry file (the attached file, sqpde.m, is an example of such a file) see the documentation for PDEGEOM.
0 个评论
更多回答(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!