Dirichlet BC for boundary not aligned with any axis

Hi,

I am doing fluid computation and wanna use DirichletBC for the velocity. The only thing is I have a boundary that is aligned with any axis. So the simple Dirichlet BC is then turned into a linear constraint on the boundary like \vec{n}\cdot\vec{v}=n_xv_x+n_yv_y+n_zv_z=0. I think there might be people who’ve already encountered this question as it’s quite usual in reality. If anyone could share what you think, I’d appreciate that.

Thanks,
Victor

As far as I know this is not achievable with DirichletBC.
You should rather realize the boundary condition weakly.

1 Like