AeroSurface Abstract Class#

class rocketpy.AeroSurface[source]#

Abstract class used to define aerodynamic surfaces.

__init__(name, reference_area, reference_length)[source]#
static _beta(mach)[source]#

Defines a parameter that is often used in aerodynamic equations. It is commonly used in the Prandtl factor which corrects subsonic force coefficients for compressible flow. This is applied to the lift coefficient of the nose cone, fins and tails/transitions as in [1].

Parameters:

mach (int, float) – Number of mach.

Returns:

beta – Value that characterizes flow speed based on the mach number.

Return type:

int, float

References

[1] Barrowman, James S. https://arc.aiaa.org/doi/10.2514/6.1979-504

abstract evaluate_center_of_pressure()[source]#

Evaluates the center of pressure of the aerodynamic surface in local coordinates.

Return type:

None

abstract evaluate_lift_coefficient()[source]#

Evaluates the lift coefficient curve of the aerodynamic surface.

Return type:

None

abstract evaluate_geometrical_parameters()[source]#

Evaluates the geometrical parameters of the aerodynamic surface.

Return type:

None

abstract info()[source]#

Prints and plots summarized information of the aerodynamic surface.

Return type:

None

abstract all_info()[source]#

Prints and plots all the available information of the aero surface.

Return type:

None

compute_forces_and_moments(stream_velocity, stream_speed, stream_mach, rho, cp, *args)[source]#

Computes the forces and moments acting on the aerodynamic surface. Used in each time step of the simulation. This method is valid for the barrowman aerodynamic models.

Parameters:
  • stream_velocity (tuple) – Tuple containing the stream velocity components in the body frame.

  • stream_speed (int, float) – Speed of the stream in m/s.

  • stream_mach (int, float) – Mach number of the stream.

  • rho (int, float) – Density of the stream in kg/m^3.

  • cp (Vector) – Center of pressure coordinates in the body frame.

  • args (tuple) – Additional arguments.

  • kwargs (dict) – Additional keyword arguments.

Returns:

The aerodynamic forces (lift, side_force, drag) and moments (pitch, yaw, roll) in the body frame.

Return type:

tuple of float