Wing Component#

class hypervehicle.components.wing.Wing(A0: Vector3 = Vector3(x=0, y=0, z=0), A1: Vector3 = Vector3(x=0, y=0, z=0), TT: Vector3 = Vector3(x=0, y=0, z=0), B0: Vector3 = Vector3(x=0, y=0, z=0), Line_B0TT: Polyline = None, Line_B0TT_TYPE: str = 'Bezier', t_B1: float = None, t_B2: float = None, top_tf: Callable[[float, float, float], Vector3] = None, bot_tf: Callable[[float, float, float], Vector3] = None, LE_wf: Callable[[float], Vector3] = None, LE_type: str = 'custom', tail_option: str = 'FLAP', flap_length: float = 0, flap_angle: float = 0, mirror: bool = True, mirror_new_component: bool = False, close_wing: bool = False, stl_resolution: int = 2, verbosity: int = 1, name: str = None)[source]#

Bases: Component

__init__(A0: Vector3 = Vector3(x=0, y=0, z=0), A1: Vector3 = Vector3(x=0, y=0, z=0), TT: Vector3 = Vector3(x=0, y=0, z=0), B0: Vector3 = Vector3(x=0, y=0, z=0), Line_B0TT: Polyline = None, Line_B0TT_TYPE: str = 'Bezier', t_B1: float = None, t_B2: float = None, top_tf: Callable[[float, float, float], Vector3] = None, bot_tf: Callable[[float, float, float], Vector3] = None, LE_wf: Callable[[float], Vector3] = None, LE_type: str = 'custom', tail_option: str = 'FLAP', flap_length: float = 0, flap_angle: float = 0, mirror: bool = True, mirror_new_component: bool = False, close_wing: bool = False, stl_resolution: int = 2, verbosity: int = 1, name: str = None) None[source]#

Creates a new fin component.

Parameters:
  • A0 (Vector3) – Point p0 of the fin geometry.

  • A1 (Vector3) – Point p1 of the fin geometry.

  • TT (Vector3) – Point p2 of the fin geometry.

  • B0 (Vector3) – Point p3 of the fin geometry.

  • Line_B0TT (Polyline) – The thickness of the fin.

  • Line_B0TT_TYPE (str, optional) – The axial position angle of the placement of the fin.

  • t_B1 (float, optional) – The t value of the first discretisation point. The default is None.

  • t_B2 (float, optional) – The t value of the second discretisation point. The default is None.

  • top_tf (Callable) – The thickness function for the top surface of the wing.

  • bot_tf (Callable) – The thickness function for the top surface of the wing.

  • LE_wf (Callable, optional) – The thickness function for the leading edge of the wing.

  • LE_type (str, optional) – The type of LE to create, either “FLAT” or “custom”. The default is “custom”.

  • tail_option (str, optional) – The type of trailing edge to use, currently only “FLAP”. The default is “FLAP”.

  • flap_length (float, optional) – The length of the trailing edge flap. The default is 0.

  • flap_angle (float, optional) – The angle of the flap, specified in radians. The default is 0.

  • mirror (bool, optional) – Mirror the wing. The default is False.

  • mirror_new_component (bool, optional) – Create a new component for the mirrored patches. The default is False.

  • close_wing (bool, optional) – If the wing is not being mirrored, it is useful to set this to True, to close the STL object. The default is False.

  • stl_resolution (int, optional) – The stl resolution to use when creating the mesh for this component. The default is None.

  • verbosity (int, optional) – The verbosity of the component. The default is 1.

  • name (str, optional) – The name tag for the component. The default is None.

generate_patches()[source]#

Generates the parametric patches from the parameter dictionary.