"""Straight round heat pipe: a sealed copper tube, here as its outside shape. The axis is along +Z, the rounded end on the XY plane centred on the origin, the pinched-off end on top. Diameter and overall length come from the maker's table in the README; the pinched end's taper and the other end's rounding are proportions, for looks.""" from steve import Model size = "6x150" # Diameter x length # size: (Wakefield-Vette part number, diameter, overall length) # Wakefield-Vette "Heat Pipe Selection Guide", July 18, 2018, page 2, table "Wakefield Vette Standard Heat Pipes" (round, straight, sintered); # 8x100 is part 121968 in the guide's March 21, 2017 edition, page 6, and isn't in the 2018 table. # Part numbers as printed (the 2018 table prints 214660 and 214676). PIPES = { "3x70": ("124641", 3, 70), "3x100": ("124642", 3, 100), "3x150": ("124643", 3, 150), "3x200": ("124644", 3, 200), "4x70": ("121686", 4, 70), "4x100": ("121687", 4, 100), "4x150": ("121688", 4, 150), "4x200": ("124646", 4, 200), "4x250": ("124647", 4, 250), "4x300": ("124645", 4, 300), "5x70": ("124650", 5, 70), "5x100": ("124651", 5, 100), "5x150": ("124652", 5, 150), "5x200": ("124653", 5, 200), "5x250": ("124654", 5, 250), "5x300": ("124648", 5, 300), "5x350": ("124649", 5, 350), "6x70": ("124657", 6, 70), "6x100": ("110578", 6, 100), "6x150": ("110579", 6, 150), "6x200": ("110580", 6, 200), "6x250": ("110581", 6, 250), "6x300": ("110582", 6, 300), "6x350": ("124655", 6, 350), "6x400": ("124656", 6, 400), "8x70": ("124682", 8, 70), "8x100": ("121968", 8, 100), "8x150": ("124662", 8, 150), "8x200": ("110583", 8, 200), "8x250": ("110584", 8, 250), "8x300": ("110585", 8, 300), "8x350": ("124658", 8, 350), "8x400": ("124659", 8, 400), "8x450": ("214660", 8, 450), "8x500": ("124661", 8, 500), "10x100": ("121689", 10, 100), "10x150": ("124669", 10, 150), "10x200": ("121690", 10, 200), "10x250": ("121691", 10, 250), "10x300": ("121692", 10, 300), "10x350": ("124663", 10, 350), "10x400": ("124664", 10, 400), "10x450": ("124665", 10, 450), "10x500": ("124666", 10, 500), "10x550": ("124667", 10, 550), "10x600": ("124668", 10, 600), "12x70": ("124670", 12, 70), "12x100": ("124671", 12, 100), "12x150": ("124672", 12, 150), "12x200": ("124673", 12, 200), "12x250": ("124674", 12, 250), "12x300": ("124675", 12, 300), "12x350": ("214676", 12, 350), "12x400": ("124677", 12, 400), "12x450": ("124678", 12, 450), "12x500": ("124679", 12, 500), "12x550": ("124680", 12, 550), "12x600": ("124681", 12, 600), } part_number, d, length = PIPES[size] r = d / 2 # Proportions, for looks: the pinched end tapers over 1.2 diameters (the maker's 4 mm and 10 mm drawings allow 13 at most) to 0.45 of the diameter; the other end's corner is cut at a quarter of the diameter. taper = 1.2 * d tip_r = 0.45 * r nose = 0.25 * d model = Model() with model.sketch("section", on="XZ", name="Section") as sk: sk.polyline("outline", [(0, 0), (r - nose, 0), (r, nose), (r, length - taper), (tip_r, length), (0, length)], closed=True) model.revolve("pipe", "section", axis="Z", name="Heat pipe") model.material("copper", color="#b87333") result = model.result()