版權(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綜合試題1一、引言3二、運(yùn)動(dòng)學(xué)分析3、實(shí)例題目3、運(yùn)動(dòng)分析3三、MATLAB程序編寫5四、使用指南和實(shí)例仿真8五、結(jié)語(yǔ)1010 / 10一、引言曲柄滑塊機(jī)構(gòu)是指用曲柄和滑塊來(lái)實(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)行解析,并用為其設(shè)計(jì)仿真模塊
2、。二、運(yùn)動(dòng)學(xué)分析、實(shí)例題目對(duì)圖示單缸四沖程發(fā)動(dòng)機(jī)中常見的曲柄滑塊機(jī)構(gòu)進(jìn)行運(yùn)動(dòng)學(xué)仿真。已知連桿長(zhǎng)度:,連桿的轉(zhuǎn)速:,設(shè)曲柄r2以勻速旋轉(zhuǎn),。初始條件:。仿真以為輸入,計(jì)算和,仿真時(shí)間0.5s。、運(yùn)動(dòng)分析建立封閉矢量方程:r2+r3=r1(9)將(9)式分解到x與y軸坐標(biāo)上,得到:r2cos2+r3cos3=r1r2sin2+r3sin3=0(10)可得:r1=r2cos2+r3cos33=-arcsin(r2/r3)(11)對(duì)(10)式對(duì)時(shí)間求導(dǎo)得:-r22sin2+r33sin3=v1r22cos2+ r33cos3=0(12)將上式用矩陣形式表示,令:A= r3sin3 1-r3cos3 0
3、X= 3 v1B=-r22sin2r22cos2則(12)可表示為:AX=B。(13)從而可解出3與v1。三、MATLAB程序編寫源代碼如下:function varargout = z1(varargin)% Z1 MATLAB code for z1.fig% Z1, by itself, creates a new Z1 or raises the existing% singleton*.% H = Z1 returns the handle to a new Z1 or the handle to% the existing singleton*.% Z1(CALLBACK,hObj
4、ect,eventData,handles,.) calls the local% function named CALLBACK in Z1.M with the given input arguments.% Z1(Property,Value,.) creates a new Z1 or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before z1_OpeningFcn gets called. An% unrecognized
5、 property name or invalid value makes property application% stop. All inputs are passed to z1_OpeningFcn via varargin.% *See GUI Options on GUIDEs Tools menu. Choose GUI allows only one% instance to run (singleton).% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to
6、 help z1% 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, mfilename, . gui_Singleton, gui_Singleton, . gui_OpeningFcn, z1_OpeningFcn, . gui_OutputFcn, z1_OutputFcn, . gui_LayoutFcn, , . gui_Callback, );if nargin
7、& ischar(varargin1) gui_State.gui_Callback = str2func(varargin1);endif nargout varargout1:nargout = gui_mainfcn(gui_State, varargin:);else gui_mainfcn(gui_State, varargin:);end% End initialization code - DO NOT EDIT% - Executes just before z1 is made visible.function z1_OpeningFcn(hObject, eventdata
8、, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line arguments to z1 (see VARARGIN)% Choose default command
9、 line output for z1handles.output = hObject;% Update handles structureguidata(hObject, handles);axes(handles.axes3)map1=imread(1.bmp);imshow(map1)% UIWAIT makes z1 wait for user response (see UIRESUME)% uiwait(handles.figure1);% - Outputs from this function are returned to the command line.function
10、varargout = z1_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Get default command line ou
11、tput from handles structurevarargout1 = handles.output;% - Executes on button press in pushbuttonRun.function pushbuttonRun_Callback(hObject, eventdata, handles)%主要計(jì)算程序r2=0.1;%單位mr3=0.4;%單位momiga2=str2double(get(handles.edit1,String); %單位rad/sx11=1:500 %單位msfor i=1:500 theta2(i)=i*omiga2/1000; theta
12、3(i)=asin(-r2/r3*sin(theta2(i); B=-r2*omiga2*sin(theta2(i);r2*omiga2*cos(theta2(i); A=r3*sin(theta3(i) 1;-r3*cos(theta3(i) 0; X=inv(A)*B; omiga3(i)=X(1,1); v3(i)=X(2,1); end axes(handles.axes1) %制表1plot(x11/1000,omiga3); xlabel(時(shí)間(t/s)) ylabel(連桿角速度3(rad/s)) axes(handles.axes2) %制表2plot(x11/1000,v3)
13、; xlabel(時(shí)間(t/s)) ylabel(滑塊速度v1(m/s))% hObject handle to pushbuttonRun (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)function edit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eve
14、ntdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,String) returns contents of edit1 as text% str2double(get(hObject,String) returns contents of edit1 as a double% - Executes during object creation, after sett
15、ing all properties.function edit1_CreateFcn(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata 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 o
16、n Windows.% See ISPC and COMPUTER.if ispc & isequal(get(hObject,BackgroundColor), get(0,defaultUicontrolBackgroundColor) set(hObject,BackgroundColor,white);end% - Executes on button press in pushbuttonExit.function pushbuttonExit_Callback(hObject, eventdata, handles)ss=questdlg(確認(rèn)退出?,退出信息窗口!,繼續(xù)仿真!,退出仿真!,退出仿真!);switch ss case 退出仿真! delete(handles.figure1);end% hObject handle to pushbuttonExit (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structu
溫馨提示
- 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度grc構(gòu)件研發(fā)、生產(chǎn)、安裝及質(zhì)保合同3篇
- 2025年度個(gè)人消費(fèi)貸款延期還款及還款額度調(diào)整合同3篇
- 二零二五年度高科技產(chǎn)業(yè)園區(qū)租賃及孵化服務(wù)合同3篇
- 2025年外研版八年級(jí)語(yǔ)文下冊(cè)月考試卷
- 2025年外研版2024必修2生物下冊(cè)階段測(cè)試試卷
- 2025年度個(gè)人房產(chǎn)托管租賃服務(wù)合同樣本
- 2025年度LED顯示屏廣告投放效果監(jiān)測(cè)與分析合同3篇
- 2025沈陽(yáng)市集體合同條例
- 2025年度車輛租賃與自動(dòng)駕駛測(cè)試場(chǎng)租賃合同3篇
- 2025年度風(fēng)力發(fā)電場(chǎng)建設(shè)承包合同標(biāo)準(zhǔn)文本4篇
- 數(shù)學(xué)-山東省2025年1月濟(jì)南市高三期末學(xué)習(xí)質(zhì)量檢測(cè)濟(jì)南期末試題和答案
- 中儲(chǔ)糧黑龍江分公司社招2025年學(xué)習(xí)資料
- 河南退役軍人專升本計(jì)算機(jī)真題答案
- 湖南省長(zhǎng)沙市2024-2025學(xué)年高一數(shù)學(xué)上學(xué)期期末考試試卷
- 船舶行業(yè)維修保養(yǎng)合同
- 駕駛證學(xué)法減分(學(xué)法免分)試題和答案(50題完整版)1650
- 2024年林地使用權(quán)轉(zhuǎn)讓協(xié)議書
- 物流有限公司安全生產(chǎn)專項(xiàng)整治三年行動(dòng)實(shí)施方案全國(guó)安全生產(chǎn)專項(xiàng)整治三年行動(dòng)計(jì)劃
- 2025屆江蘇省13市高三最后一卷生物試卷含解析
- 產(chǎn)鉗助產(chǎn)護(hù)理查房
- 招聘專員轉(zhuǎn)正述職報(bào)告
評(píng)論
0/150
提交評(píng)論