Open Gui-FernandesBR opened 1 year ago
I think it's not a good idea to start the simulation with a initial_time different of t=0. Otherwise, we would lose some insights in the flight, for example, the "apogee_time" would become the flight time plus the time until ignition starts. This would be a bit confusing I guess.
It's better to adjust the thrust curve to always start at 0, probably.
I'm open to discussions anyway
This bug happens to me frequently even when the thrust curve starts with 0. The way I fix it is the same as suggested (changing the maxTimeStep to 0.1) as shown in the screenshot
The simulations of this screenshot had a thrust curve that starts like this
In Monte Carlo simulations this also happens sometimes, usually when the standard deviation of the burn time is too high. To correct the dispersion analysis, I have to reduce the standard deviation.
Describe the bug
To Reproduce
Try to follow the code block below. You're gonna see that the rocket never leaves the position (0, 0, 0).
Expected behavior
A description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Some warning are also generated due to this BUG, for example:
Possible solutions:
While discussing this internally, we came up with some suggestions:
max_time_step
as 0.1 *burn_duration
, for example, to ensure that any simulation will have at least 10 steps.max_time_step
could now be set to 0.1 instead ofnp.inf