-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdataset_transfer.py
27 lines (25 loc) · 1010 Bytes
/
dataset_transfer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from dolfin import *
from fenics import *
from utils import *
if __name__ == "__main__":
for i in range(1):
mesh_name = 'circle_{}'.format(i)
type = 'circle'
# check if calculation is stable
# if ensure_stable_calculation(mesh_name, type):
# print('Calculation {} is stable.'.format(mesh_name))
# read and extract data
# read_timeseries_to_npy(mesh_name, type)
plot_velocity_contour(mesh_name, 20, type)
# else:
# print('Calculation {} is unstable.'.format(mesh_name))
# for i in range(1000):
# mesh_name = 'ellipse_{}'.format(i)
# type = 'ellipse'
# # check if calculation is stable
# if ensure_stable_calculation(mesh_name, type):
# print('Calculation {} is stable.'.format(mesh_name))
# # read and extract data
# read_timeseries_to_npy(mesh_name, type)
# else:
# print('Calculation {} is unstable.'.format(mesh_name))