MATLAB: How to refine a subdomain in the PDE Toolbox mesh generation tool

meshmesh generationmesh refinementPartial Differential Equation Toolboxpdepde toolbox

Hello,
I would like to refine a part of my domain without refining the whole mesh. Say for example that I have a unit square domain R1, which contains a circular sub-domain E1. Can I refine only E1 up to a desired element size, without imposing the same mesh size in the rest of the domain?

Best Answer

I assume your problem is in 2D, then refinemesh function accepts an extra input argument "it", that is interpreted as a list of subdomains to refine, if it is a row vector.