--- license: cc-by-nc-4.0 language: - en tags: - multiphase flows size_categories: - 10K 3DbubbleGroup1_npz.tar.gz cat 3DbubbleGroup2_npz_* > 3DbubbleGroup2_npz.tar.gz cat 3DbubbleGroup3_npz_* > 3DbubbleGroup3_npz.tar.gz cat 3DbubbleGroup4_npz_* > 3DbubbleGroup4_npz.tar.gz cat 3DbubbleGroup5_npz_* > 3DbubbleGroup5_npz.tar.gz cat 3DdropGroup1_npz_* > 3DdropGroup1_npz.tar.gz cat 3DdropGroup2_npz_* > 3DdropGroup2_npz.tar.gz cat 3DdropGroup3_npz_* > 3DdropGroup3_npz.tar.gz cat 3DdropGroup4_npz_* > 3DdropGroup4_npz.tar.gz cat 3DdropGroup5_npz_* > 3DdropGroup5_npz.tar.gz Step 2 : Create the *npz.tar.gz files tar -xzvf 3DdropGroup1_npz.tar.gz tar -xzvf 3DdropGroup2_npz.tar.gz tar -xzvf 3DdropGroup3_npz.tar.gz tar -xzvf 3DdropGroup4_npz.tar.gz tar -xzvf 3DdropGroup5_npz.tar.gz tar -xzvf 3DbubbleGroup1_npz.tar.gz tar -xzvf 3DbubbleGroup2_npz.tar.gz tar -xzvf 3DbubbleGroup3_npz.tar.gz tar -xzvf 3DbubbleGroup4_npz.tar.gz tar -xzvf 3DbubbleGroup5_npz.tar.gz ``` Refer to the directory structure section below to understand how these files have been staged inside huggingface. **Data Preparation** Please refer to our [github](https://github.com/baskargroup/mpfbench-tools/tree/master/DataPrep) page that provides codes for doing data preparation for SciML models: ``` https://github.com/baskargroup/mpfbench-tools/tree/master/DataPrep ``` **License** ``` CC-BY-NC-4.0 ``` **How to download files from Huggingface** To run the example code, you need to install the following package: ```bash pip install huggingface_hub ``` The following script demonstrates how to download a directory from the Hugging Face Hub: ```python from huggingface_hub import HfApi, hf_hub_download import os import shutil REPO_ID = "BGLab/mpf-bench" DIRECTORY = "2Dbubble/bubbleGroup1_npz" # Initialize the Hugging Face API api = HfApi() # List files in the directory files_list = api.list_repo_files(repo_id=REPO_ID, repo_type="dataset") # Filter the files in the specified directory files_to_download = [f for f in files_list if f.startswith(DIRECTORY)] # Create local directory if it doesn't exist os.makedirs(DIRECTORY, exist_ok=True) # Download each file for file in files_to_download: file_path = hf_hub_download(repo_id=REPO_ID, filename=file, repo_type="dataset") # Copy the file to the local directory using shutil.copy2 shutil.copy2(file_path, os.path.join(DIRECTORY, os.path.basename(file_path))) print("Files downloaded successfully.") ``` **Directory Structure** ``` main/ ├── 2Dbubble/ │ ├── bubbleGroup1_npz/ │ │ ├── bubbleGroup1_npz_1.tar.gz │ │ ├── bubbleGroup1_npz_2.tar.gz │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── bubbleGroup1_npz_10.tar.gz │ ├── bubbleGroup2_npz/ │ │ ├── bubbleGroup2_npz_1.tar.gz │ │ ├── bubbleGroup2_npz_2.tar.gz │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── bubbleGroup2_npz_10.tar.gz . . . │ ├── bubbleGroup5_npz/ │ │ ├── bubbleGroup5_npz_1.tar.gz │ │ ├── bubbleGroup5_npz_2.tar.gz │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── bubbleGroup5_npz_10.tar.gz │ └── mpf_paper_dataset/ │ ├── d1X_test_pad_flat.npz │ ├── d1X_train_pad_flat.npz │ ├── d1Y_test_pad_flat.npz │ ├── d1Y_train_pad_flat.npz │ ├── d2X_test_pad_flat.npz │ ├── d2X_train_pad_flat.npz │ ├── d2Y_test_pad_flat.npz │ ├── d2Y_train_pad_flat.npz │ ├── ... ├── 2Ddrop/ │ ├── dropGroup1_npz/ │ │ ├── dropGroup1_npz_1.tar.gz │ │ ├── dropGroup1_npz_2.tar.gz │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── dropGroup1_npz_10.tar.gz │ ├── dropGroup2_npz/ │ │ ├── dropGroup2_npz_1.tar.gz │ │ ├── dropGroup2_npz_2.tar.gz │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── dropGroup2_npz_10.tar.gz . . . │ ├── dropGroup5_npz/ │ │ ├── dropGroup5_npz_1.tar.gz │ │ ├── dropGroup5_npz_2.tar.gz │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── dropGroup5_npz_10.tar.gz ├── 3Dbubble/ │ ├── split/ │ │ ├── 3DbubbleGroup1_npz_aa │ │ ├── 3DbubbleGroup1_npz_ab │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── 3DbubbleGroup1_npz_af │ │ ├── 3DbubbleGroup2_npz_aa │ │ ├── 3DbubbleGroup2_npz_ab │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── 3DbubbleGroup2_npz_af . . . │ │ ├── 3DbubbleGroup5_npz_aa │ │ ├── 3DbubbleGroup5_npz_ab │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── 3DbubbleGroup5_npz_af ├── 3Ddrop/ │ ├── split/ │ │ ├── 3DdropGroup1_npz_aa │ │ ├── 3DdropGroup1_npz_ab │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── 3DdropGroup1_npz_af │ │ ├── 3DdropGroup2_npz_aa │ │ ├── 3DdropGroup2_npz_ab │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── 3DdropGroup2_npz_af . . . │ │ ├── 3DdropGroup5_npz_aa │ │ ├── 3DdropGroup5_npz_ab │ │ ├── . │ │ ├── . │ │ ├── . │ │ └── 3DdropGroup5_npz_af ├── Sample Dataset/ │ ├── 2D/ │ │ ├── bubble/ │ │ │ ├── Sample1/ │ │ │ │ |── X_bubble_padded_dataset_1.npz │ │ │ │ |── Y_bubble_padded_dataset_1.npz │ │ │ ├── Sample2/ │ │ │ │ |── X_bubble_padded_dataset_2.npz │ │ │ │ |── Y_bubble_padded_dataset_2.npz . . . │ │ │ ├── Sample10/ │ │ │ │ |── X_bubble_padded_dataset_10.npz │ │ │ │ |── Y_bubble_padded_dataset_10.npz │ │ ├── drop/ │ │ │ ├── Sample1/ │ │ │ │ |── X_drop_padded_dataset_1.npz │ │ │ │ |── Y_drop_padded_dataset_1.npz │ │ │ ├── Sample2/ │ │ │ │ |── X_drop_padded_dataset_2.npz │ │ │ │ |── Y_drop_padded_dataset_2.npz . . . │ │ │ ├── Sample10/ │ │ │ │ |── X_drop_padded_dataset_10.npz │ │ │ │ |── Y_drop_padded_dataset_10.npz │ ├── 3D/ │ │ ├── bubble/ │ │ │ ├── Sample1/ │ │ │ │ |── X_bubble_padded_dataset_3d_1.npz │ │ │ │ |── Y_bubble_padded_dataset_3d_1.npz │ │ │ ├── Sample2/ │ │ │ │ |── X_bubble_padded_dataset_3d_2.npz │ │ │ │ |── Y_bubble_padded_dataset_3d_2.npz . . . │ │ │ ├── Sample10/ │ │ │ │ |── X_bubble_padded_dataset_3d_10.npz │ │ │ │ |── Y_bubble_padded_dataset_3d_10.npz │ │ ├── drop/ │ │ │ ├── Sample1/ │ │ │ │ |── X_drop_padded_dataset_3d_1.npz │ │ │ │ |── Y_drop_padded_dataset_3d_1.npz │ │ │ ├── Sample2/ │ │ │ │ |── X_drop_padded_dataset_3d_2.npz │ │ │ │ |── Y_drop_padded_dataset_3d_2.npz . . . │ │ │ ├── Sample10/ │ │ │ │ |── X_drop_padded_dataset_3d_10.npz │ │ │ │ |── Y_drop_padded_dataset_3d_10.npz ├── README.md ├── .gitattributes └── info.txt ``` **Citation** If you find this dataset useful in your research, please consider citing our paper as follows: ``` @article{shadkhah2024MPFBench, title = "FlowBench: A Large Scale Benchmark for Flow Simulation over Complex Geometries", author = "Shadkhah, Mehdi and Tali, Ronak and Rabeh, Ali and Yang, Cheng-Hau and Upadhyaya, Abhisek and Krishnamurthy, Adarsh and Hegde, Chinmay and Balu, Aditya and Ganapathysubramanian, Baskar" year = "2024" } ```