Skip to content

Stability Margin with Compressibility Factor #350

@giovaniceotto

Description

@giovaniceotto

Is your feature request related to a problem? Please describe.

Currently, the Flight class has a property named Flight.staticMargin, which returns the static margin as a function of time. However, since it is the static margin, it always assumes Mach=0.0, and, thus, the Prandtl-Glauert compressibility correction factor $beta$ is always 1.

Describe the solution you'd like

For the Rocket class:

  • Rocket.initialStabilityMargin(mach): a method which computes the initial stability margin given a Mach number.

For the Flight class:

  • Flight.stabilityMargin(): a property which returns the stability margin, as a Function of time, for the entire flight, accounting for Mach numbers different from 0, and changing center of mass position.

Additional context

This is a common request from OpenRocket users.

Metadata

Metadata

Assignees

Labels

AerodynamicsAny problem to be worked on top of RocketPy's AerodynamicEnhancementNew feature or request, including adjustments in current codes

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions