Upgrade to Pro — share decks privately, control downloads, hide ads and more …

半導体スナック蟬2020.09.19

Yamada3
September 19, 2020
140

 半導体スナック蟬2020.09.19

半導体スナック蟬2020.09.19のスライドです。

Yamada3

September 19, 2020
Tweet

More Decks by Yamada3

Transcript

  1. ΪΞΈ͍ͨͳMEMSͷαϯϓϧ͕͋Δʂ͜͏͍͏ͷͰ͖Δͷʁ pythonͰ͓ֆඳָ͖͍͠ʂ࡞ΕΔ΋ͷͷ෯͕޿͕Γͦ͏ʂ import numpy as np from gdsCAD import *

    def Gear(r, N, layer=None): """ A crude gear. TODO: Make this involute """ gear = core.Elements() d_theta = 360. / N w = float(2*np.pi*r) / (2*N) disk = shapes.Disk((0,0), r-w/2, layer=layer) tooth = shapes.Rectangle((0, w/2), (r+w/2, -w/2), layer=layer) gear.add(disk) for i in range(N): gear.add(utils.rotate(tooth, i * d_theta)) return gear top = core.Cell('TOP') gear1 = Gear(15, 20).rotate(360./20/2) gear2 = Gear(30, 40, 2).translate((45,0)) top.add(gear1) top.add(gear2) top.show()