-
Notifications
You must be signed in to change notification settings - Fork 0
/
d2_1D_gan_wafer_cif.py
151 lines (123 loc) · 4.49 KB
/
d2_1D_gan_wafer_cif.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 26 12:48:32 2021
@author: Xcz
"""
import numpy as np
from c_gan_cif import gan_cif
from b_grating_to_cif import write_out_cif
# %%
def gan_wafer_cif(wafer_LU_LD_x=-20, wafer_LU_LD_y=5,
interval_x=3, interval_y=3,
Lx=[3, 4, 5], Ly=[12, 24],
Tx_1=[8, 7, 6], Tx_2=[8.5, 7.5, 6.5],
**kwargs):
# %% 1D ------------------------------------
kwargs.update({
"xy_mode": 'x',
# %%
"LD_x": wafer_LU_LD_x, "LD_y": wafer_LU_LD_y, # 结构左下角 x,y (mm)
"L_x": Lx[0], "L_y": Ly[0], # L_x:x 方向 结构长度 (mm), L_y: y 方向 结构长度 (mm)
"T_x": Tx_1[0], "D_x": 1,
})
Tx_8_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[1],
"T_x": Tx_1[1],
})
Tx_7_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[2],
"T_x": Tx_1[2],
})
Tx_6_1D = gan_cif(**kwargs)
# write_out_cif(Tx_8_1D + Tx_7_1D + Tx_6_1D)
# %% -1D ------------------------------------
kwargs.update({
"xy_mode": '-x',
# %%
"LD_x": wafer_LU_LD_x, # 结构左下角 x,y (mm)
"L_x": Lx[0], # L_x:x 方向 结构长度 (mm), L_y: y 方向 结构长度 (mm)
"T_x": Tx_1[0],
})
Tx_8_nega_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[1],
"T_x": Tx_1[1],
})
Tx_7_nega_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[2],
"T_x": Tx_1[2],
})
Tx_6_nega_1D = gan_cif(**kwargs)
# write_out_cif(Tx_8_1D + Tx_7_1D + Tx_6_1D +
# Tx_8_nega_1D + Tx_7_nega_1D + Tx_6_nega_1D)
# %% 1D ------------------------------------
kwargs.update({
"xy_mode": 'x',
# %%
"LD_x": wafer_LU_LD_x,
"LD_y": wafer_LU_LD_y - interval_y - Ly[1], # 结构左下角 x,y (mm)
"L_x": Lx[0], "L_y": Ly[1], # L_x:x 方向 结构长度 (mm), L_y: y 方向 结构长度 (mm)
"T_x": Tx_2[0],
})
Tx_85_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[1],
"T_x": Tx_2[1],
})
Tx_75_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[2],
"T_x": Tx_2[2],
})
Tx_65_1D = gan_cif(**kwargs)
# write_out_cif(Tx_8_1D + Tx_7_1D + Tx_6_1D +
# Tx_8_nega_1D + Tx_7_nega_1D + Tx_6_nega_1D +
# Tx_85_1D + Tx_75_1D + Tx_65_1D)
# %% -1D ------------------------------------
kwargs.update({
"xy_mode": '-x',
# %%
"LD_x": wafer_LU_LD_x, # 结构左下角 x,y (mm)
"L_x": Lx[0], # L_x:x 方向 结构长度 (mm), L_y: y 方向 结构长度 (mm)
"T_x": Tx_2[0],
})
Tx_85_nega_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[1],
"T_x": Tx_2[1],
})
Tx_75_nega_1D = gan_cif(**kwargs)
kwargs.update({
"LD_x": kwargs["LD_x"] + kwargs["L_x"] + interval_x, # 加的 interval 得 > 上一个的 L_x
"L_x": Lx[2],
"T_x": Tx_2[2],
})
Tx_65_nega_1D = gan_cif(**kwargs)
write_out_cif(Tx_8_1D + Tx_7_1D + Tx_6_1D +
Tx_8_nega_1D + Tx_7_nega_1D + Tx_6_nega_1D +
Tx_85_1D + Tx_75_1D + Tx_65_1D +
Tx_85_nega_1D + Tx_75_nega_1D + Tx_65_nega_1D)
if __name__ == '__main__': # 1D PPCLT
kwargs = \
{"wafer_LU_LD_x": -20, "wafer_LU_LD_y": 7, # mm
"interval_x": 3, "interval_y": 3, # mm
"Lx": [3, 4, 5], "Ly": [12, 24], # mm
"Tx_1": [8, 7, 6], # um
"Tx_2": [8.5, 7.5, 6.5], # um
# %%
"kwargs_seq": 0, "root_dir": r'1',
"is_remove_root_dir": 1,
}
from fun_global_var import init_GLV_DICT
init_GLV_DICT(**kwargs)
gan_wafer_cif(**kwargs)