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

Boundary conditions in normal and tangent directions

+2 votes

This was asked already 3 years ago on stackexchange, see here, but I thought maybe new solutions have become available in the meantime.

For a Navier-Stokes problem with Navier-slip BCs I need to specify $\vec u\cdot\vec n=g$ and $\vec n\cdot\sigma(\vec u, p)\cdot\vec t = f$ or $\vec n\cdot\sigma(\vec u, p)\cdot\vec t + \alpha\vec u\cdot\vec t= 0$, $\vec n$, and $\vec t$ being the normal and tangential (assume 2D) vectors on the boundary.

Is there a manner to specify such BCs directly if $\vec n$, $\vec t$ do not coincide with the cartesian coordinate directions? The answer back then was to use Nitsche's method, i.e., impose the boundary conditions in a weak manner.

In a manual approach one would probably perform local coordinate transformations (rotations) $(\hat x, \hat y) \rightarrow (\vec n, \vec t)$ and impose BCs for $u_n$, $u_t$ directly.

asked Apr 21, 2016 by dajuno FEniCS User (4,140 points)
edited Apr 21, 2016 by dajuno

1 Answer

+4 votes

I've done some work on this (with great help from Magne Nordaas), but I haven't cleaned it up properly. I'll see if I can get the time to write it up nicely, but in the meantime you can have a look at this:

https://gist.github.com/oyvinev/2e26d8c192cd6daa80d00677718e95bf

The core of it is as you say a rotation of the boundary dofs.

answered Apr 22, 2016 by Øyvind Evju FEniCS Expert (17,700 points)

Great, I'll have a look. Thanks!

...