-
Notifications
You must be signed in to change notification settings - Fork 143
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
Program terminating unexpectedly when atmospheric drag is off #108
Comments
The source of the error is in your termination conditions, I think. It uses the altitude, which is normally retrieved from the flight conditions. Flight conditions are created when an aerodynamic acceleratoon is created. If the aerodynamic acceleration is turnednoff, there are no flight conditions and 'no altitude'. This is a bug that should be resolved. In the mean time, you can cheat by setting the aerodynamic coefficients to zero. |
I've added an error message to the code that lets the user know why the program is terminating. The fix I'd like to propose for this is the following:
However, this could be a significant overhead in terms of computations: updating the FlightConditions is not a trivial operation in terms of computation time.(compared to e.g. computing a central body gravitational acceleration). Therefore, I propose to add a warning when the FlightConditions is created that this could incur a significant performance overhead. The flight conditions are being overhauled to allow greater flexibility (#91). In a next iteration, we could try to find a way to only have to compute the altitude if nothing else is computed. What do you think? |
I think the ideal solution would be to compute the altitude from the current state vector of the orbiting body (and the shape model of the central body) when no FlightConditions are available. Although I don't know if this is easy to implement. |
If the issue were only the altitude, I would tend to agree, but since there is a whole host of dependent variables that require the FlightConditions, the problem is not an isolated one. However, it may be more efficient to compute those dependent variables for which it is feasible outside of the FlightConditions, only creating a FlightConditions if it is really necessary.. |
If I "turn off" atmospheric drag by commenting out this line:
the program ends unexpectedly without printing any warning or error massage.
Apparently it may have something to do with the limit on the altitude for the termination settings. These are my termination conditions:
@DominicDirkx I don't think it is related to the save settings because the line for the altitude is actually commented out:
The text was updated successfully, but these errors were encountered: