Skip to content

Conversation

@JoePfeiffer
Copy link
Contributor

@JoePfeiffer JoePfeiffer commented Feb 13, 2024

When the tumble stepper was first added, a stage was only allowed to tumble after apogee was reached (I've got no idea why this limitation was imposed). Later, booster stages were allowed to tumble before apogee but the sustainer was not; if the conditions for tumbling were reached for the sustainer a warning was raised but the sustainer continued to use the RK4 stepper (see #181). At some point (I'm not sure when) the warning was removed. Nowhere do I get a clear picture of why the sustainer is prohibited from tumbling before apogee.

This PR allows the sustainer to tumble under the same conditions as other stages. If the sustainer is still under thrust when it begins to tumble, the simulation stops with a SIM_ABORT event. There are two main reasons to do this:

  1. We get not-infrequent questions asking why a simulation gives an unexpectedly low apogee from users who don't realize their design is unstable and don't understand the meaning of the high Angle of Attack warning. Hopefully an explicit "tumble under thrust" abort may be clearer.

  2. When a rocket tumbles under thrust, we can get a large number of high angle of attack warnings, basically for every angle encountered. While there is probably a way to consolidate them, it seems cleaner to simply stop when we don't have good data to present any more.

Here's a .ork for the Simple Model Rocket example, with its fins removed so it will be unstable:
simple-nofins.zip

Simulating the A8-3 sim with current OR unstable and plotting the flight:
unstable-flight

Note that it doesn't report the rocket as tumbling until apogee, even though the fact that it's actually tumbling under thrust is causing the low apogee.

The warnings from that sim (they actually continued past the bottom of my screen):
warnings

Now same rocket, same sim, this PR:
sim-abort

I don't know if it's actually possible for the sustainer to tumble when not
under thrust (I guess it would need a tractor motor and very careful CG-CP design so it would tumble immediately after burnout?) but the conditions are checked separately just in case
The Falcon 9 Heavy test rocket isn't aerodynamically stable, so allowing the sustainer to tumble before apogee causes an immediate TUMBLE_UNDER_THRUST abort.  So, this commit adds a new rocket with a sustainer, core booster, and two side boosters that is stable.
@SiboVG
Copy link
Member

SiboVG commented Feb 19, 2024

This is a good change, thanks @JoePfeiffer! Something I noticed from your screenshot though is that we should really round the time in the sim abort plot overlay to something reasonable, like 1 ms.

@JoePfeiffer
Copy link
Contributor Author

I noticed that too -- I was thinking I'd make that change in my next PR (Warning events), as there will be some other changes in that text box to report the warning events as well.

@SiboVG SiboVG merged commit 7c246e7 into openrocket:unstable Feb 19, 2024
@JoePfeiffer JoePfeiffer deleted the allow-sustainer-tumble branch February 19, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants