acceleratie plot

This commit is contained in:
Stein_van_vliet 2024-02-28 16:47:32 +01:00
parent 85c8c1bd80
commit e5b77c7c0b

View File

@ -19,6 +19,7 @@ time = 20
dt = 0.01 dt = 0.01
F_list = [] F_list = []
a_list = []
v_list = [] v_list = []
s_list = [] s_list = []
t_list = [] t_list = []
@ -36,12 +37,13 @@ for i in range(round(10/dt)):
F_eff = (F_aan-F_rol-Fzt) F_eff = (F_aan-F_rol-Fzt)
F_list.append(F_eff) F_list.append(F_eff)
a_list.append(a_kar)
v_list.append(v_kar) v_list.append(v_kar)
s_list.append(s_kar) s_list.append(s_kar)
t_list.append(dt*i) t_list.append(dt*i)
#""" #"""
# """ """
#SCENARIO 2a #SCENARIO 2a
Fn = Fz Fn = Fz
F_rol = Fn*mu_r F_rol = Fn*mu_r
@ -57,6 +59,7 @@ for i in range(round(time/dt)):
F_eff = (F_aan-F_rol) F_eff = (F_aan-F_rol)
F_list.append(F_eff) F_list.append(F_eff)
a_list.append(a_kar)
v_list.append(v_kar) v_list.append(v_kar)
s_list.append(s_kar) s_list.append(s_kar)
t_list.append(dt*i) t_list.append(dt*i)
@ -76,6 +79,7 @@ for i in range(round(10/dt)):
F_eff = (F_aan-F_rol+Fzt) F_eff = (F_aan-F_rol+Fzt)
F_list.append(F_eff) F_list.append(F_eff)
a_list.append(a_kar)
v_list.append(v_kar) v_list.append(v_kar)
s_list.append(s_kar) s_list.append(s_kar)
t_list.append(dt*i) t_list.append(dt*i)
@ -83,7 +87,8 @@ for i in range(round(10/dt)):
plt.plot(t_list,F_list) plt.plot(t_list,F_list)
plt.plot(t_list,a_list)
plt.plot(t_list,v_list) plt.plot(t_list,v_list)
plt.plot(t_list,s_list) plt.plot(t_list,s_list)
plt.legend(['Kracht','Snelheid','Afstand']) plt.legend(['Kracht','Acceleratie','Snelheid','Afstand'])
plt.show() plt.show()