From 5d4f235f55428633a9fdc684c4b15041c732b009 Mon Sep 17 00:00:00 2001 From: Peter Sharpe Date: Tue, 30 Jan 2024 01:36:44 -0500 Subject: [PATCH] rewrite to address PendingDeprecationWarning --- ...roblem with AeroSandbox Dynamics Engine.ipynb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tutorial/03 - Trajectory Optimization and Optimal Control/03 - The AeroSandbox Dynamics Stack/02 - 1D Rocket Problem with AeroSandbox Dynamics Engine.ipynb b/tutorial/03 - Trajectory Optimization and Optimal Control/03 - The AeroSandbox Dynamics Stack/02 - 1D Rocket Problem with AeroSandbox Dynamics Engine.ipynb index e6cbfee11..b7b69f37c 100644 --- a/tutorial/03 - Trajectory Optimization and Optimal Control/03 - The AeroSandbox Dynamics Stack/02 - 1D Rocket Problem with AeroSandbox Dynamics Engine.ipynb +++ b/tutorial/03 - Trajectory Optimization and Optimal Control/03 - The AeroSandbox Dynamics Stack/02 - 1D Rocket Problem with AeroSandbox Dynamics Engine.ipynb @@ -83,19 +83,19 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Solved in 16 iterations.\n", + "Solved in 15 iterations.\n", "DynamicsPointMass1DVertical instance:\n", "\tState variables:\n", - "\t\t z_e: [ 0.00000000e+00 -2.73700089e+01 -1.2...\n", - "\t\t w_e: [ 3.49175374e-248 -2.73152689e+002 -7...\n", + "\t\t z_e: [ 0.00000000e+00 -2.73700089e+01 -1.284…\n", + "\t\t w_e: [-1.57254609e-232 -2.73152689e+002 -7.3…\n", "\tControl variables:\n", - "\t\t Fz_e: [-1.16379952e+08 -1.13926397e+09 -8.2...\n" + "\t\t Fz_e: [-1.16379952e+08 -1.13926397e+09 -8.267…\n" ] } ], @@ -137,7 +137,7 @@ " derivative=-alpha * thrust,\n", " variable=dyn.mass_props.mass,\n", " with_respect_to=time,\n", - " method=\"midpoint\",\n", + " method=\"trapezoidal\",\n", ")\n", "\n", "### Boundary conditions\n", @@ -168,6 +168,10 @@ "collapsed": false, "pycharm": { "name": "#%%\n" + }, + "ExecuteTime": { + "end_time": "2024-01-30T06:36:27.655980900Z", + "start_time": "2024-01-30T06:36:26.592596800Z" } } },