sử dụng matlap tính sức kéo và dưng đồ thị đạc tính của động cơ

17 281 0
sử dụng matlap tính sức kéo và dưng đồ thị đạc tính của động cơ

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Tính đặc tính của động cơ L Hùng Cờng - ôtô 42 function tinhskeo() global b2 b3 b4 b5 b6 b7 b8 b11 b10 h0 = figure('Color',[0.8 0.8 0.8], 'MenuBar','none', 'PaperPosition',[18 180 576 432], 'PaperUnits','points', 'Position',[1 1 798 581], 'Tag','Fig1', 'numbertitle','off', 'resize','off', 'name','Đồ án Tốt Nghiệp - Lu Hùng Cờng Ôtô K42', 'ToolBar','none'); h1 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[440 125 155 300], 'Style','frame', 'Tag','Frame1'); t1 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 390 50 25], 'String','Loại xe ', 'Style','text', 'Tag','StaticText1'); p1 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'Position',[500 390 90 25], 'String',['Du lịch vỏ kín';'Du lịch vỏ hỏ ';'Xe tải(4x2) ';'Xe tải(4x4) ';'Xe khách '], 'Style','popupmenu', 'Tag','lxe', 'Value',4); t2 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 240 50 25], 'String','Loại động cơ', 'Style','text', 'Tag','StaticText2'); p2 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'Position',[500 240 90 25], 'String',['Xăng có hạn chế ';'Xăng không hạn chế ';'Diesel cháy trực tiếp';'Diesel cháy dự bị ';'Diesel cháy xoáy lốc '], 'Style','popupmenu', 'Tag','ldc', 'Value',5); t3 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 365 50 25], 'String','Tổng trọng lợng', 'Style','text', 'Tag','StaticText3'); e3 = uicontrol('Parent',h0, 'Units','points', 'callback','tinhskeo1(''11'')', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'Position',[500 375 90 15], 'Style','edit', 'Tag','txtG'); t4 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 340 50 25], 'String','Träng lîng b¸m', 'Style','text', 'Tag','StaticText3'); e4 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'callback','tinhskeo1(''11'')', 'Position',[500 350 90 15], 'Style','edit', 'Tag','txtG2'); t5 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 315 50 25], 'String','HÒ sè c¶n l¨n', 'Style','text', 'Tag','StaticText3'); e5 = uicontrol('Parent',h0, 'Units','points', 'callback','tinhskeo1(''11'')', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'Position',[500 325 90 15], 'Style','edit', 'Tag','txtf'); t6 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 290 50 25], 'String','Gãc dèc Max', 'Style','text', 'Tag','StaticText4'); e6 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'callback','tinhskeo1(''11'')', 'ListboxTop',0, 'Position',[500 300 90 15], 'Style','edit', 'Tag','txtgoc'); t7 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 265 50 25], 'String','VËn tèc Max', 'Style','text', 'Tag','StaticText3'); e7 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'callback','tinhskeo1(''11'')', 'ListboxTop',0, 'Position',[500 275 90 15], 'Style','edit', 'Tag','txtvmax'); t8 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 215 50 25], 'String','Sè vßng quay nv', 'Style','text', 'Tag','StaticText3'); e8 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'callback','tinhskeo1(''11'')', 'ListboxTop',0, 'Position',[500 225 90 15], 'Style','edit', 'Tag','txtnv'); t9 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 190 50 25], 'String','Sè cÊp sè', 'Style','text', 'Tag','StaticText3'); e9 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'Position',[500 200 90 15], 'callback','tinhskeo1(''11'')', 'Style','edit', 'Tag','txtn'); t10 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 165 50 25], 'String','TØ sè truyÒn cao nhÊt', 'Style','text', 'Tag','StaticText3'); e10 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'Position',[500 175 90 15], 'callback','tinhskeo1(''11'')', 'Style','edit', 'Tag','txtin'); t11 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[445 140 50 25], 'String','Cì lèp rb(m)', 'Style','text', 'Tag','StaticText3'); e11 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[1 1 1], 'ListboxTop',0, 'Position',[500 150 90 15], 'callback','tinhskeo1(''11'')', 'Style','edit', 'Tag','txtrb'); h1 = uicontrol('Parent',h0, 'Units','points', 'BackgroundColor',[0 1 0], 'ListboxTop',0, 'Position',[440 5 155 115], 'Style','frame', 'Tag','Frame2'); b1 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''1'')', 'ListboxTop',0, 'Position',[475 130 30 15], 'String','OK', 'Tag','Pushbutton1'); b2 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''2'')', 'ListboxTop',0, 'Position',[455 95 60 20], 'String','§Æc tÝnh ngoµi', 'enable','off', 'Tag','PshNe'); b3 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''3'')', 'ListboxTop',0, 'Position',[455 70 60 20], 'enable','off', 'String','C«ng suÊt', 'Tag','PshNk'); b4 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''4'')', 'enable','off', 'ListboxTop',0, 'Position',[455 45 60 20], 'String','Lùc kÐo', 'Tag','PshPk'); b5 = uicontrol('Parent',h0, 'Units','points', 'enable','off', 'Callback','tinhskeo1(''5'')', 'ListboxTop',0, 'Position',[455 20 60 20], 'String','§éng häc', 'Tag','PshD'); b6 = uicontrol('Parent',h0, 'enable','off', 'Units','points', 'Callback','tinhskeo1(''6'')', 'ListboxTop',0, 'Position',[525 95 60 20], 'String','Gia tèc', 'Tag','Pshj'); b7 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''7'')', 'enable','off', 'ListboxTop',0, 'Position',[525 70 60 20], 'String','Thêi gian', 'Tag','Psht'); b8 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''8'')', 'enable','off', 'ListboxTop',0, 'Position',[525 45 60 20], 'String','Qu·ng ®êng', 'Tag','Pshs'); b9 = uicontrol('Parent',h0, 'Units','points', 'Callback','close(gcf)', 'ListboxTop',0, 'Position',[555 18 30 15], 'String','Exit', 'Tag','Pushbutton2'); b10 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''10'')', 'ListboxTop',0, 'Position',[555 130 30 15], 'String','Help', 'Tag','Pushbutton3'); b11 = uicontrol('Parent',h0, 'Units','points', 'Callback','tinhskeo1(''9'')', 'ListboxTop',0, 'enable','off', 'Position',[515 130 30 15], 'String','Cancel', 'Tag','Pushbutton4'); a1 = axes('Parent',h0, 'Units','pixels', 'Box','on', 'CameraUpVector',[0 1 0], 'Color',[1 1 1], 'Position',[51 61 526 505], 'Tag','Axes1', 'XColor',[0 0 0], 'YColor',[0 0 0], 'ZColor',[0 0 0]); TÝnh ®êng ®Æc tÝnh cña ®éng c¬ function tinhskeo1(x) format short; switch x case '1' tinhtoan; case '2' dactinh; case '3' congsuat; case '4' luckeo; case '5' donghoc; case '6' giatoc; case '7' thoigian; case '8' quangduong; case '9' xoadl; case '10' help1; case '11' can1; end function can1 global b11 set(b11,'enable','on'); function xoadl set(findobj(gcf,'tag','txtG'),'string',''); set(findobj(gcf,'tag','txtf'),'string',''); set(findobj(gcf,'tag','txtgoc'),'string',''); set(findobj(gcf,'tag','txtvmax'),'string',''); set(findobj(gcf,'tag','txtnv'),'string',''); set(findobj(gcf,'tag','txtrb'),'string',''); set(findobj(gcf,'tag','txtn'),'string',''); set(findobj(gcf,'tag','txtin'),'string',''); set(findobj(gcf,'tag','txtG2'),'string',''); return; function help1 msgbox('Xin liªn hÖ víi t¸c gi¶ ®Ó cã phiªn b¶n hoµn thiÖn','Notice','warn'); return; function tinhtoan global ne Ne Me Nk Pk D giatoc t1 v v1 s1 global G f F k n global b2 b3 b4 b5 b6 b7 b8 %nhËp d÷ liÖu G=str2num(get(findobj(gcf,'tag','txtG'),'string')); f=str2num(get(findobj(gcf,'tag','txtf'),'string')); goc=str2num(get(findobj(gcf,'tag','txtgoc'),'string ')); vmax=str2num(get(findobj(gcf,'tag','txtvmax'),'stri ng')); nv=str2num(get(findobj(gcf,'tag','txtnv'),'string') ); rb=str2num(get(findobj(gcf,'tag','txtrb'),'string') ); n=str2num(get(findobj(gcf,'tag','txtn'),'string')); in=str2num(get(findobj(gcf,'tag','txtin'),'string') ); G2=str2num(get(findobj(gcf,'tag','txtG2'),'string') ); lxe=(get(findobj(gcf,'tag','lxe'),'value')); ldc=(get(findobj(gcf,'tag','ldc'),'value')); %KiÓm tra d÷ liÖu [...]... a=1;b=1;c=1; end; if ldc==2 ne1=.9; a=1;b=1;c=1; end; if ldc==3 ne1=1; a=.5;b=1.5;c=1; end; if ldc==5 ne1=1; a=.7;b=1.3;c=1; end; if ldc==4 ne1=1; a=.6;b=1.4;c=1; end; %hằng số fi=.7; si=f+goc; g=10; %tính toán if hf==1 msgbox('Xin liên hệ với tác giả để có phiên bản hoàn thiện','Notice','warn'); return; end; %tinh dach tinh ngoai cua dong co Nv=(G*f*vmax/270+k*F*vmax^3/3500)/nt; Nemax=Nv/(a*ne1+b*ne1^2-c*ne1^3); . Tính đặc tính của động cơ L Hùng Cờng - ôtô 42 function tinhskeo() global b2 b3 b4 b5 b6 b7 b8 b11 b10 h0 =. 'ListboxTop',0, 'Position',[445 240 50 25], 'String','Loại động cơ& apos;, 'Style','text', 'Tag','StaticText2'); p2. 'numbertitle','off', 'resize','off', 'name',&apos ;Đồ án Tốt Nghiệp - Lu Hùng Cờng Ôtô K42', 'ToolBar','none'); h1 = uicontrol('Parent',h0,

Ngày đăng: 31/10/2014, 17:53

Tài liệu cùng người dùng

Tài liệu liên quan