-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
51 lines (48 loc) · 988 Bytes
/
constants.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
46
47
48
49
50
51
# See LICENSE.md for full license.
"""
Constants used in computation.
"""
# Boundary conditions
# 2 BCs on each of 6 hexahedral faces (12 bits)
XI = {
'M': {
'mask': 0x00007, # Equivalent to XI_M
'SYMM': 0x00001, # Equivalent to XI_M_SYMM
'FREE': 0x00002, # Equivalent to XI_M_FREE
'COMM': 0x00004, # Equivalent to XI_M_COMM
},
'P': {
'mask': 0x00038,
'SYMM': 0x00008,
'FREE': 0x00010,
'COMM': 0x00020,
},
}
ETA = {
'M': {
'mask': 0x001c0,
'SYMM': 0x00040,
'FREE': 0x00080,
'COMM': 0x00100,
},
'P': {
'mask': 0x00e00,
'SYMM': 0x00200,
'FREE': 0x00400,
'COMM': 0x00800,
},
}
ZETA = {
'M': {
'mask': 0x07000,
'SYMM': 0x01000,
'FREE': 0x02000,
'COMM': 0x04000,
},
'P': {
'mask': 0x38000,
'SYMM': 0x08000,
'FREE': 0x10000,
'COMM': 0x20000,
},
}