




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、?系统仿真与matlab?综合试题题 目: 曲柄滑块机构的运动学仿真 编 号: 21 难度系数: 姓 名 班 级 学 号 联系方式 成 绩 ?系统仿真与matlab?综合试题1一、引言3二、运动学分析3、实例题目3、运动分析3三、MATLAB程序编写5四、使用指南和实例仿真8五、结语1010一、引言曲柄滑块机构是指用曲柄和滑块来实现转动和移动相互转换的平面连杆机构,也称曲柄连杆机构。曲柄滑块机构广泛应用于往复活塞式发动机、压缩机、冲床等的主机构中,把往复移动转换为不整周或整周的回转运动;压缩机、冲床以曲柄为主动件,把整周转动转换为往复移动。这里使用运动学知识,对其运动进行解析,并用为其设计仿真
2、模块。二、运动学分析、实例题目对图示单缸四冲程发动机中常见的曲柄滑块机构进行运动学仿真。连杆长度:,连杆的转速:,设曲柄r2以匀速旋转,。初始条件:。仿真以为输入,计算和,仿真时间0.5s。、运动分析建立封闭矢量方程:r2+r3=r19将(9)式分解到x与y轴坐标上,得到:r2cos2+r3cos3=r1r2sin2+r3sin3=0(10)可得:r1=r2cos2+r3cos33=-arcsin(r2/r3)(11)对(10)式对时间求导得:-r22sin2+ r33sin3=v1r22cos2+ r33cos3=0(12)将上式用矩阵形式表示,令:A= r3sin3 1-r3cos3 0X
3、= 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-2021 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)%主要计算程序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(时间t/s) ylabel(连杆角速度3rad/s) axes(handles.axes2) %制表2plot(x11/1000,v3); xl
13、abel(时间t/s) ylabel(滑块速度v1m/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)% eventdata r
14、eserved - 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 setting all
15、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 on Window
16、s.% 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(确认退出?,退出信息窗口!,继续仿真!,退出仿真!,退出仿真!);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 structure
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 四年级下册期末作文预测《我学会了-》
- 2025中小企业网络和数据安全合规自查表
- 钢制压力管道防腐层厚度检测新技术
- Multisim在电力机车整流电路仿真中的应用研究
- 数字社区治理的韧性机制研究
- 皮革制造企业物流优化与供应链管理的实践应用探讨
- 史料叙事:酱园弄悬案传奇
- 优势区域土地管理改革策略与实施效果分析
- “她经济”现象的经济学解析
- 燃气工程造价培训课件
- 仪器报警分级管理制度
- 2025至2030国内灭火机器人行业市场发展深度分析及前景趋势与投资机会报告
- 2025年江西省中考历史试卷(含答案)
- 测量行业工作管理制度
- 2025至2030年中国瓦行业市场调研分析及发展规模预测报告
- 2025-2030年中国地理信息行业市场深度调研及前景趋势与投资研究报告
- BA系统对电气设备动力柜(箱)的自控接口要求
- 汕尾市市直单位招聘政府聘员笔试真题2024
- 辽宁省铁岭市铁岭县2023-2024学年七年级下学期7月期末考试地理试卷(含答案)
- 玻璃幕墙工程技术规范 JGJ 102-2003 知识培训
- 2024年04月高等教育自学考试《00067财务管理学》试题
评论
0/150
提交评论