필터 지우기
필터 지우기

How can I adjust the tolerance parameter for pdeadgsc from adaptmesh?

조회 수: 1 (최근 30일)
Alex
Alex 2015년 10월 18일
댓글: Alex 2015년 10월 20일
I am trying to use adaptmesh to solve an elliptic PDE, and I would like to use pdeadgsc as the triangle selection method. Here is an example of code:
[u,p,e,t] = adaptmesh(g,pdem,c,a,f,'Mesh',p1,e1,t1,'Tripick','pdeadgsc')
I pass an initial mesh to the function for refinement. But when I run the code, it does not refine the mesh. It just stops immediately and says "adaption completed." When I use pdeadworst, it refines the mesh as intended.
How can I set the tolerance parameter that is used in pdeadgsc?

답변 (1개)

Alan Weiss
Alan Weiss 2015년 10월 19일
If I am not mistaken, you can set the 'Par' name-value pair to something less than 0.5 to have the effect you want.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
Alex
Alex 2015년 10월 20일
Yes, I thought the same thing. However, it has no effect. This function call
[u,p,e,t] = adaptmesh(g,pdem,c,a,f,'Mesh',p1,e1,t1,'Tripick','pdeadgsc','Par',0.05)
simply terminates after the first mesh generation with the message Adaption completed, regardless of the value of Par (0.5, 0.05, 0.005, etc).

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

카테고리

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