I get this error in PDE toolbox, I don't know why.

조회 수: 1 (최근 30일)
Kaveh Gharibi
Kaveh Gharibi 2016년 7월 28일
댓글: Kaveh Gharibi 2016년 8월 2일
Error using pdevoron (line 30) Geometry error.
Error in pderespe (line 126) [p,t,c,h]=pdevoron(p,t,c,h,x,y,tol,Hmax,Hgrad);
Error in initmesh (line 157) [p,e,t,c]=pderespe(g,p,e,t,c,Hmax,tol,tol2,Hmax,Hgrad);
Error in pdegplot>plotTwoDGeometry (line 112) [p1,~,t1]=initmesh(g,'hmax',0.1,'init','on', 'MesherVersion','R2013a');
Error in pdegplot (line 75) hh = plotTwoDGeometry(g, plotEdgeNums, plotSubLabels);

채택된 답변

Damian Sheehy
Damian Sheehy 2016년 8월 1일
When you plot a geometry in shaded mode, the function calls initmesh to generate triangles that can be used to pass to graphics for shading. There is a bug in the pdegplot function that is leading to a failure in the generation of the triangles. Replace line 112 of the pdegplot function with the following:
[p1,~,t1]=initmesh(g,'init','on', 'MesherVersion','R2013a');
If that fails to resolve the issue please let me know. This bug will be fixed in the next release.
  댓글 수: 2
Kaveh Gharibi
Kaveh Gharibi 2016년 8월 1일
Thank you very much! I will try and see what happens.
Kaveh Gharibi
Kaveh Gharibi 2016년 8월 2일
편집: Kaveh Gharibi 2016년 8월 2일
I got the same error again. I changed that line as you mentioned but I still get the same error.|
Error using pdevoron (line 30)
Geometry error.
Error in pderespe (line 126)
[p,t,c,h]=pdevoron(p,t,c,h,x,y,tol,Hmax,Hgrad);
Error in initmesh (line 157)
[p,e,t,c]=pderespe(g,p,e,t,c,Hmax,tol,tol2,Hmax,Hgrad);
Error in pdegplot>plotTwoDGeometry (line 112)
[p1,~,t1]=initmesh(g,'init','on', 'MesherVersion','R2013a');
Error in pdegplot (line 75)
hh = plotTwoDGeometry(g, plotEdgeNums, plotSubLabels);

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Damian Sheehy
Damian Sheehy 2016년 8월 2일
Can you send me the geometry and I can take a look at it. My email has the following format: Firstname.Lastname@mathworks.com

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by