Skip to content

Conversation

@SiboVG
Copy link
Member

@SiboVG SiboVG commented Sep 15, 2022

This PR fixes #1676 by setting the longitudinal and rotational inertia of a SymmetricComponent (transition/nose cone) to zero if the component length is zero. To then have the same behavior as a phantom body tube (the component acts as a disk and can still cause drag), I match the fore and aft radius to the max value of the two when the component length is zero. This is because a zero-length transition is just a disk, and a disk is just a zero-length tube. So matching the fore and aft radius will let the transition behave like a zero-length tube.

@hcraigmiller
Copy link
Collaborator

Functions as expected, no anomalies found.

This should definitely reduce the number of discontinuity errors related to Estes engine hook hacks.

MMT

Build 1031
[Windows 11 Pro; Version 21H2; OS Build 22000.739; Windows Feature Experience Pack 1000.22000.739.0]
[Java "11.0.15" 2022-04-19 LTS; Java(TM) SE Runtime Environment 18.9 (build 11.0.15+8-LTS-149)]

@JoePfeiffer JoePfeiffer merged commit 77e49bb into openrocket:unstable Sep 17, 2022
@SiboVG SiboVG deleted the issue-1676 branch September 30, 2022 12:27
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.

[Bug] Zero length transitions cause uncaught exception

3 participants