-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow strong pressure bcs to be used with stokes. #110
base: main
Are you sure you want to change the base?
Allow strong pressure bcs to be used with stokes. #110
Conversation
This is done by providing interfaces to bc application onto an inactive mask, this is then passed into full projection and used to define the ghost nodes. To make this all happen in one place I've also done this for reference nodes. Needs tests.
Some remarks:
Did you try this with inhomogeneous pressure bcs as well? I'm not a 100% sure it'll do the right thing by just having the "answer" in the rhs. Maybe we can do a simple Poisseule flow with a nonzero (but constant) pressure bc on the outflow? |
Thanks @stephankramer ...
I did try this with an inhomogeneous pressure, yes, that's why I needed it but perhaps what you're saying is why it didn't work :) Having said that, I don't think I'm just applying the answer in the rhs. It is scaled as it would be if we weren't using the full projection solver, i.e. by those dt, theta_pg and theta_divergence arguments I mentioned above. Your test suggestion sounds good. Perhaps that will clear up whether things are scaled correctly or not. |
Would it be of use for me to setup and try this test? If so, I may need a quick offline chat with Stephan beforehand... just so that I fully understand the setup he is suggesting!! Very rarely have I been used as a shinning example - but it makes me a happy man ;-) |
I already tried it and it didn't work. I'll try to dig out why so we can discuss. |
Following @stephankramer's example, I'm setting up this pull request as a way of discussing this branch, primarily with "team stokes".
This branch aims to allow strong pressure bcs to be used with Stokes. It proved not to be useful for the problem I was dealing with but it's still useful functionality to have (and surprising that it didn't already work).
What this branch needs is testing though. Does anyone have a suggestion of a test where strong pressure bcs would be useful? Perhaps one where we currently use weak bcs (keeping in mind the subtle differences between strong and weak pressure bcs).