---
pretty_name: Wind Tunnel 20K Dataset
size_categories:
- 10K
### Dataset Files Each simulation in the Wind Tunnel Dataset is accompanied by several key files that provide both input and output data. Here’s a breakdown of the files included in each simulation: - **input_mesh.obj**: OBJ file with the input mesh. - **openfoam_mesh.obj**: OBJ file with the OpenFOAM mesh. - **pressure_field_mesh.vtk**: VTK file with the pressure field data. - **streamlines_mesh.ply**: PLY file with the streamlines. - **metadata.json**: JSON with metadata about the input parameters and about some output results such as the force coefficients (obtained via simulation) and the path of the output files. ### Sample from the dataset: | **Input Mesh** | **OpenFOAM Mesh** | |-------------------------------|------------------------------| | ![Input Mesh](https://huggingface.co/datasets/inductiva/windtunnel/resolve/main/assets/input_mesh.png) | ![OpenFOAM Mesh](https://huggingface.co/datasets/inductiva/windtunnel/resolve/main/assets/openfoam_mesh.png) | | **Pressure Field Mesh** | **Streamlines Mesh** | | ![Pressure Field Mesh](https://huggingface.co/datasets/inductiva/windtunnel/resolve/main/assets/pressure_field_mesh.png) | ![Streamlines Mesh](https://huggingface.co/datasets/inductiva/windtunnel/resolve/main/assets/streamlines_mesh.png) | - **Metadata** ```json { "id": "1w63au1gpxgyn9kun5q9r7eqa", "object_file": "object_24.obj", "wind_speed": 35, "rotate_angle": 332, "num_iterations": 300, "resolution": 5, "drag_coefficient": 0.8322182, "moment_coefficient": 0.3425206, "lift_coefficient": 0.1824983, "front_lift_coefficient": 0.4337698, "rear_lift_coefficient": -0.2512715, "input_mesh_path": "data/train/1w63au1gpxgyn9kun5q9r7eqa/input_mesh.obj", "openfoam_mesh_path": "data/train/1w63au1gpxgyn9kun5q9r7eqa/openfoam_mesh.obj", "pressure_field_mesh_path": "data/train/1w63au1gpxgyn9kun5q9r7eqa/pressure_field_mesh.vtk", "streamlines_mesh_path": "data/train/1w63au1gpxgyn9kun5q9r7eqa/streamlines_mesh.ply" } ``` ## Downloading the Dataset: To download the dataset you have to install the [Datasets package](https://huggingface.co/docs/datasets/en/index) by HuggingFace: ```python pip install datasets ``` ### 1. Using snapshot_download() ```python import huggingface_hub dataset_name = "inductiva/windtunnel" # Download the entire dataset huggingface_hub.snapshot_download(repo_id=dataset_name, repo_type="dataset") # Download to a specific local directory huggingface_hub.snapshot_download(repo_id=dataset_name, repo_type="dataset", local_dir="local_folder") # Download only the simulation metadata across all simulations huggingface_hub.snapshot_download( repo_id=dataset_name, repo_type="dataset", local_dir="local_folder", allow_patterns=["*/*/*/simulation_metadata.json"] ) ``` ### 2. Using load_dataset() ```python import datasets # Load the dataset (streaming is supported) dataset = datasets.load_dataset("inductiva/windtunnel", streaming=False) # Display dataset information print(dataset) # Access a sample from the training set sample = dataset["train"][0] print("Sample from training set:", sample) ``` ## Generating the meshes Existing object datasets have many limitations: they are either small in size, closed source, or have low quality meshes. Hence, we decided to generate our own dataset using the [InstantMesh](https://github.com/TencentARC/InstantMesh) model, which is open-source (Apache-2.0) and is currently state-of-the-art in image-to-mesh generation. By leveraging it we were able to generate a large number of good quality open-source automobile meshes. The automobile-like meshes were generated by running the image-to-mesh model [InstantMesh](https://github.com/TencentARC/InstantMesh) on 1k images from the publicly available (Apache-2.0) [Stanford Cars Dataset](https://www.kaggle.com/datasets/jessicali9530/stanford-cars-dataset) consisting of 16,185 images of automobiles. Naturally, running the image-to-mesh model leads to meshes that may have certain defects, such as irregular surfaces, asymmetry issues and disconnected components. Therefore, after running the image-to-mesh model, we run a custom post-processing step where we try to improve the meshes quality. We used PCA to align the mesh with the main axis and we removed disconnected components. The resulting set of meshes still have little defects, such as presence of "spikes" or "cavities" in supposedly flat areas and asymmetric shapes, among others. We consider these little defects as valuable features of the dataset not as issues, since from the point of view of the learning problem, they bring challenges to the model that we believe will contribute to obtaining more robust and generalizable models. If you detect any clearly problematic mesh, please let us know so we can correct that issue for the next version of the Windtunnel-20k dataset. Note: the code used to generate the meshes and postprocess them is available on github: [https://github.com/inductiva/datasets-generation](https://github.com/inductiva/datasets-generation) ## What's next? If you have any issues using this dataset, feel free to reach out to us at [support@intuctiva.ai](support@intuctiva.ai) To learn more about how we created this dataset—or how you can generate synthetic datasets for Physics-AI models—visit [Inductiva.AI](inductiva.ai) or check out our blog post on [transforming complex simulation workflows into easy-to-use Python classes](https://inductiva.ai/blog/article/transform-complex-simulations).