samundraaaa commited on
Commit
c0d6af6
·
1 Parent(s): 3c69f9b
Files changed (2) hide show
  1. fake_lid_driven_cavity_NS_512x512_X.npz +3 -0
  2. run.py +19 -0
fake_lid_driven_cavity_NS_512x512_X.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62bbdff5c059582818857caacd11ca3ec302b31d8acf1291161487e39a52803c
3
+ size 1258292638
run.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+
3
+ if __name__ == '__main__':
4
+
5
+ #Read all three datasets and combine them into a single dataset. Each Dataset is a npz file
6
+ data_set_X = np.load('/home/pc-14-2/hugging-face-test/test-dataset/lid_driven_cavity_NS_512x512_X.npz')
7
+ #data_set_Y = np.load('lid_driven_cavity_Y.npz')
8
+
9
+ #Extract the data from the npz file
10
+ Re = data_set_X['data'][:,0,:,:]
11
+ g = data_set_X['data'][:,1,:,:]
12
+ s = data_set_X['data'][:,2,:,:]
13
+
14
+ # u = data_set_Y['data'][:,0,:,:]
15
+ # v = data_set_Y['data'][:,1,:,:]
16
+ # p = data_set_Y['data'][:,2,:,:]
17
+
18
+ #Save as a npz file
19
+ np.savez_compressed('lid_driven_cavity.npz', Re = Re, g = g, s = s, u = u, v = v, p = p)