-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathC.m
25 lines (20 loc) · 813 Bytes
/
C.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
classdef C<Matrix_Local
%Tensor containing the elastic constants of every element
% Detailed explanation goes here
properties
end
methods
function obj = C(nstre,nelem)
material = Material();
epoiss = (material.kappa - material.mu)./(material.kappa + material.mu);
eyoung = 4*material.kappa.*material.mu./(material.kappa + material.mu);
obj.value = zeros(nstre,nstre,nelem);
c1 = eyoung./(1-epoiss.^2);
obj.value(1,1,:) = c1;
obj.value(1,2,:) = c1.*epoiss;
obj.value(2,1,:) = c1.*epoiss;
obj.value(2,2,:) = c1;
obj.value(3,3,:) = c1*0.5.*(1-epoiss);
end
end
end