Skip to main content

DRLinFluids

License

DRLinFluids is a flexible and scalable package to utilize Deep Reinforcement Learning in the field of Computational Fluid Dynamics (CFD).

Note: This package is still in development. The API is not stable yet. We invite all users to discuss further and ask for help directly on GitHub, through the issue system, and we commit to helping develop a community around the DRLinFluids framework by providing in-depth documentation and help to new users.

The package is developed under Ubuntu 20.04 LTS and OpenFOAM 8.

Table of contents

Introduction

Reinforcement learning is a field of machine learning. It studies by interacting with the environment. It emphasizes how to make corresponding behavior in a specific environment in order to maximize the expected benefits. However, for reinforcement learning, it is necessary to define a specific interaction environment for specific problems, which is rather cumbersome and takes up a lot of time of researchers in related fields, and delays the research speed of researchers in reinforcement learning and fluid cross field. For this purpose, a reinforcement learning platform based on open source computational fluid dynamics software OpenFOAM is proposed, which is DRLinFluids. The platform has the characteristics of automation, quickness and simplicity, and can quickly call reinforcement learning for different research problems.

Different from TensorFlow, PyTorch and other general machine learning frameworks, this platform takes OpenFOAM as an interactive environment, and further develops a general CFD reinforcement learning package.

OpenFOAM (for "Open-source Field Operation And Manipulation") is a C++ toolbox for the development of customized numerical solvers, and pre-/post-processing utilities for the solution of continuum mechanics problems, most prominently including computational fluid dynamics (CFD). In fact, due to the versatility of OpenFOAM, in addition to computational fluid dynamics problems, it can also deal with any ODE or PDE problems. Users can create their own solver for practical application by setting the control equations and boundary conditions of specific problems. This also gives DRLinFluids a wider usage.

Installation

From PyPI

pip install drlinfluids

From Source code

git clone https://github.com/venturi123/DRLinFluids.git
pip3 install -e drlinfluids

Examples

Please see /examples directory for quick start.

Besides, we also build an additional repository DRLinFluids-examples for quick understanding and testing, and the user-friendly DRLinFluids package will be uploaded on this page in the near future.

How to cite

Please cite the framework as follows if you use it in your publications:

Qiulei Wang (王秋垒), Lei Yan (严雷), Gang Hu (胡钢), Chao Li (李朝), Yiqing Xiao (肖仪清), Hao Xiong (熊昊), Jean Rabault, and Bernd R. Noack , "DRLinFluids: An open-source Python platform of coupling deep reinforcement learning and OpenFOAM", Physics of Fluids 34, 081801 (2022) https://doi.org/10.1063/5.0103113

For more formats, please see https://aip.scitation.org/action/showCitFormats?type=show&doi=10.1063%2F5.0103113.

Core development team and contributors

DRLinFluids is currently developed and maintained by

AIWE Lab, HITSZ

Jean Rabault

Bernd Noack

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

We invite all users to further discuss and ask for help directly on Github, through the issue system, and we commit to helping develop a community around the DRLinFluids framework by providing in-depth documentation and help to new users.

License

DRLinFluids is licensed under the terms of the Apache License 2.0 license.

Metadata

Release files for drlinfluids 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drlinfluids 0.1.0
File Size Uploaded
drlinfluids-0.1.0.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drlinfluids 0.1.0
File Interpreter ABI Platform
drlinfluids-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.9 kB

Release files / drlinfluids-0.1.0.tar.gz

Download URL drlinfluids-0.1.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
34112894ef5421d79ea5906c122da976e75dbb44329560d544799e99da342d12
BLAKE2b-256 checksum
How to use checksums
a8c0a2cf4616900623a97eed4f1f6f9b4b70db3eccf7d66fe8e19c51e209370c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-46-generic

Release files / drlinfluids-0.1.0-py3-none-any.whl

Download URL drlinfluids-0.1.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe2e5929991f377a9fab18a2ef119f47615a714ff76c1f1b3a4ba2345cdb0f07
BLAKE2b-256 checksum
How to use checksums
bc7a9a4820f76ff49f691ea873e44d79de2101dc5beeb7e1ff746899e5df5bec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-46-generic

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page