-
Notifications
You must be signed in to change notification settings - Fork 72
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
Simulating two different fluids #33
Comments
If you don't care about the density/buoyancy effect, you can either use tracer particles, or (better) a scalar transport equation. The passive scalar transport equation is already implemented, but there isn't a good UI for the user yet: see #29. Once you have the scalar equation going, it is fairly easy to add a Boussinesq approximation to capture the effect of buoyancy. This would be a cool feature to add! If you want to model the inertia difference, then you need to model the density as a tracked variable. The pressure solver would then supply the real local buoyancy force as well. I've added this before for free surface flows, but it's not a "quick" fix. It'll change the momentum step quite a bit. |
I see thanks, I have a couple of questions.
Thanks. |
|
I see, thanks a lot. I will evaluate what to do. Nevertheless, I love this protect, I would love to see this library do complete fluid dynamics simulations, including variable density, viscosity, compressible, etc. After I finish this semester and get some time, I'll try to work on this. I'm a physics student and I'm pretty busy with exams and research. But would love to get involved with this project in the future. |
Hi, I found this repo and love the library. I think that adding moving objects this easily is great. I have been using WaterLily for some time.
My new project involves a smoke simulation with a moving object. Therefore I was wondering, can WaterLily simulate 2 different fluids? especially because densities become variable on the domain and buoyancy forces become important.
The details of the simulation: Imagine a pipe full of smoke, then a piston accelerates the smoke out of the pipe into the air forming a smoke ring. Like in the donut example. I want to study how the ring changes with the simulation parameters. Smoke is much denser than air, that's my biggest problem.
Another approach I thought of was to add a lot of very small particles and update their position using the get force function and then add the buoyancy force but I don't know how good this approach is.
What do you recommend?
I could of course just study the vorticity of the air and don't mess with two different fluids, but I was wondering if WaterLily could do the job.
Thanks.
The text was updated successfully, but these errors were encountered: