forked from wjbg/m.CLT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththermal_force.m
More file actions
21 lines (21 loc) · 778 Bytes
/
thermal_force.m
File metadata and controls
21 lines (21 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function NM = thermal_force(C_r, alpha_r, z, deltaT)
% thermal_force Returns fictive thermal forces and moments.
%
% Arguments:
% C_r : Cell array of length n with stiffness matrices in ply CS.
% alpha_r : Cell array of length n with CTE vectors in ply CS.
% z : Array of length n+1 with the ply edge locations.
% deltaT : Temperature difference.
%
% Returns:
% NM : Array with fictive in-plane loads (1:3) and moments (4:6).
N = zeros(3,1);
M = zeros(3,1);
if length(z) - 1 == length(C_r)
for i=1:length(C_r)
N = N + deltaT * C_r{i} * alpha_r{i} * (z(i+1) - z(i));
M = M + 0.5*deltaT * C_r{i} * alpha_r{i} * (z(i+1)^2 - z(i)^2);
end
end
NM = [N;M];
end