-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.py
45 lines (38 loc) · 1.37 KB
/
category.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# by LiJing @ SJTU
# For different versions of solvers
variablesDict1 = {'velocity': 'U',
'vorticity': 'vorticity',
'pressure': 'p',
'elevation': 'elevation',
'circulation': 'cirulation',
'kinetics': 'kinetics',
'gauge': 'gauge',
}
variablesDict0 = {'velocity': 'U',
'vorticity': 'vorticity',
'pressure': 'p_rgh',
'vof': 'alpha.water',
'elevation': 'elevation',
'circulation': 'cirulation',
'kinetics': 'kinetics',
'gauge': 'gauge',
}
variablesList = [variablesDict0, variablesDict1]
# Variables to be read from files
varFromFileList = ['velocity',
'vorticity',
'pressure',
'vof',
]
# Two categories for variables to be dumped
varEachStepList = ['velocity',
'vorticity',
'pressure',
'vof',
]
varEndStepList = ['circulation',
'kinetics',
'gauge',
]
# Mitgo Head Line
headString = '# Mitgo File __ by LiJing @ SJTU copyright 2015\n'