This page was generated from docs/documents/notebooks/design/primitives/sweeps.ipynb.
Interactive online version: Binder badge - Download notebook -

Sweeps

[1]:
import ada
[2]:
sweep = ada.PrimSweep('sweep1', [(0,0,0), (0.5,0,0,0.2), (0.8, 0.8, 1),(0.8, 0.8, 2)],[(0,0), (0.1,0),(0.1,0.1),(0,0.1)], profile_normal=(1,0,0), origin=(0,0,0), profile_xdir=(0,0,1))

sweep.show()
[2]:
[3]:
tri_face = [(0,0), (0.01,0), (0.01, 0.02)]
sweeps = [
    ada.PrimSweep("sweep2", ((1,1,1), ((1,1,1.1))), tri_face, profile_normal=(0,0,1), profile_ydir=(1,0,0)),
    ada.PrimSweep("sweep3", ((1,1,1.1), ((1,1.1,1.1))), tri_face, profile_normal=(0,-1,0), profile_ydir=(0,0,1)),
    ada.PrimSweep("sweep4", ((1,1,1.1), ((1.1,1,1.1))), tri_face, profile_normal=(-1,0,0), profile_ydir=(0,0,1)),
]

p = ada.Part("MySweeps") / sweeps
p.show()
[3]: