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

在这里插入图片描述

作者: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/

更多精彩文章请关注微信号:在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值