Trying to solve motion equation using ODE45
이전 댓글 표시
Hello
I am trying to solve this motion equation , but i get no answer and MATLAB stays busy without converging . Is there a simplier way to solve this , Thank you 

Knowing that Rini = R2.
function dydt = vdp1(t,y)
ep0=0.00000000000885; %Vacuum Permittivity
epa=80; %Area Permittivity
epp=1000; %Particle Permittivity
fcm=(epp-epa)/(epp+2*epa); %Clausius–Mossotti-Factor
d=0.000001; %Particle Diameter
m=5.24*10^(-16); %Particle Mass
v=1000; %Applied Voltage
R2=3000; %External Radius
R1=1500; %Internal radius
vis=0.0013; %Dynamic Viscosity
dydt = [y(2);(4*pi*ep0*epa*fcm*((d/2)^3)*((v^2)/((log(R2/R1))^2))-(1/((y(1)-R2)^3))-3*pi*vis*d*y(2))/m];
end
[t,y] = ode45(@vdp1,[0 200],[3000 ; 0]);
plot(t,y(:,1),'-o',t,y(:,2),'-o')
title('Solution of the Equation with ODE45');
xlabel('Time t');
ylabel('Solution y');
legend('Y1 Position','Y2 Velocity')
답변 (1개)
darova
2020년 5월 4일
The problem

Try this modifications
[t,y] = ode45(@vdp1,[0 1e-6],[2900 ; 0]);

카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!