-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpredfigs.m
126 lines (114 loc) · 2.61 KB
/
predfigs.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
%% predictions on geometry model
%
% Intuitive visualization of the predictions on the expamined model to
% highlight the challenging areas, with respcet to coating properties that
% are examined.
%
% m-> cell array, containing the coordinates (360 X 3) of all the nodes in each of the sprayed passes, for all the sprayed passes
% np-> cell array (N x 1, N->number of sprayed passes) normalized predictions for each examined coating property for all the nodes, in all the sprayed passes.
% c-> vector(1-dimensional array) coeficients to be applied on the normalized predictions to yield actual predictions, essentially the maximum value of the
% experimental results for each examined coating property.
%
%___________________
%Author: Vasileios Katranidis, University of Surrey, UK 2017
%
%
%
function predfigs (m,np,c)
%Coating thickness
figure
for i=1:length(m)
title('Coating thickness prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,1)*c(1));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(um)');
hold on
end
%Microhardness
figure
for i=1:length(m)
title('Microhardness prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,2)*c(2));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(HV 0.3)');
hold on
end
%Porosity
figure
for i=1:length(m)
title('Porosity prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,3)*c(3));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(%)');
hold on
end
%Residual stresses
figure
for i=1:length(m)
title('Compressive residual stress intensity prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,4)*c(4));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(a.u.)');
hold on
end
%WC Vol%
figure
for i=1:length(m)
title('WC Vol.% prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,5)*c(5));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(%)');
hold on
end
%Co mean free path
figure
for i=1:length(m)
title('Binder mean free path prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,6)*c(6));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(nm)');
hold on
end
%O at.%
figure
for i=1:length(m)
title('O at.% prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,7)*c(7));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(at.%)');
hold on
end
%Specific wear rate
figure
for i=1:length(m)
title('Specific Wear rate prediction');
scatter3(m{i}(:,1),m{i}(:,2),m{i}(:,3),30,np{i}(:,8)*c(8));
xlabel('(mm)')
ylabel('(mm)')
zlabel('(mm)')
h=colorbar;
title(h,'(mm^3m^-^1N^-^1)');
hold on
end
end