LithiumDA commited on
Commit
72abda5
Β·
1 Parent(s): e37da37

Add Navier-Stokes dataset sample

Browse files
Files changed (5) hide show
  1. README.md +14 -0
  2. get_full_data.py +17 -0
  3. ns_part_01.npy +3 -0
  4. ns_part_02.npy +3 -0
  5. ns_part_03.npy +3 -0
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # πŸŒ€ Navier-Stokes Simulation Dataset (Re=500, T=300)
2
+
3
+ This dataset contains 300 time steps of a high-resolution 3D Navier-Stokes simulation at Reynolds number 500. The full array was split into three parts to comply with file size limitations on the Hugging Face Hub.
4
+
5
+ Each file is a `.npy` file in NumPy binary format and contains a contiguous slice along the time dimension.
6
+
7
+ ## πŸ“ File Structure
8
+
9
+ ```bash
10
+ ns_split_3/
11
+ β”œβ”€β”€ ns_part_01.npy # Samples 0–99
12
+ β”œβ”€β”€ ns_part_02.npy # Samples 100–199
13
+ └── ns_part_03.npy # Samples 200–299
14
+
get_full_data.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import numpy as np
3
+
4
+ input_dir = "./ns_split_3"
5
+ output_path = "./NS-Re500_T300_id0.npy"
6
+
7
+ part_files = sorted([
8
+ os.path.join(input_dir, f) for f in os.listdir(input_dir)
9
+ if f.endswith(".npy") and f.startswith("ns_part_")
10
+ ])
11
+
12
+ arrays = [np.load(path) for path in part_files]
13
+ merged = np.concatenate(arrays, axis=0)
14
+
15
+ np.save(output_path, merged)
16
+ print(f"Merged file saved to: {output_path}")
17
+
ns_part_01.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b488ba8aed003aa1ff5c9390106754a1eca526595268575da8350fa05a087adc
3
+ size 26895974528
ns_part_02.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b626b6f92f9cd75b15894fe2cd730032b964f89cc5d975e98f16a66a1244156
3
+ size 26895974528
ns_part_03.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8b060a16c7fc3e9a11249d03df12ca590ca92c6a47df58b44a9928915043d3f
3
+ size 26895974528