-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdashboard.py
56 lines (48 loc) · 1.03 KB
/
dashboard.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
52
53
54
55
56
import numpy as np
# UNITS
degrees = np.pi / 180
micrometers = 1
meters = 1e6 * micrometers
centimeters = 1e-2 * meters
millimeters = 1e-3 * meters
nanometers = 1e-3 * micrometers
picoseconds = 1
seconds = 1e12 * picoseconds
hertz = 1 / seconds
kilohertz = 1e3 * hertz
megahertz = 1e6 * hertz
gigahertz = 1e9 * hertz
terahertz = 1e12 * hertz
# CONSTANTS
e0 = 8.85418782e-12 * 1 / meters
u0 = 1.25663706e-6 * 1 / meters
N0 = u0 / e0
c0 = 299792458 * meters / seconds
# OCT source
theta = 0 * degrees
l0 = 800 * nanometers
bw_l = 50 * nanometers
num_sample_pts = 100
num_sample_pts_2D = 1000
# DEVICE
NRES = 10
NPML = [20, 20, 20, 20]
Sy = 40 * micrometers
Sx = 40 * micrometers
# MATERIAL PROPERTIES
ermin = 1
ermax = 3.5
zmin = 1
zmax = 35
s_avg_radius = 5 * micrometers
s_std_radius = 2 * micrometers
# SIMULATION
default_id = 1
default_num_simulations = 1
# DIRECTORIES
OUT_DIR = "Dataset"
OUT_DIR_2D = "Dataset_2D"
# SLURM
slurm_offset = 200
slurm_dir = "/work/users/k/e/kenyavzz/Dataset"
slurm_dir_2D = "/work/users/k/e/kenyavzz/Dataset_2D"