fabiencasenave commited on
Commit
3782477
·
verified ·
1 Parent(s): 9eb5bc6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +114 -0
README.md CHANGED
@@ -1,4 +1,11 @@
1
  ---
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
  - name: Base_1_2/Zone/GridCoordinates/CoordinateX
@@ -58,3 +65,110 @@ configs:
58
  - split: test
59
  path: data/test-*
60
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - graph-ml
5
+ pretty_name: 2D internal aero CFD RANS dataset, under geometrical variations
6
+ tags:
7
+ - physics learning
8
+ - geometry learning
9
  dataset_info:
10
  features:
11
  - name: Base_1_2/Zone/GridCoordinates/CoordinateX
 
65
  - split: test
66
  path: data/test-*
67
  ---
68
+ <p align='center'>
69
+ <img src='https://i.ibb.co/hJqv4hCt/Logo-VKI-2.png' alt='https://i.ibb.co/hJqv4hCt/Logo-VKI-2.png' width='1000'/>
70
+ <img src='https://i.ibb.co/7NX9z7NQ/image001.png' alt='https://i.ibb.co/7NX9z7NQ/image001.png' width='1000'/>
71
+ </p>
72
+
73
+ ```yaml
74
+ legal:
75
+ owner: Safran
76
+ license: cc-by-sa-4.0
77
+ data_production:
78
+ type: simulation
79
+ physics: 2D compressible RANS, with Spalart-Allmaras turbulence model
80
+ simulator: Broadcast
81
+ num_samples:
82
+ train: 671
83
+ test: 168
84
+ storage_backend: hf_datasets
85
+ plaid:
86
+ version: 0.1.11.dev21+g94f13b9c8
87
+
88
+ ```
89
+ This dataset was generated with [`plaid`](https://plaid-lib.readthedocs.io/), we refer to this documentation for additional details on how to extract data from `plaid_sample` objects.
90
+
91
+ The simplest way to use this dataset is to first download it:
92
+ ```python
93
+ from plaid.storage import download_from_hub
94
+
95
+ repo_id = "channel/dataset"
96
+ local_folder = "downloaded_dataset"
97
+
98
+ download_from_hub(repo_id, local_folder)
99
+ ```
100
+
101
+ Then, to iterate over the dataset and instantiate samples:
102
+ ```python
103
+ from plaid.storage import init_from_disk
104
+
105
+ local_folder = "downloaded_dataset"
106
+ split_name = "train"
107
+
108
+ datasetdict, converterdict = init_from_disk(local_folder)
109
+
110
+ dataset = datasetdict[split]
111
+ converter = converterdict[split]
112
+
113
+ for i in range(len(dataset)):
114
+ raw_sample = dataset[i]
115
+ plaid_sample = converter.to_plaid(dataset, i)
116
+ ```
117
+
118
+ It is possible to stream the data directly:
119
+ ```python
120
+ from plaid.storage import init_streaming_from_hub
121
+
122
+ repo_id = "channel/dataset"
123
+
124
+ datasetdict, converterdict = init_streaming_from_hub(repo_id)
125
+
126
+ dataset = datasetdict[split]
127
+ converter = converterdict[split]
128
+
129
+ for sample_raw in dataset:
130
+ plaid_sample = converter.sample_to_plaid(sample_raw)
131
+ ```
132
+
133
+ Plaid samples' features can be retrieved like the following:
134
+ ```python
135
+ from plaid.storage import load_problem_definitions_from_disk
136
+ local_folder = "downloaded_dataset"
137
+ pb_defs = load_problem_definitions_from_disk(local_folder)
138
+
139
+ # or
140
+ from plaid.storage import load_problem_definitions_from_hub
141
+ repo_id = "channel/dataset"
142
+ pb_defs = load_problem_definitions_from_hub(repo_id)
143
+
144
+
145
+ pb_def = pb_defs[0]
146
+
147
+ plaid_sample = ... # use a method from above to instantiate a plaid sample
148
+
149
+ for t in plaid_sample.get_all_time_values():
150
+ for path in pb_def.get_in_features_identifiers():
151
+ plaid_sample.get_feature_by_path(path=path, time=t)
152
+ for path in pb_def.get_out_features_identifiers():
153
+ plaid_sample.get_feature_by_path(path=path, time=t)
154
+ ```
155
+
156
+ For those familiar with HF's `datasets` library, raw data can be retrieved without using the `plaid` library:
157
+ ```python
158
+ from datasets import load_dataset
159
+
160
+ repo_id = "channel/dataset"
161
+
162
+ datasetdict = load_dataset(repo_id)
163
+
164
+ for split_name, dataset in datasetdict.items():
165
+ for raw_sample in dataset:
166
+ for feat_name in dataset.column_names:
167
+ feature = raw_sample[feat_name]
168
+ ```
169
+ Notice that raw data refers to the variable features only, with a specific encoding for time variable features.
170
+
171
+ ### Dataset Sources
172
+
173
+ - **Papers:**
174
+ - [arxiv](https://arxiv.org/abs/2505.02974)