How to fix an error when trying to create a geometry for PDE?
조회 수: 15 (최근 30일)
이전 댓글 표시
Hi, I'm working with the 2D PDE tool solvepde function and I am to set some concentrical circles. Same separated one from each other, but matlab returns an error stating that:
Error using CoreDissipation2D (line 269)
Invalid geometry detected. Edges overlap or intersect at non-end points.
How am I supposed to solve it?
The circunferences are just defined as follows:
ncapes=6;
R2=[1;0;0;radius]; % contorn exterior (transferència de temperatura)
% Per a crear les geometries de les altres capes, necessitarem ncapes-1
% circunferències més, per això definrem una matriu per establir les
% circunferències internes.
% nint=ncapes-1;
I1=[1;0;0;radius/ncapes]; % primer contorn interior
I2=[1;0;0;2*radius/ncapes]; % segon contorn interior
I3=[1;0;0;3*radius/ncapes]; % tercer contorn interior
I4=[1;0;0;4*radius/ncapes]; % quart contron interior
I5=[1;0;0;5*radius/ncapes]; % cinquè contron interior
gd2 = [R2,I1,I2,I3,I4,I5];
sf2 = 'R2+I1+I2+I3+I4+I5';
ns2 = char('R2','I1','I2','I3','I4','I5')';
g2 = decsg(gd2,sf2,ns2);
댓글 수: 0
답변 (1개)
Sam McDonald
2017년 3월 8일
편집: Sam McDonald
2017년 3월 8일
Use geometry functions to define the geometry as stated in the documentation:
Additional suggestions are found in the following post:
댓글 수: 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!