You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed on your last plot that that your Euler-step rocket line continues after the point of detonation, which is impossible. This could be fixed my modifying your last for loop to break when your num_sol5 becomes less than .05.
Your for loop that I am referring to is this: for i in range(N-1): num_sol_5[i+1] = heun_step(num_sol_5[i], rocket, dt) print(num_sol_5[426])
Im suggesting that you make it more like this : for i in range(N-1): if num_heun[i][2] < .05: end = i break num_heun[i+1] = heun_step2(num_heun[i],dmdt, rocket, dt)
I think num_heun in my code is equivalent to num_sol5 in your code
The text was updated successfully, but these errors were encountered:
I noticed on your last plot that that your Euler-step rocket line continues after the point of detonation, which is impossible. This could be fixed my modifying your last for loop to break when your num_sol5 becomes less than .05.
Your for loop that I am referring to is this:
for i in range(N-1): num_sol_5[i+1] = heun_step(num_sol_5[i], rocket, dt) print(num_sol_5[426])
Im suggesting that you make it more like this :
for i in range(N-1): if num_heun[i][2] < .05: end = i break num_heun[i+1] = heun_step2(num_heun[i],dmdt, rocket, dt)
I think num_heun in my code is equivalent to num_sol5 in your code
The text was updated successfully, but these errors were encountered: