大工至善|大学至真分享 http://blog.sciencenet.cn/u/lcj2212916

博文

[转载]【源码】Wankel旋转式内燃机壳体轮廓的MATLAB程序设计

已有 1313 次阅读 2019-5-1 13:18 |系统分类:科研笔记|文章来源:转载


作者:Sreetam Bhaduri


%% Wankel Engine Housing Profile

clear;

clc;

fprintf('It''s an no-parametric program. So please provide all the inputs in same system of measurement\n');

%% User Inputs

e=input('Please provide the eccentricity magnitude\n');

fprintf('K Factor=Radius of Rotor/Eccentricity\nIt''s value ranges in [0,4].\n');

k_factor=input('What''s the K Factor of the engine?\n');

%% Solver

theta=[0:pi/1000:2*pi/3];

R=e*k_factor;

if k_factor<=4

   for n=1:1:3

       x=(e*cos(3*theta))+(R*cos(theta+(2*n*pi/3)));

       y=(e*sin(3*theta))+(R*sin(theta+(2*n*pi/3)));

       %% Plotting parameters

       plot(x,y,'LineWidth',2);

       title('Wankel Engine Housing Profile');

       xlabel('X Axis');

       ylabel('Y Axis');

       hold on;

   end

else

   disp('Learn the basics for Wankel Engine, then try again.');

end

%% End of MATLAB Program


下载地址:

http://page2.dfpan.com/fs/elc5j2f21329216ec07/  


更多精彩文章请关注微信号:qrcode_for_gh_60b944f6c215_258.jpg



https://blog.sciencenet.cn/blog-69686-1176557.html

上一篇:[转载]【计算机科学】【2003】非完整车辆路径规划及其在辐射环境中的应用
下一篇:[转载]【新书推荐】【2020.01】初学者编程入门:学习计算机编程的简易方法
收藏 IP: 114.102.187.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-9-27 08:30

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部