Fin Component#
- class hypervehicle.components.fin.Fin(p0: Vector3, p1: Vector3, p2: Vector3, p3: Vector3, fin_thickness: float, fin_angle: float, top_thickness_function: Callable, bot_thickness_function: Callable, LE_wf: Callable | None = None, mirror: bool | None = False, rudder_type: str | None = 'flat', rudder_length: float | None = 0, rudder_angle: float | None = 0, pivot_angle: float | None = 0, pivot_point: Vector3 | None = Vector3(x=0, y=0, z=0.0), offset_func: Callable | None = None, stl_resolution: int | None = 2, verbosity: int | None = 1, name: str | None = None)[source]#
Bases:
Component
- __init__(p0: Vector3, p1: Vector3, p2: Vector3, p3: Vector3, fin_thickness: float, fin_angle: float, top_thickness_function: Callable, bot_thickness_function: Callable, LE_wf: Callable | None = None, mirror: bool | None = False, rudder_type: str | None = 'flat', rudder_length: float | None = 0, rudder_angle: float | None = 0, pivot_angle: float | None = 0, pivot_point: Vector3 | None = Vector3(x=0, y=0, z=0.0), offset_func: Callable | None = None, stl_resolution: int | None = 2, verbosity: int | None = 1, name: str | None = None) None [source]#
Creates a new fin component.
- Parameters:
p0 (Vector3) – Point p0 of the fin geometry.
p1 (Vector3) – Point p1 of the fin geometry.
p2 (Vector3) – Point p2 of the fin geometry.
p3 (Vector3) – Point p3 of the fin geometry.
fin_thickness (float) – The thickness of the fin.
fin_angle (float) – The axial position angle of the placement of the fin.
top_thickness_function (Callable) – The thickness function for the top surface of the fin.
bot_thickness_function (Callable) – The thickness function for the top surface of the fin.
LE_wf (Callable, optional) – The thickness function for the leading edge of the fin.
mirror (bool, optional) – Mirror the fin. The default is False.
rudder_type (str, optional) – The type of rudder to use, either “flat” or “sharp”. The default is “flat”.
rudder_length (float, optional) – The length of the rudder. The default is 0.
pivot_angle (float, optional) – The pivot angle of the entire fin, about its central axis. The default is 0.
pivot_point (Vector3, optional) – The point about which to apply the pivot_angle. The default is Vector3(0,0,0).
offset_func (Callable, optional) – The function to apply when offsetting the fin position. The default is None.
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.