Skip to content

Commit

Permalink
reduced num_nodes, now takes 22.5 sec to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter230655 committed Aug 5, 2024
1 parent bd290d2 commit 5087a5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples-gallery/plot_crane_moving_a_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
specified_symbols = (F,)
h = sm.symbols('h')

num_nodes = 250
num_nodes = 150
duration =(num_nodes - 1)*h
interval_value = h

Expand Down Expand Up @@ -303,7 +303,6 @@ def update(t):
pfeil.set_UVC(input_sol(t), 0.25)
return line1, recht, load, pfeil


anim = animation.FuncAnimation(fig, update,
frames=np.arange(t0, tf, 1/fps),
interval=1/fps*1000)
Expand Down

0 comments on commit 5087a5f

Please sign in to comment.