A package to facilitate the manipulation of the AirfRANS dataset simulations.
Project description
AirfRANS: High Fidelity Computational Fluid Dynamics Dataset for Approximating Reynolds-Averaged Navier–Stokes Solutions
The AirfRANS dataset makes available numerical resolutions of the incompressible Reynolds-Averaged Navier–Stokes (RANS) equations over the NACA 4 and 5 digits series of airfoils and in a subsonic flight regime setup. Readthedocs documentation is available here.
Features
- Access to 1000 simulations.
- Reynolds number between 2 and 6 million.
- Angle of attack between -5° and 15°.
- Airfoil drawn in the NACA 4 and 5 digits series.
- Four machine learning tasks representing different challenges.
Installation
Install with
pip install airfrans
Usage
Downloading the dataset
From python:
import airfrans as af
af.dataset.download(root = PATH_TO_SAVING_DIRECTORY, unzip = True)
You can also directly download a ready-to-use version of the dataset in the PyTorch Geometric library Finally, you can directly download the dataset in the raw OpenFOAM version here, or in the more friendly pre-processed version here.
Loading the dataset
From python:
import airfrans as af
dataset, dataname = af.dataset.load(root = PATH_TO_DATASET, task = TASK, train = True)
The tasks are the one presented in the associated paper. You can choose between 'full'
, 'scarce'
, 'reynolds
' and 'aoa'
.
The dataset loaded in this case is the same as the one you can directly access via the PyTorch Geometric library. If you want more flexibility about the sampling of each simulation for the inputs or targets, please feel free to build a custom loader with the help of the 'Simulation'
class presented in the following. We highly recommend to handle those data with a Gemetric Deep Learning library such as PyTorch Geometric or Deep Graph Library.
Simulation class
The 'Simulation'
class is an object to facilitate the manipulation of AirfRANS simulations. Given the root folder of where the directories of the simulations have been saved and the name of a simulation you can easily manipulate it.
import airfrans as af
name = 'airFoil2D_SST_57.872_7.314_5.454_3.799_13.179'
simulation = af.Simulation(root = PATH_TO_DATASET, name = name)
See the documentation for more details about this object.
License
This project is licensed under the ODbL-1.0 License.
Reference
The original paper accepted at the 36th Conference on Neural Information Processing Systems (NeurIPS 2022) Track on Datasets and Benchmarks can be found here and the preprint here. Disclaimer: An important update correcting an inconsistency in the Machine Learning experiments proposed in the main part of the NeurIPS version of the paper has been done. Please refer to the ArXiv version for the up to date version.
Please cite this paper if you use this dataset in your own work.
@inproceedings{
bonnet2022airfrans,
title={Airf{RANS}: High Fidelity Computational Fluid Dynamics Dataset for Approximating Reynolds-Averaged Navier{\textendash}Stokes Solutions},
author={Florent Bonnet and Jocelyn Ahmed Mazari and Paola Cinnella and Patrick Gallinari},
booktitle={Thirty-sixth Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
year={2022},
url={https://arxiv.org/abs/2212.07564}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file airfrans-0.1.5.1.tar.gz
.
File metadata
- Download URL: airfrans-0.1.5.1.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c13a31719276a57d186e88cdae906221b2badd58e48e6f94ed7436eb854dc52 |
|
MD5 | cb2b6e6688e6d783199b29789dc4e3e2 |
|
BLAKE2b-256 | 5e9ff49bfb850f7509ff0b07664e74b72c5d63ca0e04cd4ddaedb01e3ccf103f |
File details
Details for the file airfrans-0.1.5.1-py3-none-any.whl
.
File metadata
- Download URL: airfrans-0.1.5.1-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 298bc0aaec4617296a6f087df85174e73c1b0910aad2040d4f3bf8fc7c313c14 |
|
MD5 | e6545602775053aa9c08c826c3cbc672 |
|
BLAKE2b-256 | 58ec306c91a4c45f55129300909b8056cdca94b9eff965064f16b74f8c69e006 |