Skip to content

Commit

Permalink
update tutorial with new timestepper syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed May 4, 2024
1 parent 0531ef8 commit 425e14a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/Binder/1_Timoshenko_Beam.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -627,16 +627,14 @@
"\n",
"\n",
"def run_and_update_plot(simulator, dt, start_time, stop_time, ax):\n",
" from elastica.timestepper import extend_stepper_interface\n",
" from elastica.timestepper.symplectic_steppers import PositionVerlet\n",
"\n",
" timestepper = PositionVerlet()\n",
" do_step, stages_and_updates = extend_stepper_interface(timestepper, simulator)\n",
"\n",
" n_steps = int((stop_time - start_time) / dt)\n",
" time = start_time\n",
" for i in range(n_steps):\n",
" time = do_step(timestepper, stages_and_updates, simulator, time, dt)\n",
" time = timestepper.step(simulator, time, dt)\n",
" plot_timoshenko_dynamic(shearable_rod_new, unshearable_rod_new, end_force, time, ax)\n",
" return time\n",
"\n",
Expand Down

0 comments on commit 425e14a

Please sign in to comment.