-
-
Notifications
You must be signed in to change notification settings - Fork 532
[#1440] Add all context drags to component drag #1504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Single stage rockets: Multi-stage rockets: |
|
@hcraigmiller could you elaborate on how I can recreate the NullPointerException when changing the fin count? My steps:
|
|
After further testing, simplified steps (using Build 770):
The error only occurs when turning a stage off; when turned back on no error occurs. I concur that the error has nothing to do with the fin count, it was just coincidence. I will be testing further. |
Yes, so that's #1477, which you can just ignore. So for your further testing please do not touch the stage selector buttons :) |
|
Functions as expected, not so much of a slight anomaly as a question found. It appears that the pre-total Cd results are not being mathematically rounded at .001 before the percentage of the total is calculated. Because of this, the total Cd percentage can be a full percentage point higher or lower than if the pre-total results were rounded before the percentage of the total is calculated (the results still add up to 100%). This is apparent when compared to a spreadsheet, but I don't know whether this will be a user issue or not. |
|
I would suggest a small change that would make it more in line with the treatment in the "Stability" tab: show pressure, base, friction, and total Cd per instance, and add an aggregate total Cd column (this last would have the same content as the current "Total Cd" column |
Interesting that you mention this, because I just noticed that the instance mass only seems to work for pods . For instance for a fin set, the instance mass and aggregate mass are the same, but for a nose cone inside a pod set, the aggregate mass is the nose cone mass times the number of pod instances. Is this how it should work? And should the same behavior be applied for the drag tab (the instance CD only differs from the aggregate CD for podsets, not for individual fins of a finset)? |
Ping @JoePfeiffer |
|
That is how it's intended to work, but now that you raise the question it isn't clear it should be. The program regards a fin set as a single entity -- it is a single fin set, not three individual fins. So what the component analysis says is correct; the instance mass is the mass of the whole fin set. But a user is likely going to be expecting the instance mass to be the mass of a single fin, while the aggregate is the mass of all three. That might well be a better way to express it to the user. |
|
Since it's now correctly reporting how the simulation is calculating finset instances, let's merge it. We may want to revisit whether we want the component analysis to present an instance mass of a single fin to the user, as discussed above. |

This PR fixes #1440 by including all context drags to the component drag (for friction and pressure CD) instead of simply setting the component drag to the last context's drag.
FinSets should now display the correct CD:
