




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、系統(tǒng)仿真與matlab綜合試題目: 曲柄滑塊機(jī)構(gòu)的運(yùn)動(dòng)學(xué)仿真編號(hào):21難度系數(shù):姓名班級(jí)學(xué)號(hào)聯(lián)系方式成績(jī)系統(tǒng)仿真與matlab綜合試題一、引言3二、運(yùn)動(dòng)學(xué)分析31、實(shí)例題目32、運(yùn)動(dòng)分析3三、MATLAB程廳編寫5四、使用指南和實(shí)例仿真8五、結(jié)語(yǔ)102一、引言曲柄滑塊機(jī)構(gòu)是指用曲柄和滑塊來實(shí)現(xiàn)轉(zhuǎn)動(dòng)和移動(dòng)相互轉(zhuǎn)換的平面連桿機(jī)構(gòu),也稱曲柄連桿機(jī)構(gòu)。曲柄滑塊機(jī)構(gòu)廣泛應(yīng)用于往復(fù)活塞式 發(fā)動(dòng)機(jī)、壓縮機(jī)、沖床等的主機(jī)構(gòu)中,把往復(fù)移動(dòng)轉(zhuǎn)換為不整周或整 周的回轉(zhuǎn)運(yùn)動(dòng);壓縮機(jī)、沖床以曲柄為主動(dòng)件,把整周轉(zhuǎn)動(dòng)轉(zhuǎn)換為往 復(fù)移動(dòng)。這里使用運(yùn)動(dòng)學(xué)知識(shí),對(duì)其運(yùn)動(dòng)進(jìn)行解析,并用MAT L A B為其設(shè)計(jì)仿真模塊。二、運(yùn)動(dòng)學(xué)
2、分析1、實(shí)例題目對(duì)圖示單缸四沖程發(fā)動(dòng)機(jī)中常見的曲柄滑塊機(jī)構(gòu)進(jìn)行運(yùn)動(dòng)學(xué)仿”,連 桿的轉(zhuǎn)速:,,真。己知連桿長(zhǎng)度:,4mo.1 ?r 1333222設(shè)曲柄r以勻速 旋轉(zhuǎn),。初始條件:。仿真以為r/50723222So 0. 5,仿真時(shí)間輸入, 計(jì)算和?T31.2、運(yùn)動(dòng)分析建立封閉矢量方程:3)(92+r3=rl r軸坐標(biāo)上,得到:與y將式分解到xr2cos 0 2+r3cos 0 3=rlr2sin 0 2+r3sin 0 3=0 (10)可得:rl=r2cos 0 2+r3cos 0 3(11)0 3=-arcsin(r2/r3)對(duì)(10)式對(duì)時(shí)間求導(dǎo)得:-r2 3 2sin 0 2+r3 &l
3、t;*)3sin 0 3=vlr2 3 2cos ° 2+ r3 3 3cos 0 3=0 (12)將上式用矩陣形式表示,令:A= r3sin 0 31-r3cos 0 303 3 X=vlB=-r2 3 2sin 0 2r2 a 2cos 0 2則(12)可表示為:AX= B。(13)o V133從而可解出與 4三、MATLAB程序編寫源代碼如下:function varargout = zl(varargin)% Z1 MATLAB code for zl.fig% Zl, by itself creates a new Z1 or raises the existing% si
4、ngleton*. %H = Z1 returns the handle to a new Z1 or the handle to%the existing singleton*.%ZlCCALLBACKhObject.eventDataandles,.) calls the local% function named CALLBACK in Zl.M with the given input arguments.% Zl('Property,/,Value,/.) creates a new Z1 or raises the% existing singleton*. Startin
5、g from the left, property value pairs are% applied to the GUI before zl_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to zl_OpeningFcn via varargin.% *See GUI Options on GUIDE'S Tools menu. Choose GUI allows only o
6、ne% instance to run (singleton).% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help zl% Last Modified by GUIDE v2.5 29-Dec-2016 22:57:13% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', m,.'gui-Singleton',
7、 gui-Singleton,.,gui-OpeningFcn1, zl_OpeningFcnz.'gui-OutputFcn1, (©zl-OutputFcn,.,gui-LayoutFcn1,.'gui_Callback1, );if nargin && ischar(vararginl)gui_State.gui_Callback = str2func(vararginl);endif nargout5va ra rgo ut 1: n a rgo ut = gui_mainfcn(gui_State, varargin:);elsegui_ma
8、infcn(gui_State, varargin:);end% End initialization code - DO NOT EDIT% - Executes just before zl is made visible.function zl-OpeningFcnfhObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure % eventdata reserved - to be defined in a future
9、 version of MATLAB % handles structure with handles and user data (see GUIDATA)% varargin command line arguments to zl (see VARARGIN)% Choose default command line output for zl handles.output = hObject;% Update handles structureguidata(hObject, handles);axes(handles.axes3)mapl=imread('Lbmp')
10、;imshow(mapl)% UIWAIT makes zl wait for user response (see UIRESUME) % uiwait(handles.figurel);% Outputs from this function are returned to the command line, function varargout = zl-OutputFcnfhObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT);% hObject hand
11、le to figure% eve nt data reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Get default command line output from handles structure varargoutl = handles.output;% Executes on button press in pushbuttonRun.function pushbuttonRun-Callback
12、fhObject, eventdata, handles)%主要計(jì)算程序 r2=0;單位m r3=0.4;%單位m 6 omiga2=str2double(get(handles.editl/String,); %單位 rad/s xll=l:500 %單位 msfori=l:500theta2(i)=i#omiga2/1000;theta3(i)=asin(-r2/r3*sin(theta2(i);B=-r2*omiga2*sin(theta2(i);r2*omiga2*cos(theta2(i);A=r3*sin(theta3(i) l;-r3*cos(theta3(i) 0;X=inv(
13、A)*B;omiga3(i)=X(l,l);v3(i)=X(2,l);endaxes(handles.axesl) %制表 1 plot(xll/1000zomiga3);xlabel(時(shí)間(t/s) 1)丫1m0|(,連桿角速度3 3 (rad/s) ,)axes(handles.axes2) %制表 2 plot(xll/1000zv3);xlabel(時(shí)間(t/s)")ylabel(,滑塊速度 vl (m/s),)% hObject handle to pushbuttonRun (see GCBO)% eventdata reserved - to be defined in
14、 a future version of MATLAB% handles structure with handles and user data (see GUI DATA) function editl-CallbackfhObject, eventdata, handles)% hObject handle to editl (see GCBO)% eve nt data reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUI
15、 DATA) % Hints: getfhObject/String1) returns contents of editl as textstr2double(get(hObject/String,) returns contents of editl as a double% - Executes during object creation, after setting all properties.function editl_CreateFcn(hObject, eventdata, handles)% hObject handle to editl (see GCBO)% even
16、tdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject/BackgroundColor,)/ getfO/defaultUicontro
17、lBackgroundColor1) sehObject/BackgroundColorYwhite');7end% - Executes on button press in pushbuttonExit.function pushbuttonExit_Callback(hObjectz eventdata, handles)ss=questd©確認(rèn)退出? ?退出信息窗口! 7繼續(xù)仿真! ?退出仿真! ?退出仿真! switch sscase,退出仿真! 1delete(handles.figurel);end% hObject handle to pushbuttonExit (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles struc
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 房地產(chǎn)投資回購(gòu)合同范文
- 環(huán)保項(xiàng)目合同會(huì)簽流程實(shí)施
- 收費(fèi)公路使用合同
- 房屋地基買賣合同范本
- 伺服驅(qū)動(dòng)器項(xiàng)目風(fēng)險(xiǎn)評(píng)估報(bào)告
- 大數(shù)據(jù)營(yíng)銷策略合作合同
- 2025-2030年中國(guó)智能靠墊行業(yè)深度研究分析報(bào)告
- 跨境電商平臺(tái)運(yùn)營(yíng)合作合同
- 建筑材料采購(gòu)合同格式范本
- 廣東省非成套公有住房拍賣(競(jìng)買)合同
- 電子級(jí)(高純)氫氟酸生產(chǎn)工藝和質(zhì)量指標(biāo)介紹
- 2024年煤礦安全管理人員(機(jī)電運(yùn)輸)考試題庫(kù)(濃縮500題)
- 支付令異議申請(qǐng)書(2篇)
- 數(shù)據(jù)崗位招聘筆試題與參考答案(某大型央企)2025年
- 第六單元 資本主義制度的初步確立 復(fù)習(xí)課件 2024-2025學(xué)年統(tǒng)編版九年級(jí)歷史上冊(cè)
- 供應(yīng)鏈安全培訓(xùn)教材課件
- 口腔頜面外科創(chuàng)口的處理(口腔頜面外科課件)
- 智鼎在線測(cè)評(píng)規(guī)律題題庫(kù)
- 蘋果電腦macOS效率手冊(cè)
- 緊急停車按鈕的安全設(shè)置要求
- 城區(qū)綠地養(yǎng)護(hù)服務(wù)費(fèi)項(xiàng)目成本預(yù)算績(jī)效分析報(bào)告
評(píng)論
0/150
提交評(píng)論