Hacker News new | past | comments | ask | show | jobs | submit login

There are many different ways to do what you'd like. The easiest starting point would probably be this tutorial: https://github.com/barbagroup/CFDPython

But that won't handle turbulence. The real "turbulence problem" is that computing actual turbulent flows requires enormous computational resources. So instead of solving the Navier-Stokes equations, related equations with lower computational cost are solved. Because of how these equations are developed, they require modeling of "unclosed" terms, and this is a likely source of inaccuracy.

If you want something relatively simple, you could take the RANS approach and use the Spalart-Allmaras model:

https://www.cfd-online.com/Wiki/Introduction_to_turbulence/R...

https://www.cfd-online.com/Wiki/Spalart-Allmaras_model

How to implement the changes to the final part of Lorena Barba's tutorial should be fairly obvious by the time you get there.




The CFD Online site is a great resource that I had missed before. Thank you for the links.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: