RailButtons Class#
- class rocketpy.RailButtons[source]#
Class that defines a rail button pair or group.
- Variables:
RailButtons.buttons_distance (
int,float) – Distance between the two rail buttons closest to the nozzle.RailButtons.angular_position (
int,float) – Angular position of the rail buttons in degrees measured as the rotation around the symmetry axis of the rocket relative to one of the other principal axis.RailButtons.angular_position_rad (
float) – Angular position of the rail buttons in radians.RailButtons.button_height (
float, optional) – Height (standoff distance) of the rail button from the rocket body surface to the rail contact point, in meters. Used for calculating bending moments at the attachment point. Default is None. If not provided, bending moments cannot be calculated but flight dynamics remain unaffected.
- __init__(buttons_distance, angular_position=45, button_height=None, name='Rail Buttons', rocket_radius=None)[source]#
Initializes RailButtons Class.
- Parameters:
buttons_distance (
int,float) – Distance between the first and the last rail button in meters.angular_position (
int,float, optional) – Angular position of the rail buttons in degrees measured as the rotation around the symmetry axis of the rocket relative to one of the other principal axis.name (
string, optional) – Name of the rail buttons. Default is “Rail Buttons”.rocket_radius (
int,float, optional) – Radius of the rocket at the location of the rail buttons in meters. If not provided, it will be calculated when the RailButtons object is added to a Rocket object.
- evaluate_center_of_pressure()[source]#
Evaluates the center of pressure of the rail buttons. Rail buttons do not contribute to the center of pressure of the rocket.
- Return type:
None
- evaluate_lift_coefficient()[source]#
Evaluates the lift coefficient curve of the rail buttons. Rail buttons do not contribute to the lift coefficient of the rocket.
- Return type:
None