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

Boundary conditions for Stokes problem

0 votes

Hi,
I have question in demo version: "demo_stokes-taylorhood.py". Why there are used Dirichlet boundary condition for pressure on outflow:
"# Boundary condition for pressure at outflow x0 = 0
zero = Constant(0)
bc2 = DirichletBC(W.sub(1), zero, sub_domains, 2)"
On outflow we have only do-nothing condition.
Could someone explain it.
Thanks in advance

asked Jun 9, 2014 by Gozel FEniCS Novice (140 points)

I believe this is a bug in the demo. The "do-nothing" condition is built in weakly into the form and the Dirichlet condition on pressure is redundant. Try omitting it and you'll see that it has practically no effect on the solution.

thanks a lot.

@MiroK - If you think it's a bug, could you report it on Bitbucket?

@Garth N. Wells Done.

...