Why aren't the essential boundary conditions fulfilled?

3 ビュー (過去 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.
  5 件のコメント
Zoltán Csáti
Zoltán Csáti 2014 年 6 月 8 日
Thank you.


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by