Why do I get a 'geometry error' in the PDE Toolbox when trying to draw a small circle?

9 views (last 30 days)
I have an assignment which is practically ready, but I always run into a problem. My geometry includes a rectangle from which another rectangle is cut, but I would like to round the corners of the cut in order to avoid singularities. My code for the shapes is the following:
pderect([0.998,1,1,11],'R1'); pderect([0.999,1,2,10],'R2'); pderect([0.999,1,2,2.001],'S1'); pderect([0.999,1,9.999,10],'S2'); pdecirc(1,2.001,0.001,'C1'); pdecirc(1,9.999,0.001,'C2');
The region of the equation would be ((R1-R2)+S1+S2)-C1-C2, but when drawing the circles the PDE Toolbox gives a geometry error. In other rectangles this is not the case, I suspect it might have to do with the fact that the length is R1 is greater by four orders of magnitude than the width. What can cause the problem and if there is a solution for it, what is it? I'm using MATLAB version R2015a.
Thank you in advance!

Answers (0)

Community Treasure Hunt

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

Start Hunting!