Demo 13 is not mathematically sound
In demo 13 the poisson equation is solved for pure Neumann boundary conditions in order to demonstrate mixed finite element spaces. However, the underlying problem is not well defined: For pure Neumann boundary conditions, f and g need to satisfy the compatibility condition \int_{\partial \Omega} g + \int_\Omega f = 0, which is not the case in the example (see http://eprints.ma.man.ac.uk/894/02/0-19-852868-X.pdf, page 1-2).
The example should be adapted to satisfy this condition, e.g. f=-4, g=1, and the condition should be mentioned in the help text.
Furthermore it would be interesting to see if it is possible for dolfin to detect such a case where the input is not well defined.
Comments (3)
-
-
reporter - changed status to duplicate
Duplicate of
#117. -
reporter thanks for pointing out that this issue has already been reported, however, the problem as it is stated is still ill-defined (in fact, the solution one obtains from fenics doesn't solve the Poisson equation). See my comment on the original bug report.
- Log in to comment
If you mean
neumann-poisson
demoyou're not correct - Lagrange multiplier takes care of the incompatibility
this is already reported as issue 117