Datasets:
Modalities:
3D
Size:
10K<n<100K
Upload folder using huggingface_hub
Browse files- data/.gitattributes +62 -0
- data/test/1/coeff.json +1 -0
- data/test/1/input.json +1 -0
- data/test/1/input_mesh.obj +0 -0
- data/test/1/openfoam_mesh.obj +0 -0
- data/test/1/pressure_field_mesh.vtk +3 -0
- data/test/1/streamlines_mesh.ply +3 -0
- data/test/2/coeff.json +1 -0
- data/test/2/input.json +1 -0
- data/test/2/input_mesh.obj +0 -0
- data/test/2/openfoam_mesh.obj +0 -0
- data/test/2/pressure_field_mesh.vtk +3 -0
- data/test/2/streamlines_mesh.ply +3 -0
- data/train/1/coeff.json +1 -0
- data/train/1/input.json +1 -0
- data/train/1/input_mesh.obj +0 -0
- data/train/1/openfoam_mesh.obj +0 -0
- data/train/1/pressure_field_mesh.vtk +3 -0
- data/train/1/streamlines_mesh.ply +3 -0
- data/train/2/coeff.json +1 -0
- data/train/2/input.json +1 -0
- data/train/2/input_mesh.obj +0 -0
- data/train/2/openfoam_mesh.obj +0 -0
- data/train/2/pressure_field_mesh.vtk +3 -0
- data/train/2/streamlines_mesh.ply +3 -0
- data/validation/1/coeff.json +1 -0
- data/validation/1/input.json +1 -0
- data/validation/1/input_mesh.obj +0 -0
- data/validation/1/openfoam_mesh.obj +0 -0
- data/validation/1/pressure_field_mesh.vtk +3 -0
- data/validation/1/streamlines_mesh.ply +3 -0
- data/validation/2/coeff.json +1 -0
- data/validation/2/input.json +1 -0
- data/validation/2/input_mesh.obj +0 -0
- data/validation/2/openfoam_mesh.obj +0 -0
- data/validation/2/pressure_field_mesh.vtk +3 -0
- data/validation/2/streamlines_mesh.ply +3 -0
- windtunnel.py +58 -0
data/.gitattributes
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
37 |
+
# Audio files - uncompressed
|
38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
41 |
+
# Audio files - compressed
|
42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
47 |
+
# Image files - uncompressed
|
48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
52 |
+
# Image files - compressed
|
53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
# Video files - compressed
|
57 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
59 |
+
1/pressure_field_mesh.vtk filter=lfs diff=lfs merge=lfs -text
|
60 |
+
1/streamlines_mesh.ply filter=lfs diff=lfs merge=lfs -text
|
61 |
+
2/pressure_field_mesh.vtk filter=lfs diff=lfs merge=lfs -text
|
62 |
+
2/streamlines_mesh.ply filter=lfs diff=lfs merge=lfs -text
|
data/test/1/coeff.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"Moment": 0.4432577, "Drag": 0.9018756, "Lift": 0.4542572, "Front Lift": 0.6703862, "Rear Lift": -0.2161291}
|
data/test/1/input.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"task_id": "kcnn2x2kinv6kvq9s2kbhs16i", "object_file": "image_1.obj", "wind_speed": 44, "rotate_angle": 304, "num_iterations": 300, "resolution": 5, "status_code": 202, "submission_time": "2024-06-20 15:53:41", "current_time": "2024-06-20 15:53:46"}
|
data/test/1/input_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/test/1/openfoam_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/test/1/pressure_field_mesh.vtk
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e09fe1381b742b35a271e0b8e0739b5ccbee2c65363fe1adea3623e28149054c
|
3 |
+
size 1952403
|
data/test/1/streamlines_mesh.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03daef8c462ca21682d3dacc92c504cc0fd9047a478f7e0a6c288b197661e047
|
3 |
+
size 9397769
|
data/test/2/coeff.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"Moment": 0.4432577, "Drag": 0.9018756, "Lift": 0.4542572, "Front Lift": 0.6703862, "Rear Lift": -0.2161291}
|
data/test/2/input.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"task_id": "kcnn2x2kinv6kvq9s2kbhs16i", "object_file": "image_1.obj", "wind_speed": 44, "rotate_angle": 304, "num_iterations": 300, "resolution": 5, "status_code": 202, "submission_time": "2024-06-20 15:53:41", "current_time": "2024-06-20 15:53:46"}
|
data/test/2/input_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/test/2/openfoam_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/test/2/pressure_field_mesh.vtk
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e09fe1381b742b35a271e0b8e0739b5ccbee2c65363fe1adea3623e28149054c
|
3 |
+
size 1952403
|
data/test/2/streamlines_mesh.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03daef8c462ca21682d3dacc92c504cc0fd9047a478f7e0a6c288b197661e047
|
3 |
+
size 9397769
|
data/train/1/coeff.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"Moment": 0.4432577, "Drag": 0.9018756, "Lift": 0.4542572, "Front Lift": 0.6703862, "Rear Lift": -0.2161291}
|
data/train/1/input.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"task_id": "kcnn2x2kinv6kvq9s2kbhs16i", "object_file": "image_1.obj", "wind_speed": 44, "rotate_angle": 304, "num_iterations": 300, "resolution": 5, "status_code": 202, "submission_time": "2024-06-20 15:53:41", "current_time": "2024-06-20 15:53:46"}
|
data/train/1/input_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/train/1/openfoam_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/train/1/pressure_field_mesh.vtk
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e09fe1381b742b35a271e0b8e0739b5ccbee2c65363fe1adea3623e28149054c
|
3 |
+
size 1952403
|
data/train/1/streamlines_mesh.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03daef8c462ca21682d3dacc92c504cc0fd9047a478f7e0a6c288b197661e047
|
3 |
+
size 9397769
|
data/train/2/coeff.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"Moment": 0.4432577, "Drag": 0.9018756, "Lift": 0.4542572, "Front Lift": 0.6703862, "Rear Lift": -0.2161291}
|
data/train/2/input.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"task_id": "kcnn2x2kinv6kvq9s2kbhs16i", "object_file": "image_1.obj", "wind_speed": 44, "rotate_angle": 304, "num_iterations": 300, "resolution": 5, "status_code": 202, "submission_time": "2024-06-20 15:53:41", "current_time": "2024-06-20 15:53:46"}
|
data/train/2/input_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/train/2/openfoam_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/train/2/pressure_field_mesh.vtk
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e09fe1381b742b35a271e0b8e0739b5ccbee2c65363fe1adea3623e28149054c
|
3 |
+
size 1952403
|
data/train/2/streamlines_mesh.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03daef8c462ca21682d3dacc92c504cc0fd9047a478f7e0a6c288b197661e047
|
3 |
+
size 9397769
|
data/validation/1/coeff.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"Moment": 0.4432577, "Drag": 0.9018756, "Lift": 0.4542572, "Front Lift": 0.6703862, "Rear Lift": -0.2161291}
|
data/validation/1/input.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"task_id": "kcnn2x2kinv6kvq9s2kbhs16i", "object_file": "image_1.obj", "wind_speed": 44, "rotate_angle": 304, "num_iterations": 300, "resolution": 5, "status_code": 202, "submission_time": "2024-06-20 15:53:41", "current_time": "2024-06-20 15:53:46"}
|
data/validation/1/input_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/validation/1/openfoam_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/validation/1/pressure_field_mesh.vtk
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e09fe1381b742b35a271e0b8e0739b5ccbee2c65363fe1adea3623e28149054c
|
3 |
+
size 1952403
|
data/validation/1/streamlines_mesh.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03daef8c462ca21682d3dacc92c504cc0fd9047a478f7e0a6c288b197661e047
|
3 |
+
size 9397769
|
data/validation/2/coeff.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"Moment": 0.4432577, "Drag": 0.9018756, "Lift": 0.4542572, "Front Lift": 0.6703862, "Rear Lift": -0.2161291}
|
data/validation/2/input.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"task_id": "kcnn2x2kinv6kvq9s2kbhs16i", "object_file": "image_1.obj", "wind_speed": 44, "rotate_angle": 304, "num_iterations": 300, "resolution": 5, "status_code": 202, "submission_time": "2024-06-20 15:53:41", "current_time": "2024-06-20 15:53:46"}
|
data/validation/2/input_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/validation/2/openfoam_mesh.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/validation/2/pressure_field_mesh.vtk
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e09fe1381b742b35a271e0b8e0739b5ccbee2c65363fe1adea3623e28149054c
|
3 |
+
size 1952403
|
data/validation/2/streamlines_mesh.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03daef8c462ca21682d3dacc92c504cc0fd9047a478f7e0a6c288b197661e047
|
3 |
+
size 9397769
|
windtunnel.py
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import os
|
3 |
+
import datasets
|
4 |
+
|
5 |
+
|
6 |
+
class WindtunnelDataset(datasets.GeneratorBasedBuilder):
|
7 |
+
"""Dataset for loading simulation data with JSON and mesh files"""
|
8 |
+
|
9 |
+
def _info(self):
|
10 |
+
return datasets.DatasetInfo(
|
11 |
+
features=datasets.Features(
|
12 |
+
{
|
13 |
+
"coeff": datasets.Value("binary"), # JSON file as a dictionary
|
14 |
+
"input": datasets.Value("binary"), # JSON file as a dictionary
|
15 |
+
"input_mesh": datasets.Value("binary"), # OBJ mesh file as binary
|
16 |
+
"openfoam_mesh": datasets.Value(
|
17 |
+
"binary"
|
18 |
+
), # OBJ mesh file as binary
|
19 |
+
"pressure_field_mesh": datasets.Value(
|
20 |
+
"binary"
|
21 |
+
), # VTK file as binary
|
22 |
+
"streamlines_mesh": datasets.Value("binary"), # PLY file as binary
|
23 |
+
}
|
24 |
+
),
|
25 |
+
homepage="https://inductiva.ai",
|
26 |
+
)
|
27 |
+
|
28 |
+
def _split_generators(self, dl_manager):
|
29 |
+
"""Define the splits for the dataset."""
|
30 |
+
train_dir = "train"
|
31 |
+
val_dir = "validation"
|
32 |
+
test_dir = "test"
|
33 |
+
return [
|
34 |
+
datasets.SplitGenerator(
|
35 |
+
name=datasets.Split.TRAIN, gen_kwargs={"path": train_dir}
|
36 |
+
),
|
37 |
+
datasets.SplitGenerator(
|
38 |
+
name=datasets.Split.VALIDATION,
|
39 |
+
gen_kwargs={"path": val_dir},
|
40 |
+
),
|
41 |
+
datasets.SplitGenerator(
|
42 |
+
name=datasets.Split.TEST,
|
43 |
+
gen_kwargs={"path": test_dir},
|
44 |
+
),
|
45 |
+
]
|
46 |
+
|
47 |
+
def _generate_examples(self, path):
|
48 |
+
"""Generate examples for each split."""
|
49 |
+
id = 0
|
50 |
+
for root, dirs, files in os.walk(path):
|
51 |
+
for file in files:
|
52 |
+
yield (
|
53 |
+
id,
|
54 |
+
{
|
55 |
+
"label": id,
|
56 |
+
},
|
57 |
+
)
|
58 |
+
id += 1
|