-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSD_pattern_designer.py
More file actions
80 lines (72 loc) · 2.88 KB
/
SD_pattern_designer.py
File metadata and controls
80 lines (72 loc) · 2.88 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/python
import os,sys
folder_path = os.getcwd()
if folder_path not in sys.path:
sys.path.append(folder_path)
from Compiler.dxf_compiler import *
from Compiler.HFSS_compiler import *
# from Builds.Build_SD013_test import *
# folder_path = r'C:\Users\xingrui\OneDrive - Washington University in St. Louis\wustl\HLab\Project_MLGM\Designs\SD013test'
# file_name = 'SD013test_bareline'
# project_name = os.path.join(folder_path, file_name)
# start = time.time()
# h = HFSS(project_name)
# h.trap = 0
# Build_013_test(h,lead_number=0)
# print('time spent:', time.time()-start, 's')
# from Builds.Build_SD009 import *
# folder_path = r'/Users/chellybone/Library/CloudStorage/OneDrive-WashingtonUniversityinSt.Louis/wustl/HLab/Project_MLGM/Fab_files/SD_010'
# file_name = 'Test_009'
# project_name = os.path.join(folder_path, file_name)
# start = time.time()
# # h = HFSS(project_name)
# # h.trap = False
# # Build_hBN_waveguide(h,)
# h = DXF(project_name)
# h.trap = True
# Build_009(h,8)
# print('time spent:', time.time()-start, 's')
# from Builds.Build_SD011_debug import *
# from Builds.Build_SD014 import *
# # folder_path = r'C:\Users\duxin\OneDrive - Washington University in St. Louis\wustl\HLab\Project_MLGM\Fab_files\SD_011'
# folder_path = r'C:\Users\xingrui\OneDrive - Washington University in St. Louis\wustl\HLab\Project_MLGM\Designs\SD014'
# file_name = 'temp_sim'
# project_name = os.path.join(folder_path, file_name)
# start = time.time()
# # h = DXF(project_name)
# h = HFSS(project_name)
# h.trap = 0
# Build_Utype(h,lead_number=3)
# print('time spent:', time.time()-start, 's')
# from Builds.Build_SD012 import *
# folder_path = r'C:\Users\xingrui\OneDrive - Washington University in St. Louis\wustl\HLab\Project_MLGM\Fab_files\SD_012'
# file_name = 'SD012_removePad'
# project_name = os.path.join(folder_path, file_name)
# start = time.time()
# # h = DXF(project_name)
# h = HFSS(project_name)
# h.trap = 0
# Build_012(h,lead_number=2)
# print('time spent:', time.time()-start, 's')
# from Builds.Build_SD013 import *
# folder_path = r'C:\Users\xingrui\OneDrive - Washington University in St. Louis\wustl\HLab\Project_MLGM\Designs\SD013'
# file_name = 'temp_sim'
# # folder_path = r'C:\Users\xingrui\OneDrive - Washington University in St. Louis\wustl\HLab\Project_MLGM\Fab_files\SD_013'
# # file_name = 'SD013_121123'
# project_name = os.path.join(folder_path, file_name)
# start = time.time()
# # h = DXF(project_name)
# h = HFSS(project_name)
# h.trap = 0
# Build_013(h,lead_number=2)
# print('time spent:', time.time()-start, 's')
from Builds.Build_100nH import *
folder_path = r'D:\OneDrive - Washington University in St. Louis\wustl\HLab\Project_gPhotonDetector\Design'
file_name = '100nH_generated'
project_name = os.path.join(folder_path, file_name)
start = time.time()
h = DXF(project_name)
# h = HFSS(project_name)
h.trap = 0
Build_SingleFilter(h,lead_number=1)
print('time spent:', time.time()-start, 's')