Panel¶
-
class
hotwing_core.
Panel
(left_rib, right_rib, width)[source]¶ A Panel is a representation of a wing panel and contains all of the items/objects necessary to define a wing.
A Panel can be thought of as a wing facing down with rib_1 on the left and rib_2 on the right. If rib_1 is the root chord and rib_2 is the tip, chord the panel will represent the left part of a wing.
| ------ width ---------- | trailing edge --------------------------- | | rib_1 | | rib_2 | | --------------------------- leading edge
Parameters: Variables: - left_rib – Left Rib
- right_rib – Right Rib
- width – Width
-
__getitem__
(key)[source]¶ Trim Panel using the slice functionality.
Ex: panel_obj[2:5], trims from 2 to 5
-
classmethod
copy
(panel)[source]¶ Copy a panel
Parameters: panel (Panel) – object to copy Returns: New panel Return type: Panel
-
get_feedrate_multiplier
()[source]¶ Because the feedrate is always set on the left axis, when we flip a wing around, the feedrate is incorrect. This produces a value between 0 and 1 that is applied to the feedrate to adjust for this.
-
classmethod
reverse
(panel)[source]¶ Reverse the ribs on the panel. If you have a left side, it will make it a right side. The ribs will maintain the same direction, but just switch sides.
Parameters: panel (Panel) – object to flip Returns: New flipped panel Return type: Panel
-
classmethod
trim
(panel, left=None, right=None)[source]¶ Creates a new Panel by taking an existing Panel and trimming it. The new panel’s ribs will be interpolated to the correct shape.
Parameters: - panel (Panel) – object to trim
- left (Float) – distance from left rib to make the left side cut
- right (Float) – distance from left rib to make the right side cut
Returns: New trimmed Panel
Return type: