-
Notifications
You must be signed in to change notification settings - Fork 3
Project 3 Questions #18
Comments
Along a similar vein in terms of clarification, we are asked to solve for the dmdt associated to a particular maximum (detonation) height. Should we be using the rocket function or the simplerocket function for this? |
Continuing on with the Project 3 questions that I have run into, I also have been having some issues using the incsearch function. When I try to call it on f_m, it doesn't seem to work properly, citing a type error. Outside of incsearch, f_m works fine, returning the error as expected and I have successfully used it in the mod_secant function as well. Below is the output error for my method call along with my definition of f_m. Has anyone seen this issue too? Any ideas for how to fix it? |
in response to your first question, I am having the same issue. In problem 1 of the project my numerical solution converged to the Tsiokovsky equation. In problem 2, my results do not converge because it takes gravity and drag into account. I'm assuming that the results will not converge like they did in the first problem because the velocities from the rocket and the simplerocket integrations will differ significantly. |
The numerical result should converge if dm/dt >> mg+c*v^2, but you're right the answers should be different |
John, I did not encounter that exact error, but I do see a difference in the definition of the incsearch function that I asked Dr Cooper about. It has to do with the function definition within incsearch. Here is what the fix is to make it work: f = np.zeros(ns) Try that and maybe it will work. I also just used F_dm when using incsearch rather than lambda x: f_dm, since the incsearch function uses the input to call the function |
thanks jake! that worked perfectly! |
More of a question for Dr. Cooper, but in Problem 2 for project three, we are asked to 'Demonstrate that the solutions converge to equation (2.b) the Tsiolkovsky equation' as was asked in part one. But, this analytical solution neglects drag and gravity whereas we are now explicitly including these considerations with the new function called rocket . Is this simply a typo? Do you want us to make the comparison without the expectation of having the solutions converge?
I suspect it is a type because the next part of the problem is comparing the rocket and simple rocket solutions for the maximum height achieved, but just want to be sure.
Thanks.
The text was updated successfully, but these errors were encountered: