How to generate regular mesh in pde toolbox? (in a mutiple subdomain geometry)
2 views (last 30 days)
Show older comments
Mohammad Monfared
on 14 Jan 2014
Commented: Mohammad Monfared
on 14 Jan 2014
hi everybody,
I'd like to generate regular mesh on the following domain:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155048/image.jpeg)
There is 'poimesh' function in the pde toolbox, but it doesn't accept a several subdomain geometry.
So is there any straight way to perform this job?
thanks,
0 Comments
Accepted Answer
Bill Greene
on 14 Jan 2014
I guess the first question is, what is the reason for the four subdomains? If the objective is simply to have different properties (pde coefficients) in each subdomain, there is another way to do that. You can generate a single mesh with poimesh, selecting nx and ny so that you have element boundaries at the inner subdomain boundaries. Then you can use a function to define the coefficients in each element based on the x, y location of its centroid.
Bill
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!