-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathResult1_SimplySupported_AntiSymmetric_CrossPly.m
151 lines (119 loc) · 5.17 KB
/
Result1_SimplySupported_AntiSymmetric_CrossPly.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
clc;
clear all;
close all;
format shortG;
folder = 'plots';
if(~exist(folder,'dir'))
mkdir(folder);
end
%%
% import PubPlotLib.*
% Aspect Ratio
Lx = 300; % Length of the plate (along X-axes)
h = 3; % Total thickness i.e. height : plate thickness
[ar_N,ar_D] = rat(h/Lx);
file = sprintf('IGA_Tran_Nonlinear_Bending_AntiSymmetric_CrossPly_h_By_a_%d_%d',ar_N,ar_D);
figure;
fig_size = get(0,'screensize');
fig_size(3) = fig_size(3)/1;
set(gcf,'Position',fig_size);
set(gcf,'PaperPositionMode','auto');
set(gcf,'name',file,'numbertitle','off');
hold on;
Colors = [
0.16, 0.44, 1.00;
0.93, 0.00, 0.00;
0.00, 0.57, 0.00;
0.17, 0.17, 0.17;
0.44, 0.00, 0.99;
1.00, 0.50, 0.10;
0.75, 0.00, 0.75;
0.50, 0.50, 0.50;
0.50, 0.57, 0.00;
0.00, 0.00, 0.00;
];
% temp = csvread(fullfile(pwd,'plots','Problem1_Exact.csv'));
% % h1 = scatter(temp(:,1),temp(:,2),350,[0 0.5 0.5],'o');
% h1 = plot(temp(:,1),temp(:,2),':o','LineWidth',8,'Color',Colors(6,:));
% set(h1,'MarkerFaceColor',Colors(6,:),'MarkerSIze',15);
%
% temp = csvread(fullfile(pwd,'plots','Problem1_TSDT.csv'));
% h2 = scatter(temp(:,1),temp(:,2),350,[0 0.5 0.5],'s');
% set(h2,'MarkerFaceColor',Colors(7,:));
% temp = csvread(fullfile(pwd,'plots','Problem1.csv'));
% h4 = plot(temp(:,1),temp(:,2),'--','linewidth',9,'Color',Colors(2,:),...
% 'MarkerSize',20);
load(fullfile(pwd,'plots','IGA_TSDT_Nonlinear_AntiSymmetricCrossPly_N_1__h_By_a_1_10.mat'));
plot(Data(:,1),Data(:,2),'-','linewidth',9,'Color',Colors(6,:));
load(fullfile(pwd,'plots','IGA_TSDT_Nonlinear_AntiSymmetricCrossPly_N_2__h_By_a_1_10.mat'));
plot(Data(:,1),Data(:,2),'-','linewidth',9,'Color',Colors(6,:));
load(fullfile(pwd,'plots','IGA_TSDT_Nonlinear_AntiSymmetricCrossPly_N_3__h_By_a_1_10.mat'));
plot(Data(:,1),Data(:,2),'-','linewidth',9,'Color',Colors(6,:));
load(fullfile(pwd,'plots','IGA_TSDT_Nonlinear_AntiSymmetricCrossPly_N_4__h_By_a_1_10.mat'));
plot(Data(:,1),Data(:,2),'-','linewidth',9,'Color',Colors(6,:));
load(fullfile(pwd,'plots','IGA_TSDT_Nonlinear_AntiSymmetricCrossPly_N_5__h_By_a_1_10.mat'));
h6 = plot(Data(:,1),Data(:,2),'-','linewidth',9,'Color',Colors(6,:));
load(fullfile(pwd,'plots','IGA_Tran_Nonlinear_AntiSymmetricCrossPly_N_1__h_By_a_1_10.mat'));
h1 = plot(Data(:,1),Data(:,2),':.','linewidth',9,'Color',Colors(1,:));
load(fullfile(pwd,'plots','IGA_Tran_Nonlinear_AntiSymmetricCrossPly_N_2__h_By_a_1_10.mat'));
h2 = plot(Data(:,1),Data(:,2),':s','linewidth',9,'Color',Colors(2,:));
load(fullfile(pwd,'plots','IGA_Tran_Nonlinear_AntiSymmetricCrossPly_N_3__h_By_a_1_10.mat'));
h3 = plot(Data(:,1),Data(:,2),':p','linewidth',9,'Color',Colors(3,:));
load(fullfile(pwd,'plots','IGA_Tran_Nonlinear_AntiSymmetricCrossPly_N_4__h_By_a_1_10.mat'));
h4 = plot(Data(:,1),Data(:,2),':^','linewidth',9,'Color',Colors(4,:));
load(fullfile(pwd,'plots','IGA_Tran_Nonlinear_AntiSymmetricCrossPly_N_5__h_By_a_1_10.mat'));
h5 = plot(Data(:,1),Data(:,2),':','linewidth',9,'Color',Colors(5,:));
legendID = [h1(1),h2(1),h3(1),h4(1),h5(1)];
legendString = {sprintf('N=1'),sprintf('N=2'),sprintf('N=3'),sprintf('N=4'),sprintf('N=5')};
[h_legend,icons,plots,legend_text] = legend(legendID,legendString,'location','northwest');
set(h_legend,'FontSize',40);
icons(1).FontSize = 20;
icons(2).FontSize = 20;
icons(3).FontSize = 20;
icons(4).FontSize = 20;
icons(5).FontSize = 20;
% icons(end-4).Children.MarkerSize = 20;
% icons(end-6).Children.MarkerSize = 20;
axis on;
% grid on;
box on;
% set( gca , ...
% 'Units' , 'normalized',...
% 'FontName' , 'Arial', ...
% 'FontSize' , 20,...
% 'Box' , 'on' , ...
% 'Color' , 'none',...
% 'TickLength' , [0.02,0.02] , ...
% 'XMinorTick' , 'on', ...
% 'YMinorTick' , 'on', ...
% 'ZMinorTick' , 'on', ...
% 'XMinorGrid' , 'off', ...
% 'YMinorGrid' , 'off', ...
% 'ZMinorGrid' , 'off', ...
% 'XColor' , [0,0,0], ...
% 'YColor' , [0,0,0], ...
% 'ZColor' , [0,0,0], ...
% 'LineWidth' , 1.5);
set(gca,'YTick',[0, 0.5,1,1.5,2]);
set(gca,'XTick',[0,100,200,300]);
set(gca,'YLim',[0,2]);
set(gca,'XLim',[0,300]);
set(gca,'lineWidth',1.5);
% set(gca,'FontSize',25,'FontWeight','bold','FontName','Helvetica');
set(gca,'FontSize',50,'FontWeight','normal','FontName','Arial');
xlabel('\bf Load $\bf( \bar{P} )$',...
'Interpreter', 'Latex','FontName','Arial',...
'FontWeight','bold','FontSize',50);
ylabel('\bf Central Deflection $\bf( \bar{w} )$',...
'Interpreter', 'Latex','FontName','Arial',...
'FontWeight','bold','FontSize',50);
drawnow;
set(gca,'Position',get(gca, 'OuterPosition') - get(gca, 'TightInset')*...
[-1 0 1 0;0 -1 0 1; 0 0 1 0; 0 0 0 1]);
set(gca, 'Position', [0.30 0.20 0.50 0.75]);
% set(gcf,'renderer','opengl');
set(gcf,'renderer','painters');
% set(gcf,'PaperOrientation','portrait');
% break;
print(fullfile(pwd,'plots',get(gcf,'Name')), '-depsc2', '-r1200');
print(fullfile(pwd,'plots',get(gcf,'Name')), '-dpng', '-r100');