This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Implementing Poisson's Equation with periodic and Neumann boundary conditions

+2 votes

Hey everyone, and sorry for the noob question. I was working on a custom solver but want to move to FENICS if possible, but first I was wondering if it's possible to solve this equation. It's Poisson's equation over a square.

The boundary conditions are that
1. Two opposite edges are periodic
2. The other two edges have Neumann boundary conditions

Can you tell me if it's possible to implement these boundary conditions and if so, how? I'm pretty sure it is but I'm completely new to FENICS and have no idea where to start.

Thanks!

asked Jun 23, 2015 by 09wakharet FEniCS Novice (150 points)

1 Answer

+2 votes

Hi, checkout Poisson demos with Dirichlet-Neumann and Dirichlet-periodic boundary conditions. Also, as the problem with your bcs is singular with constant kernel you should have a look at these two demos 1, 2 to see how to handle it.

answered Jun 24, 2015 by MiroK FEniCS Expert (80,920 points)
...