在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):AndreWeiner/machine-learning-applied-to-cfd开源软件地址(OpenSource Url):https://github.com/AndreWeiner/machine-learning-applied-to-cfd开源编程语言(OpenSource Language):Jupyter Notebook 98.5%开源软件介绍(OpenSource Introduction):machine-learning-applied-to-cfdOutline
IntroductionThis repository contains examples of how to use machine learning (ML) algorithms in the field of computational fluid dynamics (CFD). ML algorithms may be applied in different steps during a CFD-based study:
Another possible categorization is to distinguish the type of machine learning algorithm, e.g.
DependenciesDependencies for Jupyter notebooksCurrently, there are two supported ways to execute the Jupyter notebooks contained in the notebooks folder:
Both approaches allow to run the notebooks interactively and to save results. Running notebooks locallyThe notebooks use the following Python packages, which can all be installed via pip or conda:
To install all packages using pip, run
or using the conda installer, run
For PyTorch, it is best to use the graphical selection tool. Example install commands might be
for systems with Cuda support, or
for systems without GPU acceleration. Running notebooks with ColaboratoryRunning notebooks in colab requires to have a Google account (the same account as for Gmail, Google Drive, etc.). Note, that it is also possible to display the notebooks without having an account (but without interactivity). After logging in to colab, notebooks can be directly imported from Github (from this repository):
Without the last step, you will still be able to run and modify most of the cells in the notebooks, but you will not be able to run cells which store intermediate results, e.g., model weights. The import windows should look similar to the following: Dependencies for OpenFOAM cases and appsRunning and compiling OpenFOAM+PyTorch applications is enabled via a special Docker image. The Dockerfile to build the image is also available on Github. First, install the latest version of Docker (Ubuntu, CentOS). The image is hosted on Dockerhub and can be downloaded by running
Currently, there is only a version with cpu support. To create and run a new container, go to the OpenFOAM folder and execute the runContainer.sh script:
To compile or run applications, execute the scripts provided in the respective folders from within the container. ExamplesSupervised learning
Unsupervised learning
Reinforcement learningApplication to CFDHow to referenceIf you found useful examples in this repository, you may consider referring to the following article:
Useful links
Other repositories with related content
Contributors |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论