2007年5月14日 星期一

第九次作業

請就教科書中第四章第五節之偏置機構作另類分析,分析過程可採你所知的方式(包括講義中所列的方法)。運動中分以曲桿驅動及滑塊驅動的方式,並說明運動的界限或範圍。設此機構之曲桿長Rcm , 連桿Lcm,滑塊之偏置量為10cm等數據作分析。其中,R=10+(學號末二碼),L=R+5 。

R=23;L=28;

由於偏移量大於兩桿的差,所以無法做360度的旋轉運動

以曲桿驅動分析,slider_limit(23,28,10),得到兩個極限角,11.3077度跟 231.5000度 ,再用slider_draw(23,28,10)作出畫



function slider_draw(R,L,e)
[s,th1,th2]=slider_limit(R,L,e);
th=linspace(th1,th2,100);
d=slider_solve(th,R,L,e,1);
x=R*cosd(th);
y=R*sind(th);
for n=1:100
line([0,x(n),d(n)],[0,y(n),e]);
line([d(n)-4,d(n)+4,d(n)+4,d(n)-4,d(n)-4],[e-3,e-3,e+3,e+3,e-3]);
axis equal; axis ([-100 100 -100 100]); pause(0.05); clf;
end



但以滑塊驅動,會比曲桿驅動多動一部分,,再用slider_draw2(23,28,10)作出動畫



function slider_draw2(R,L,e)
[s,th1,th2]=slider_limit(R,L,e);
th=linspace(th1,th2,100);
d=slider_solve(th,R,L,e,1);
x=R*cosd(th);
y=R*sind(th);
for n=1:100
line([0,x(n),d(n)],[0,y(n),e]);
line([d(n)-4,d(n)+4,d(n)+4,d(n)-4,d(n)-4],[e-3,e-3,e+3,e+3,e-3]);
axis equal; axis ([-100 100 -100 100]);pause(0.05); clf;
end

th=linspace(th2,180-th1,100);
d=slider_solve(th,R,L,e,-1);
x=R*cosd(th);
y=R*sind(th);
for n=1:100
line([0,x(n),d(n)],[0,y(n),e]);
line([d(n)-4,d(n)+4,d(n)+4,d(n)-4,d(n)-4],[e-3,e-3,e+3,e+3,e-3]);
axis equal; axis ([-100 100 -100 100]); pause(0.05); clf;
end

沒有留言: