Ejemplo n.º 1
0
from wing_utils import dbg, setCtx, show

setCtx(globals())

chord = 50
span = 200
incidenceAngle = 2
dihedral = 5
sweep = 0
tk = 0.26  # 0.25 prusa-slicer didn't print 1/4 of the wing
shortCut = False
wing = Wing.makeWing(
    airfoilSeq=naca5305,
    chord=chord,
    span=span,
    incidenceAngle=incidenceAngle,
    dihedral=dihedral,
    sweep=sweep,
    shellThickness=tk,
    shortCut=shortCut,
)
# Flip the wing so it LE is on the plate. I did this because
# the last print the cabin warpped by 8degrees.
wing = wing.rotate((0, 0, 0), (1, 0, 0), 180).translate((0, 0, chord))
# show(wing, name="wing")

# TODO: We fudge cabinLength so we are slightly past the trailing edge.
# If we don't the trailing edge sticks ever so slightly past the cabin, why?
cabinLength: float = chord * 1.001
cabinDiameter: float = 4.0
cabinYOffset: float = -1.0
cabinZOffset: float = 0