Skip to content

Adding immersed boundary conditions to boundaries.py #250

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

markojovo
Copy link

I updated boundaries.py to allow for a fourth boundary type (immersed). This takes in a mask that is applied to the simulation grid, enforcing a constant value on the mask (default 0.0 for "no-slip").

I added a couple of helper functions in boundaries.py for simulating channel flow with a simple shape in the middle (circle or square) -- I'm still figuring out what a good API for defining the mask shapes would be.

I also added another notebook demo for demonstrating this, it was mostly copied from the original channel flow demo notebook.
It passed all the tests in boundaries_test.py

I also made a small update to visualization.py to allow for rotations in the output gif

Please let me know what you think or if you have any thoughts, and especially if there's anything glaring or obvious. Or if there's some cleanliness or visualization issues you think I should take care of.

I've also submitted my Contributor License Agreement to Google as an individual contributor

Cheers
Marko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant