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
[example] Add an Euler equation solver #796
Conversation
WOW! As a graphics person, I've been mainly playing with incompressible fluid simulations - i.e. those with a Chorin-style projection. I didn't realize compressible fluids can have stunning visual results as well! Thanks for adding this. The implementation looks great to me. Just one nit: would it be possible to remove the dependency on Another quick question: does the Taichi implementation with the CUDA backend have a comparable performance to https://www.youtube.com/watch?v=k72_YeNO7yU? I'm just curious about the current CUDA backend performance in Taichi. |
Yeah! The shocks and acoustic waves really add beautiful visuals that you cant really get in incompressible flow. I'm also excited to improve this with some better discretization schemes and AMR. See https://youtu.be/txk-VO1hzBY?t=2079. I can get rid of the matplotlib dependency. I guess I'll just make a colormap manually. Perhaps we could add colormap as an optional argument to set_image()? We could create our own library of colormaps if we need to. I'll try time them both tonight and let you know. If everything is working right with Taichi, I think it should easily beat my CUDA version. |
Many thanks! If possible, could you also try timing against |
I tried OpenGL, yet it seems to get stuck at compilation... |
Right - I guess in graphics explosion effects are somewhat underexploited.
Awesome!
If that's > 5 lines of code let's simply do something like try:
import matplotlib
except:
print('Please pip install matplotlib')
exit(-1) Installing
Thanks! I think this grid-based solver can be a great benchmark for |
It's not stuck, it's just taking a very long time for NV GL to compile, once shaders in eular.py is compiled, the next time you launch eular.py won't take time since NV will cache it's compile result (by hashing glsl code!). (yes, even if you exit python, NV GL keep your shader caches!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much! This looks incredibly beautiful...
Co-authored-by: Kenneth Lozes <klozes@system76-pc.localdomain>
Here's a compressible Euler equation solver! Its just a simple finite volume scheme with a HLLC Riemann solver. It already creates some nice images, but needs to be polished up a bit. I'll work on that tomorrow night :)
Related issue = #776
[Click here for the format server]