Poisson Solve
#2826
Replies: 1 comment 8 replies
-
Could you explain what that means? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello AMReX folks,
I have written this 3D vorticity-velocity-based solver using AMReX. The main solution contains 3 vorticity and 3 velocity components that are all cell-centered. We have 3 vorticity transport equations (one in each direction) that updates the vorticity field from time step n to n+1 based on the velocity field at time step n, and three 3 Poisson equations (one for each velocity components) that give the velocity field at time step n+1 where the RHS of the Poisson equation is a function of vorticity (at time step n+1).
With this brief introduction, here is my question: I was trying to solve a 2D x-y problem (convecting Taylor vortex) using this 3D code, with only one cell in the neutral direction, z (I tried more cells and it didn't help). The BC is periodic in all direction. The problem is when I use the built-in AMReX periodicity, everything is good and the Poisson solve seems to be working in all directions just fine (I check that against the exact solution), but when I enforce periodicity using my external (user-defined) BC function with Dirichlet BC for the linear solver, the Poisson solve returns wrong solution. This is odd, because when I compare the RHS values as well as the solution value of the ghost cells for both AMReX periodic BCs and the external BC function right before calling the solve, they are identical, but the solutions are different!
Has anyone encountered a similar problem? Any advice would be greatly appreciated!
Thank you
Beta Was this translation helpful? Give feedback.
All reactions