matlab曲柄滑块机构的运动学仿真_第1页
matlab曲柄滑块机构的运动学仿真_第2页
matlab曲柄滑块机构的运动学仿真_第3页
matlab曲柄滑块机构的运动学仿真_第4页
matlab曲柄滑块机构的运动学仿真_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

《系统仿真与matiab》综合试题题目.曲柄滑块机构的运动学仿真编号.难度系数:班级学号联系方式成绩《系统仿真与matiab》综合试题..1、运动学分析.实例题目运动分析、MATLAB程序编写.使用指南和实例仿真、五 10

曲柄滑块机构是指用曲柄和滑块来实现转动和移动相互转换的平面连杆机构,也称曲柄连杆机构。曲柄滑块机构广泛应用于往复活塞式发动机、压缩机、冲床等的主机构中,把往复移动转换为不整周或整,周的回转运动;压缩机、冲床以曲柄为主动件,把整周转动转换为往复移动。这里使用运动学知识,对其运动进行解析,并用MATLAB为其设计仿真模块。、运动学分析实例题目对图示单缸四冲程发动机中常见的曲柄滑块机构进行运动学仿真。已知连杆长度:0:0,:04m,连杆的转速::@:@设曲柄以匀速旋转,:500“初始条件:一一0。仿真以为输入,计算叫和0仿真时间5s。曲曲柄滑块机示首图运动分析建立封闭矢量方程. r2+r3:r1 (9)r2cos62+r3cos63:r1r2sin92+r3sin83:O (10) rizr2cos82+r3cos83 (11)rizr2cos82+r3cos83-r2w2sin62+r2w2cose2+r3u3cos83zo (12) r3sin63 -r3cos93 0]03VI]r2w2cos82] AX:Bö (13)MATLABfunctionvarargout=zl(varargin)%ZlMATLABcodeforzl.fig11,byitself.createsanewZIorraisestheexistingsingleton*H=ZlreturnsthehandletoanewZlorthehandletotheexistingsingleton*callsthelocalfunctionnamedCALLBACKinZI.Mwiththegiveninputarguments.createsanewZlorraisestheexistingsingleton*.Startingfromtheleft,propertyvaluepairsareappliedtotheGUIbeforezlOpeningFcngetscalled.Anunrecognizedpropertynameorinvalidvaluemakespropertyapplicationstop.AllinputsarepassedtozlOpeningFcnviavarargin.*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyoneinstancetorun(singleton)"%Seealso:GUIDE,GUIDATA,GUIHANDLES%Edittheabovetexttomodifytheresponsetohelpzl%LastModifiedbyGUIDEv2.529-Dec-2016%Begininitializationcode-DONOTEDITgui_Singleton=1;guiState=struct('guiName',mfilename,'guiSingleton',guiSingleton,'gui_OpeningFcn',zl_OpeningFcn,.'guiOutputFcn'JzlOutputFcn,'gui_LayoutFcn','guiCallback',ifnargin ischar(varargin{l))gui_State.gui_Callback=str2func(varargin{1});endifnargoutvarar€in{:});guimainfcn(guiState,varargin{:));end%Endinitializationcode-DONOTEDIT%Executesjustbeforezlismadevisible.functioneventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObject handletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handles structurewithhandlesanduserdata(seeGUIDATA)%varargin commandlineargumentstozl(seeVARARGIN)%Choosedefaultcommandlineoutputforzlhandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);axes(handles.axes3)mapl=imread('l.bmp');imshow(mapl)%UIWAITmakeszlwaitforuserresponse(seeUIRESUME)%uiwait(handles.figurel);%Outputsfromthisfunctionarereturnedtothecommandline.functionvarargout=zl_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handles structurewithhandlesanduserdata(seeGUIDATA)%Getdefaultcommandlineoutputfromhandlesstructurevarargout{l}=handles.output;%ExecutesonbuttonpressinpushbuttonRun.functionpushbuttonRun_Callback(hObject,eventdata,handles) rad'stheta3(i)=asin(-r2tr3*sin(theta2(i)));endaxes(handles.axesl)96ib[JÆe1plot(x11/1000romiga3);xlabel(VlFftljJ(t/s)v)(rad/s)axes(handles.axes2)%Till*2xlabel(VIFjtljJ(t/s)v)VI(m/s)%hObject handletopushbuttonRun(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handles structurewithhandlesanduserdata(seeGUIDATA)functioneditlCallback(hObject,eventdata,handles)%hObjecthandletoeditl(seeGC80)%eventdatareserved-tobedefinedinafutureversionofMATLA3%handles structurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofeditlastextstr2double(get(hObject,'String'))returnscontentsofeditlasadouble%-Executesduringobjectcreation,aftersettingallproperties.functioneditlCreateFcn(hObject,eventdata,handles)%hObjecthandletoeditl(seeGC80)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handles empty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.See'SPCandCOMPUTER,ifispc&&isequal(get(hObject,'BackgroundColor'),get(OJ'defaultIJicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');end%-ExecutesonbuttonpressinpushbuttonExit.functionpushbuttonExitCallback(hObject,eventdata,handles)switchssdelete(handles.figurel);end%hObject handletopushbuttonExit(seeGCBO)%eventdatareserved-tobedefinedinafuturev

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论