当前位置:网站首页>曲柄滑块机构运动分析和参数优化
曲柄滑块机构运动分析和参数优化
2022-08-01 05:25:00 【studyer_domi】
1、内容简介
略
465-可以交流、咨询、答疑
2、内容说明
略
数学公式参考了这个文档:曲柄滑块机构运动分析与力学计算 - 百度文库
3、仿真分析
clc
close all
clear
r = 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));
figure
plot(t,v)
xlabel t/s
ylabel 速度/m/s
% 为了计算最大值,由于fmincon是计算最小值,
% 故把数值转为负数,负数最小值求绝对值就是最大值
myfun = @(x)-100*x(1)*(0.5+sqrt(3)/4*x(1)/x(2));
x0 = [3,16]; % 初始值 r和l
A = [2.5 -1;1,-1;1 1]; % 不等式 r和l
b = [0;-10;20]; % A*x <= b
Aeq = [];
beq = []; % Aeq*x = b
lb = [0.5,2.5]; % r和l的下限值
ub = [10,25]; % r和l的上限值
options = optimset('Display','iter'); %显示每次迭代过程
[x, fval] = fmincon(myfun,x0,A,b,Aeq,beq,lb,ub,[],options) %调用最小值计算
% x就是优化的r和l fval就是计算的速度最大值
max_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));
figure
plot(t,v,t,v_opt)
xlabel t/s
ylabel 速度/m/s
title 优化对比
legend('优化前','优化后')
4、参考论文
略
边栏推荐
- (2022 Niu Ke Duo School IV) N-Particle Arts (Thinking)
- Selenium:操作JS
- Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)
- [MySQL] 多表查询
- NUMPY
- About making a progress bar for software initialization for Qt
- USB3.0:VL817Q7-C0的LAYOUT指南(二)
- AspNet.WebApi.Owin 自定义Token请求参数
- Selenium:元素判断
- 「游戏引擎 浅入浅出」4.1 Unity Shader和OpenGL Shader
猜你喜欢
数据湖:数据同步工具NiFi
Qt Widget project loading example of qml
Code Interview Guide for Programmers CD15 Generating an Array of Windowed Maximums
移动应用恶意攻击激增500% 三六零天御为APP免费构建安全屏障
DL-31/6电流继电器
Flip letters using string container
leetcode125 Verify palindrome string
USB3.0:VL817Q7-C0的LAYOUT指南(二)
Robot_Framework:关键字
「游戏引擎 浅入浅出」4.1 Unity Shader和OpenGL Shader
随机推荐
小白的0基础教程SQL: 关系数据库概述 02
A,H,K,N
混合型界面:对话式UI的未来
LeetCode 9. 回文数
(2022牛客多校四)H-Wall Builder II(思维)
可视化全链路日志追踪
说说js中使用for in遍历数组存在的bug
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)
Robot_Framework:断言
MySQL-Data Operation-Group Query-Join Query-Subquery-Pagination Query-Joint Query
MySQL-Data Definition Language-DDLdatebase define language
微信小程序用户登录auth.code2Session接口开发
uva12326
ApiFile
Selenium: Popup Handling
NDK does not contain any platforms problem solving
uva12326
Selenium: browser operation
Asynchronous reading and writing of files
Hunan institute of technology in 2022 ACM training sixth week antithesis