AndreWeiner / ml-cfd-lecture

Lecture material for machine learning applied to computational fluid mechanics
GNU General Public License v3.0
330 stars 116 forks source link

Regarding OpenFOAM version #12

Closed RahulSundar closed 2 years ago

RahulSundar commented 2 years ago

Dear Andre,

Although I see a requirements.txt for the python packages, I would like to know which version of OpenFOAM / Foam-Extend would be compatible. Adding a section in the README.md file about the installation/ usage instructions would be really beneficial.

Thanks and regards, Rahul Sundar

AndreWeiner commented 2 years ago

Dear @RahulSundar, thanks for this remark. There is a dedicated exercise session for setting up the system (link). All exercises are set up to use Singularity containers to avoid compatibility issues between different OS types and software versions. The current OpenFOAM container comes with OpenFOAM-v2106. Non-ESI versions will most likely not work. If you want to set up OF and PyTorch without containers, have a look at this article. Best, Andre

RahulSundar commented 2 years ago

Dear @AndreWeiner Thanks for pointing me to the resource. Glad to know that you are using singularity containers. Saves the hassle of installing and maintaining different versions. However, is it conducive for custom solver development in case we wish to do that? I will go through the article shared by you. Thanks

AndreWeiner commented 2 years ago

You can do with a local installation, you can do with the container, too, e.g., developing solvers, BCs, etc. Have a look at this exercise. Most likely, the exercise walks you conceptually through all the steps necessary for your development (generating data, creating models, compiling OF code, using the models). Best, Andre

AndreWeiner commented 2 years ago

Hi @RahulSundar, since there has been no recent activity, I'll close this issue. Feel free to re-open it at some point in the future if needed. Best, Andre