当前位置:网站首页>Motion analysis and parameter optimization of crank-slider mechanism
Motion analysis and parameter optimization of crank-slider mechanism
2022-08-01 05:33:00 【student_domi】
1. Introduction
Slightly
465-can communicate, consult, answer questions
2. Description of content
Slightly
The mathematical formula refers to this document: Crank SliderKinematic Analysis and Mechanical Calculation of Block Mechanism--Baidu Library
3. Simulation analysis
clcclose allclearr = 3;l = 16;lameda = r/l;w = 100;t = 0:0.001:1;v = w*r*(sin(w*t)+0.5*lameda*sin(2*w*t));figureplot(t,v)xlabel t/sylabel speed/m/s% In order to calculate the maximum value, since fmincon calculates the minimum value,% Therefore, the value is converted to a negative number, and the absolute value of the minimum value of the negative number is the maximum valuemyfun = @(x)-100*x(1)*(0.5+sqrt(3)/4*x(1)/x(2));x0 = [3,16]; % initial value r and lA = [2.5 -1;1,-1;1 1]; % inequalities r and lb = [0;-10;20]; % A*x <= bAeq = [];beq = []; % Aeq*x = blb = [0.5,2.5]; % lower limit of r and lub = [10,25]; % upper limit of r and loptions = optimset('Display','iter'); % Display each iteration process[x, fval] = fmincon(myfun,x0,A,b,Aeq,beq,lb,ub,[],options) % call the minimum value calculation% x is the optimized r and l fval is the maximum speed of the calculationmax_v = abs(fval)r_opt = x(1);l_opt = x(2);lameda_opt = r_opt/l_opt;v_opt = w*r_opt*(sin(w*t)+0.5*lameda_opt*sin(2*w*t));figureplot(t,v,t,v_opt)xlabel t/sylabel speed/m/stitle optimization comparisonlegend('before optimization', 'after optimization')
4. Reference papers
Slightly
边栏推荐
猜你喜欢
随机推荐
pytroch、tensorflow对比学习—专栏介绍
Selenium: mouse, keyboard events
基于MATLAB的BP神经网络进行语音特征信号分类
2022年超全的Android面经(附含面试题|进阶资料)
小白的0基础教程SQL: 安装MYSQL 03
NUMPY
Selenium: Manipulating Cookies
USB3.0:VL817Q7-C0的LAYOUT指南(二)
(2022 Nioke Duo School IV) H-Wall Builder II (Thinking)
uva10825
图片更新之后Glide加载依旧是原来的图片问题
NUMPY
uva12326
声音信号处理基频检测和时频分析
【MySQL必知必会】 表的优化 | 充分利用系统资源
Selenium:元素判断
Selenium: upload and download files
matlab simulink 粒子群优化模糊pid控制的电机泵
中国的机器人增长
4D line-by-line analysis and implementation of Transformer, and German translation into English (3)