Bead sliding on rotating rod - Lagrange Mechanics

solve and animate equations of motion
다운로드 수: 47
업데이트 날짜: 2018/7/11

라이선스 보기

The position of the bead is given by two coordinates : phi and rho - angle and radius in polar coordinates.
The 2x 2nd order Equations of motion are derived with Lagrange2 formalism.
In order to be solved numerically by matlab buildin ODE solvers the equations have to be
linearized to 4x 1st order ODE's as follows:
w - angular frequency
y0=[0.01 0 0 w]; % [ r dr/dt phi dphi/dt ] initial conditions at t=0
tspan = [0 60];
f=@(t,y)[y(2);w^2 * y(1) ; y(4);0];
[t,y]=ode45(f,tspan,y0); % call ode45 solver
The .zip file contains a mp4-video of the animation.

인용 양식

Lucas Tassilo Scharbrodt (2024). Bead sliding on rotating rod - Lagrange Mechanics (https://www.mathworks.com/matlabcentral/fileexchange/67999-bead-sliding-on-rotating-rod-lagrange-mechanics), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 General Physics에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0