Anda di halaman 1dari 4

close all;clear;clc;format long

%% SET NUMBER OF BODIES


numBodies = 8;

%% EXTRACT INFO:
DATA = csvread('RESULTS_1.csv');
mass = DATA(1,:); % [kg]
criterionALL = DATA(2,:); % [-]
criterionNOBC = DATA(3,:); % [-]
for i = 1:numBodies
ratio(i,:) = DATA(i+3,:); % [-]
thickness(i,:) = DATA(i+3+numBodies,:);
end
for i = 2:numBodies
thickness(i,:) = thickness(1,:).*thickness(i,:);
end
clear DATA
save('RESULTS_1.mat');

break
%BODIES CRITERION
for i = 3:3+N-1
S1_SDM(:,i-2) = M(:,i);
EPTO1_SDM(:,i-2) = M(:,i+N+1);
end
%S1 AND EPTO1 ALL AND NOBC
S1_ALL = M(:,30);
EPTO1_ALL = M(:,31);
S1_NOBC = M(:,32);
EPTO1_NOBC = M(:,33);
S1_SDM_NOBC = M(:,34);
EPTO1_SDM_NOBC = M(:,35);

%% Plots
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%figure('position',[300 300 800 720])
figure(1)
for i = 1:8
plot(t,S1_SDM(:,i),'-o','Linewidth',2); hold on
end
j=1:length(t); a(:,j) = 0.667;
plot(t,a,'r','Linewidth',2.5);
xlabel('Thickness [mm]','Fontsize',16);ylabel('\sigma_{UTS}/\sigma_{CALC} -1
[-]','Fontsize',16);
title('Non-linear Inconel 718 - Elastic Analysis','Fontsize',18);
legend({'BODY1','BODY2','BODY3','BODY4','BODY5','BODY6','BODY7',...
'BODY8','SDM'},'Orientation','vertical','Location',...
'eastoutside','Fontsize',16);
hold off
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure('position',[300 300 900 720])
%figure(2)
plot(t,S1_SDM_NOBC,'-o','Linewidth',2); hold on
plot(t,a,'r','Linewidth',2.5);
xlabel('Thickness [mm]','Fontsize',16);ylabel('\sigma_{UTS}/\sigma_{CALC} -1
[-]','Fontsize',16);
title('Non-linear Inconel 718 - Elastic Analysis','Fontsize',18);
legend({'NON B.C. INFLUENCE','SDM'},'Orientation','vertical',...
'Location','eastoutside','Fontsize',16);
hold off
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure('position',[300 300 900 720])
%figure(3)
for i = 1:8
plot(t,EPTO1_SDM(:,i),'-o','Linewidth',2); hold on
end
j=1:length(t); a(:,j) = 0.6667;
plot(t,a,'r','Linewidth',2.5);
xlabel('Thickness [mm]','Fontsize',16);ylabel('\epsilon_{UTS}/\epsilon_{CALC} -1
[-]','Fontsize',16);
title('Non-linear Inconel 718 - Elastic Analysis','Fontsize',18);
legend({'BODY1','BODY2','BODY3','BODY4','BODY5','BODY6','BODY7',...
'BODY8','SDM'},'Orientation','vertical','Location',...
'eastoutside','Fontsize',16);
hold off
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure('position',[300 300 900 720])
%figure(2)
plot(t,m_MANIFOLD,'-o','Linewidth',2); hold on
xlabel('Thickness [mm]','Fontsize',16);ylabel('Mass [kg]','Fontsize',16);
title('Non-linear Inconel 718','Fontsize',18);
hold off
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%{
subplot(1,2,2)
plot(t_L,SEQV_max,'-ro');hold on
plot(t_L,SEQV_MAXREGION,'bx','Markersize',8);hold on
plot(t_L,SEQV_INLET,'mx','Markersize',8);hold on
plot(t_L,S1_max,'-ko');hold on
plot(t_L,S1_MAXREGION,'g+','Markersize',8);hold on
plot(t_L,S1_INSIDE,'c+','Markersize',8);hold on
ylabel('Maximum Stress [MPa]'); xlabel('Thickness [mm]');...
title('Linear Inconel 718');hold off
legend({'VON MISES','VON MISES MAXREGION','VON MISES INLET','S1',...
'S1 MAXREGION','S1 INSIDE'},'Orientation','vertical','Location','southoutsid
e')
%This is VON MISES
%}

%{
subplot(2,3,2)
plot(t(2),NODE77781(2),'bo');hold on
plot(t(2),NODE77780(2),'k+');hold on
plot(t(2),NODE77690(2),'gx');hold on
plot(t(2),NODE77782(2),'rs');hold on
plot(t(2),NODE77857(2),'cd');hold on
plot(t(2),NODE77856(2),'mp');hold on
legend({'NODE77781','NODE77780','NODE77690','NODE77782','NODE77857',...
'NODE77856'},'Location','eastoutside','Orientation','vertical');
ylabel('Maximum Stress [MPa]'); xlabel('thickness [mm]');
title('4 mm'); hold off
subplot(2,3,3)
plot(t(3),NODE77781(3),'bo');hold on
plot(t(3),NODE77780(3),'k+');hold on
plot(t(3),NODE77690(3),'gx');hold on
plot(t(3),NODE77782(3),'rs');hold on
plot(t(3),NODE77857(3),'cd');hold on
plot(t(3),NODE77856(3),'mp');hold on
legend({'NODE77781','NODE77780','NODE77690','NODE77782','NODE77857',...
'NODE77856'},'Location','eastoutside','Orientation','vertical');
ylabel('Maximum Stress [MPa]'); xlabel('thickness [mm]');
title('5 mm'); hold off
subplot(2,3,4)
plot(t(4),NODE77781(4),'bo');hold on
plot(t(4),NODE77780(4),'k+');hold on
plot(t(4),NODE77690(4),'gx');hold on
plot(t(4),NODE77782(4),'rs');hold on
plot(t(4),NODE77857(4),'cd');hold on
plot(t(4),NODE77856(4),'mp');hold on
legend({'NODE77781','NODE77780','NODE77690','NODE77782','NODE77857',...
'NODE77856'},'Location','eastoutside','Orientation','vertical');
ylabel('Maximum Stress [MPa]'); xlabel('thickness [mm]');
title('6 mm'); hold off
subplot(2,3,5)
plot(t(5),NODE77781(5),'bo');hold on
plot(t(5),NODE77780(5),'k+');hold on
plot(t(5),NODE77690(5),'gx');hold on
plot(t(5),NODE77782(5),'rs');hold on
plot(t(5),NODE77857(5),'cd');hold on
plot(t(5),NODE77856(5),'mp');hold on
legend({'NODE77781','NODE77780','NODE77690','NODE77782','NODE77857',...
'NODE77856'},'Location','eastoutside','Orientation','vertical');
ylabel('Maximum Stress [MPa]'); xlabel('thickness [mm]');
title('7 mm'); hold off
subplot(2,3,6)
plot(t(6),NODE77781(6),'bo');hold on
plot(t(6),NODE77780(6),'k+');hold on
plot(t(6),NODE77690(6),'gx');hold on
plot(t(6),NODE77782(6),'rs');hold on
plot(t(6),NODE77857(6),'cd');hold on
plot(t(6),NODE77856(6),'mp');hold on
legend({'NODE77781','NODE77780','NODE77690','NODE77782','NODE77857',...
'NODE77856'},'Location','eastoutside','Orientation','vertical');
ylabel('Maximum Stress [MPa]'); xlabel('thickness [mm]');
title('8 mm'); hold off
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% CHECK MAXIMUM VALUES
A = [NODE77781';NODE77780';NODE77690';NODE77782';NODE77857';NODE77856'];
AMAX = max(A);
figure(2)
plot(t,MAXREGION,'-ro'); hold on
plot(t,AMAX,'--kx');hold on
legend({'MAXREGION','MAX NODES'},'Location','eastoutside','Orientation',...
'Vertical');
title('SMAX MAXREGION - MAX NODES');
xlabel('Thickness [mm]');
ylabel('Max Stress [MPa]');hold off
%}

Anda mungkin juga menyukai