-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYoungs.m
58 lines (44 loc) · 1.19 KB
/
Youngs.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
% Laser area (A_las)
laser_area = LaserArea();
Young = zeros(2, length(tracks));
for i = 1:length(tracks)
track = tracks(i);
if isinf(track.speed)
continue;
elseif isempty(track.speed)
continue;
end
%% Area
% Cell area (A_cell)
temp = max(track.diameterY);
y_max = double(temp(1)) / 2;
i_y_max = track.maxChangeIdY;
x_max = double(track.diameterX(i_y_max)) / 2;
cell_area = double(pi * y_max * x_max);
% Final area (A)
area = double(cell_area - laser_area);
%% Force
% Viscosity
viscosity = double(1);
% Radius
radius = double((y_max + x_max) / 2);
% Velocity 5ul/hr - convert to m^3/s
velocity = double(5);
% Force = 6*pi*viscosity*radius*velocity
force = double(6*pi*viscosity*radius*velocity);
numer = force / area;
%% Change in radius
y_0 = double(track.diameterY(1)) / 2;
delta_y = y_max - y_0;
x_0 = double(track.diameterX(1)) / 2;
delta_x = x_max - x_0;
denom = delta_y / y_0;
if denom <= 0 || numer <= 0
continue
end
%% Young's Modulus
E = numer / denom;
track.Youngs = E;
Young(:, i) = [track.id; E];
end
Young = Young(:, any(Young))';