diff --git a/src/main.py b/src/main.py deleted file mode 100644 index ae65ec3..0000000 --- a/src/main.py +++ /dev/null @@ -1 +0,0 @@ -print("wack") \ No newline at end of file diff --git a/src/plot.py b/src/plot.py new file mode 100644 index 0000000..485d7b9 --- /dev/null +++ b/src/plot.py @@ -0,0 +1,44 @@ +import matplotlib.pyplot as plt + +scale = 1000 +x_lim = 5200 +y_lim = 600 +ratio = 5 + +T_1a = [27.590625] * x_lim +T_1b = [47.278125] * x_lim +T_1c = [13.528125] * x_lim +T_2 = [68.544375] * x_lim #Absolute waarde, is eig. negatief +T_3 = [120.080625] * x_lim + +w = range(0,x_lim) + +plt.plot(w,T_1a,label="T_1a") +plt.plot(w,T_1b,label="T_1b") +plt.plot(w,T_1c,label="T_1c") +plt.plot(w,T_2,label="T_2") +plt.plot(w,T_3,label="T_3") + +RE25_57 = [[129,0],[0,5050]] +RE25_57r = [[129*ratio,0],[0,5050/ratio]] +RE25_57nom = [30] * x_lim +RE25_57nomr = [30*ratio] * x_lim +RE25_49 = [[232,0],[0,10000]] +RE25_49r = [[232*ratio,0],[0,10000/ratio]] + +plt.plot(RE25_57[1],RE25_57[0],label="xx57") +plt.plot(RE25_57r[1],RE25_57r[0],label="xx57r") +plt.plot(w,RE25_57nom,label="xx57nom",linestyle='dashed') +plt.plot(w,RE25_57nomr,label="xx57nomr",linestyle='dashed') +plt.plot(RE25_49[1],RE25_49[0],label="xx49") +plt.plot(RE25_49r[1],RE25_49r[0],label="xx49r") + +plt.xlim(0,x_lim) +plt.ylim(0,y_lim) + +plt.xlabel('n[rpm]') +plt.ylabel('T_as[mNm]') + +plt.legend() + +plt.show() \ No newline at end of file