Advertisement
useless28

Untitled

Dec 15th, 2021
1,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.87 KB | None | 0 0
  1. clear;clc;
  2. delta = 2e-3;
  3. F = 0:300;
  4. b = 5e-3;
  5. h = 20e-3;
  6. L1 = 200e-3;
  7. L2 = 250e-3;
  8. kn = 300e3;
  9. E = 210e9;
  10. a = 2e-3;
  11. ab = a/b;
  12.  
  13. syms F_p x1 x2 x
  14. % kontrola
  15. % double(solve(int(((F_p*x1)/(E*Jy(b,h))) * x1, x1, 0, L2) + int(( ((F_p*(x2+L2)) - (F*x2))/(E*Jy(b,h)) ) * (x2+L2), x2, 0, L1) == (-1/kn)*F_p - delta, F_p))
  16.  
  17. % vycisleni meho vypoctu
  18. Mo = zeros([1 301]);
  19. Fp = (((1/6)*((2*F*L1^3)+(3*F*L2*L1^2)))-delta*E*Jy(b,h)) / ((E*Jy(b,h))/(kn) + ((L1+L2)^3)/3)
  20. for i = 1:length(F)
  21.     if double(Fp(i)) >= 0
  22.         Mo(i) = Fp(i)*(L1+L2) - F(i)*(L1);
  23.     else
  24.         Mo(i) = F(i) * L1;
  25.     end
  26. end
  27.  
  28. Mo
  29. sigma = (Mo * 0.5 * b)/(Jy(b,h))
  30. y = 1.122 - 1.4*(ab) + 7.33*(ab^2) - 13.08*(ab^3) + 14*(ab^4)
  31.  
  32. plot(sigma * sqrt(pi * a) * y)
  33. xlim([0 300])
  34. xlabel('F [N]')
  35. ylabel('K_I [Pa?]')
  36.  
  37. xlim([0 300])
  38.  
  39.  
  40.  
  41.  
  42. function J = Jy(b, h)
  43.     J = ((b)*(h^3))/12;
  44. end
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement