Rib

class hotwing_core.Rib(foil_data, scale=None, xy_offset=None, top_sheet=0, bottom_sheet=0, front_stock=0, tail_stock=0, rotation=0, rotation_pos=0.5)[source]

A Rib can be thought of as a profile-view of a wing that’s sliced vertically from front to back. The rib contains attributes necessary to create the shape of the airfoil and position it in 2D space. A Rib starts with a Profile object, which is manipulated to create a Rib.

Parameters:
  • foil_data (Profile or object that can initialize a Profile object) – this should contain X coordinates between 0 and 1 only. The foil should have the front facing left.
  • scale (Float) – Length of the rib. The airfoil will be scaled by this value.
  • xy_offset (Coordinate) – Distance to offset profile
  • top_sheet (Float) – Thickness of top sheet - the top of the rib will be offset inward by this amount in order to account for a sheeting allowance. The idea is that once the sheeting is applied, the final shape will be accurate to the airfoil.
  • bottom_sheet (Float) – Thickness of the bottom sheet - similar to the top_sheet but on the bottom
  • front_stock (Float) – Size of the front stock. The rib will be cut horizontally at this diistance back from the leading edge. This will allow for stock (wood or other material) to be applied and then shaped to the shape of the airfoil.
  • tail_stock (Float) – Size of the tail stock. This is similar to the front_stock, except on the tail.
  • rotation (Float) – Degrees to rotate the rib for washout or washin. A positive value will rotate the rib clockwise, which will raise the front of the foil.
  • rotation_pos (Float) – Position to rotate the foil in terms of chord length. A value of 50% will rotate the foil around a point 50% from the tip. A value of 0.25% will rotate the value 25% from the tip.
Variables:
  • foil_definition – foil_definition
  • scale – scale
  • xy_offset – xy_offset
  • top_sheet – top_sheet
  • bottom_sheet – bottom_sheet
  • front_stock – front_stock
  • tail_stock – tail_stock
  • rotation – rotation
  • rotation_pos – rotation_pos
classmethod interpolate_new_rib(r1, r2, dist_between, dist_interp, points=200)[source]

Interpolate a new rib based on two others.

Parameters:
  • r1 (Rib) – First Rib
  • r2 (Rib) – Second Rib
  • dist_between (Float) – Distance between the ribs of the panel we want to interpolate
  • dist_interp (Float) – Distance from the left side at which we perform the interpolation.
  • points (Int) – Number of points to use on each (top/bottom) surface we interpolate.
airfoil_profile

A copy of the scaled and offset airfoil before sheeting. This represents the surface of the wing at the Rib’s position. This includes the entire foil and doesn’t exclude the front_stock or tail_stock.

profile

A copy of the rib profile after scaling and offsets. This represents the actual profile of the rib. This includes the entire rib surface and doesn’t exclude the front_stock or tail_stock.