3D Poisson equation example

Hi guys,

I am not sure if this is a good question, I have a very easy 3D Poisson equation, with very simple Dirichlet BCs, all of them are equal to zero.

The equation is
\div u = p,
where p is a constant.

Is there an existed example so that I can play with the size of the grid, etc.

Thank you

It is simple to adapt the existing demos to 3D by replacing UnitSquareMesh with UnitCubeMesh in for instance: Poisson equation — DOLFIN documentation

1 Like