-
Notifications
You must be signed in to change notification settings - Fork 712
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
2D Poisson equation with variable coefficient #21
Comments
Could you change |
Thanks a lot! That appears to be the bug. Do you happen to have a 3D case or a time-dependent 2D example by any chance, or have you ever tried it? -Qi |
Yes, we have time-dependent 2D example, but the code is not online. |
Great! Looking forward to it. Thanks again for the help. |
Hi Lu, is there any chance to share a simple 2D time dependent case, like the one in the arxiv paper for us to try? Thanks, -Qi |
I will upload these days. 2D time case should be very similar to 1D case. |
Thank you! That would be great! |
Hello Lulu! Please where can I find an example of a time dependent 2D domain. best regards, |
Hello Lulu! Please is this the right syntax to fix the time-periodicity condition for a PDE problem in 2D in space? Spatial_domain = dde.geometry.Rectangle(xmin=[-1, -1], xmax=[1, 1]) periodic_condition_u = dde.PeriodicBC(Spatio_temporal_domain, 1, lambda _, on_boundary: on_boundary, component=0)??? I only want to check the two last line for: u(x, y, 0) = u(x, y, 2pi); v(x, y, 0) = v(x, y, 2pi) thank you very much! best, |
Or should I instead use this syntax for the time-periodicity for a problem in 2D in space ? periodic_condition_u = dde.PeriodicBC(Spatio_temporal_domain, 1, lambda _, on_periodic: on_periodic, component=0)??? Thank you very much! best, |
For the periodic in x and y, why "u(x, y, 0) = u(x, y, 2pi); v(x, y, 0) = v(x, y, 2pi)"? Should it be
|
Hello Professor! Thank you for replying. I want to enforce the periodic in time. So, my problem is in 2 dimension in space and the third dimension is the time as: (x, y, t). I actually want to write: u(x, y, 0) = u(x, y, 2pi); v(x, y, 0) = v(x, y, 2pi) for all (x, y). best regards! Fayaud! |
For more precision, I am solving the following time-dependent Navier-Stokes equation: best, |
Hi, I am interested in solving some practical problems with your solver. As a first test, I would like to solve -div(coeff*grad y) = 1, where coeff=1+x1+x2. (a similar 1D case works fine.) The computational domain is [0,1]^2.
Here is the simple code:
But the solver converges to the wrong solution. One obvious mistake is the boundary condition is not 0 and also the solution is quite off. I also tried the non conserved version of the problem, it give me an even worse solution.
The solver has no issue to solve a problem of -dy_xx-dy_yy-dy_x-dy_y=1, which is very close to the problem I failed. Therefore, I do not quite understand why the solver fails so badly for the problem I set up. I am new to tensorflow, so it is likely I may miss something obvious. Any suggestions?
Thanks!
Qi
The text was updated successfully, but these errors were encountered: