Code covered by the BSD License  

Highlights from
Fuel Supply System Model in SimHydraulics

image thumbnail

Fuel Supply System Model in SimHydraulics

by

Steve Miller (view profile)

 

04 Jan 2013 (Updated )

Fuel supply system with tanks, fuel lines, pumps, control system, and MATLAB code to automate tests.

Run_FSys_Tests.m
% Copyright 2012 The MathWorks, Inc.

sgb_pth = [bdroot '/' sprintf('%s\n%s','Flight','Scenarios')];

for i=1:3
    signalbuilder(sgb_pth,'activegroup',i);
    sim(bdroot);
    FSys_DATA(i).time = FuelSys_Volume_DATA.time;
    FSys_DATA(i).values = FuelSys_Volume_DATA.signals(2).values;
end


colordef black;
figure(1);
clf;
set(gcf,'Position',[147 50 449 336]);
cg_1 = plot(FSys_DATA(1).time,FSys_DATA(1).values/100,'Color','r','LineWidth',3);
hold on
cg_2 = plot(FSys_DATA(2).time,FSys_DATA(2).values/100,'Color','g','LineWidth',3);
cg_3 = plot(FSys_DATA(3).time,FSys_DATA(3).values/100,'Color','c','LineWidth',3);
hold off

title_h = title('Fuel Management Tests','FontSize',14);
xlabel_h = xlabel('Time (s)','FontSize',12);
ylabel_h = ylabel('Distance from Plane CL ','FontSize',12);
grid on
set(gca,'Box','on');
legend({'Test 1','Test 2','Test 3'},'Location','Best');
%axis([time(1) time(end) 50 62]);

colordef white;

Contact us