Why aren't the essential boundary conditions fulfilled?

조회 수: 2 (최근 30일)
Zoltán Csáti
Zoltán Csáti 2014년 6월 6일
댓글: Zoltán Csáti 2014년 6월 8일
I made a Poisson-solver based on Legendre-spectral method and I would like to test it. I used the pdetool, created the square region [-1,1]x[-1,1] and specified the PDE to be an elliptic one with parameters c=-1, a=0, f=x.*y. The boundary conditions: left:y, right: -y, top:-x, bottom:x. I run the task with different mesh density and obtained the interesting result that at (-1,-1) the obtained value is not -1 as it should be in my opinion. For an elliptic PDE, these Dirichlet boundary conditions are essential boundary conditions therefore they are taken into account when applying the weak form. Why aren't these boundary condition satisfied?
Thanks, Zoli

채택된 답변

Bill Greene
Bill Greene 2014년 6월 6일
I ran this example in R2014a of MATLAB and I do get -1 at the lower left corner (and upper right)
I created the example in pdetool with the following steps: 1. Create the square. 2. After selecting Boundary Conditions, click on each edge and define r to be the values you list above (y,-y,-x,x). 3. Click the = icon.
What version of MATLAB are you running?
If you want to post your code, I'm happy to take a look.
Bill
  댓글 수: 5
Bill Greene
Bill Greene 2014년 6월 8일
This plotting problem was fixed in R2013a.
Bill

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

추가 답변 (0개)

카테고리

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