Replies: 1 comment 1 reply
-
Setting a pressure BC is not possible in the Stokes variational formulation you are using. There exist some nonstandard variational formulations for the Stokes problem that allow such pressure conditions: https://www.ljll.fr/hecht/ftp/ff++days/2016/pdf/MS.pdf I have never tried such formulations. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My end goal was to compute pressure drops in a geometry similar to example24, but in cylindrical symmetry rather than translational.
I think I understand how most of it works (figuring out that velocity and pressure dofs are just concatenated took me a bit), but I can't figure out how to put pressure boundary conditions rather than velocity boundary conditions.
When boundary conditions on velocity are prescribed everything works fine and the solution is parabolic velocity and linear pressure distribution. When pressure boundary conditions are prescribed, pressure on the boundary is as requested but flow field and pressure distribution is crazy - the flow stops being incompressible 😞 .
How to correctly give pressure boundary conditions in this problem?
Here is my code. I tried my best at making it a minimal example with mesh generation included.
Beta Was this translation helpful? Give feedback.
All reactions