RCAIDE.Library.Components.Wings.Main_Wing

Main_Wing#

class Main_Wing(*args, **kwarg)[source]#

Bases: Wing

A class representing the primary lifting surface of an aircraft.

tag#

Unique identifier for the main wing, defaults to ‘main_wing’

Type:

str

segments#

Collection of wing segments defining the wing geometry, initialized empty

Type:

Segment_Container

Notes

The main wing provides primary lift generation for the aircraft. It inherits all geometric and aerodynamic functionality from the Wing class and adds specific attributes for main wing operation.

See also

RCAIDE.Library.Components.Wings.Wing

Base wing class providing core functionality

RCAIDE.Library.Components.Wings.Segments.Segment

Wing segment components used to build the wing

RCAIDE.Library.Components.Wings.Control_Surfaces

Control surfaces that can be mounted on the wing

moment_of_inertia(center_of_gravity)[source]#

Computes the moment of inertia tensor for the main wing.

Parameters:
  • wing (Component) – Wing component data

  • center_of_gravity (list) – Reference point coordinates for moment calculation

Returns:

3x3 moment of inertia tensor

Return type:

ndarray

class Segment_Container(*args, **kwarg)[source]#

Bases: Container

Container class for managing wing segments. Provides organization and access methods for segment components.

Notes

This container is designed to hold and manage Segment objects that define the wing geometry. It inherits from the base Container class and provides specialized functionality for wing segments.

See also

RCAIDE.Library.Components.Wings.Segments.Segment

The segment components stored in this container

get_children()[source]#

Returns a list of allowable child component types for the segment container.

Returns:

List containing the Segment class as the only allowable child type

Return type:

list

append(val)[source]#

Appends a segment to the container with automatic name handling.

Parameters:

val (Segment) – Wing segment to be added

Notes

Automatically modifies segment tags to avoid duplicates by appending numbers to repeated tags