Technolgy file archetecture revised with dictionary input method

This commit is contained in:
=
2026-06-07 17:07:20 +08:00
parent 8a17f1dde0
commit 54d20eb154
163 changed files with 5948 additions and 1297 deletions
+6 -6
View File
@@ -222,7 +222,7 @@ class spiral:
Atilt = np.arctan(spr_bend.vtx_center[-1,0]/spr_bend.vtx_center[-1,1])*180/pi
Atilt = 0
self.Atilt = Atilt
print("Distance ",np.sqrt(abs(spr_bend.vtx_center[-1,0])**2 + abs(spr_bend.vtx_center[-1,1])**2))
# print("Distance ",np.sqrt(abs(spr_bend.vtx_center[-1,0])**2 + abs(spr_bend.vtx_center[-1,1])**2))
IN_L = spr_bend.cell.put('a0',0,0,-90-Atilt,flip=1)
IN_R = spr_bend.cell.put('a0',0,0, 90-Atilt,flip=1)
@@ -1073,7 +1073,7 @@ class spiral_circle:
pitch_actual = kR*2*np.pi
gap_actual = (pitch_actual - self.width*2)/2
print("Actual Clothoid gap: %.3f" % (gap_actual))
# print("Actual Clothoid gap: %.3f" % (gap_actual))
""" Standard part """
@@ -1082,10 +1082,10 @@ class spiral_circle:
final_flat=180*self.cycles,
begin_flat=self.Atilt,
res=self.res)
if (self.Euler_Sbend):
print("Actual D/A = %.3f -- %.3f" % (D0,self.Atilt))
print("Actual D/A Clothoid %.3f -- %.3f" % (R_act,SPR_U.Atilt))
print("")
# if (self.Euler_Sbend):
# print("Actual D/A = %.3f -- %.3f" % (D0,self.Atilt))
# print("Actual D/A Clothoid %.3f -- %.3f" % (R_act,SPR_U.Atilt))
# print("")
SPR_U_INST = SPR_U.cell.put('a1',IN_L.pin['b0'].x,IN_L.pin['b0'].y,90 + Arot,flip=1)