Click here to return to top level Genair page.

!-- Begin process by creating a wing segment based on a given airfoil
In [30]: <Segment_Name>=Wing(<Airfoil_Name>)


!-- Define tragectory curve:
!-- Construct a linear Curve based on two three-dimensional space
!-- points.
In [32]: T1 = nurbs.tb.make_linear_curve(Point(y=<y_value_of_root_chord>),Point(y=<y_value_of_tip_chord>))


!-- Define twist for the wing segment:
In [34]: <Segment_Name>.orient(T1)


!-- Create a scaling function to taper wing segment
In [115]: sc1 = geom.wing.BSplineFunctionCreator1(end=(<root_chord_scale_factor>,<tip_chord_scale_factor>)).fit()


!-- Sweep airfoil along tragectory curve "T1" and apply scaling function for taper
In [36]: <Segment_Name>.fit(K=5, scs=(sc1,None,sc1))