Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chebop2 for a biharmonic problem #2346

Open
nickhale opened this issue Jan 22, 2020 · 0 comments
Open

chebop2 for a biharmonic problem #2346

nickhale opened this issue Jan 22, 2020 · 0 comments

Comments

@nickhale
Copy link
Contributor

When I try to solve the following biharmonic problem, chebop2 returns a result which seems reasonable, but is actually far from a solution to the problem:

N = chebop2(@(u) diffx(u,4) + 2*diffy(diffx(u,2),2) + diffy(u,4));
N.lbc = @(y,u) [u-y ; diff(u)];
N.rbc = @(y,u) [u-1/2*y.*(3-y.^2) ; diff(u)];
N.ubc = @(x,u) [u-1 ; diff(u)];
N.dbc = @(x,u) [u+1 ; diff(u)];
u = N\0;
norm(N(u))
ans =
   6.000000000011491

My suspicion is that this might be related to some incompatibility of the boundary conditions (u_y has a jump at (-1,+-1). However, my experience from 2nd-order problems ni chebop2 is that boundary conditions are usually ignored in favour of solving the PDE, for example:

N = chebop2(@(u) lap(u), [-1 1 -1 1]);
N.lbc = 1; N.dbc = 0; N.ubc = 0; N.rbc = 0;
u = N\0
figure
plot(u), shg

image
Clearly the boundary conditions aren't correct (although no warning is given.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant