-
Notifications
You must be signed in to change notification settings - Fork 6
/
dR_dxi.m
executable file
·53 lines (51 loc) · 2.31 KB
/
dR_dxi.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
function dR_dxi = dR_dxi(in1,in2)
%DR_DXI
% DR_DXI = DR_DXI(IN1,IN2)
% This function was generated by the Symbolic Math Toolbox version 8.2.
% 26-Sep-2018 16:40:14
u1 = in2(1,:);
u2 = in2(2,:);
u3 = in2(3,:);
xi1 = in1(1,:);
xi2 = in1(2,:);
xi3 = in1(3,:);
t2 = xi2.^2;
t3 = xi3.^2;
t4 = xi1.^2;
t5 = t2+t3+t4;
t6 = sqrt(t5);
t7 = t2+t3;
t8 = cos(t6);
t9 = t8-1.0;
t10 = 1.0./t5;
t11 = sin(t6);
t12 = 1.0./t5.^(3.0./2.0);
t13 = 1.0./t5.^2;
t14 = t11.*t12.*xi2.*xi3;
t15 = 1.0./sqrt(t5);
t16 = t11.*t15;
t17 = t9.*t13.*xi1.*xi2.*xi3.*2.0;
t18 = t11.*t12.*xi1.*xi2.*xi3;
t19 = t3+t4;
t20 = t11.*t12.*xi1.*xi3;
t21 = t4.*t11.*t12.*xi2;
t22 = t4.*t9.*t13.*xi2.*2.0;
t23 = t8.*t10.*xi2.*xi3;
t24 = t2.*t11.*t12.*xi1;
t25 = t2.*t9.*t13.*xi1.*2.0;
t26 = t8.*t10.*xi1.*xi2;
t27 = t8.*t10.*xi1.*xi3;
t28 = t3.*t11.*t12;
t29 = t2+t4;
t30 = t11.*t12.*xi1.*xi2;
t31 = t4.*t11.*t12.*xi3;
t32 = t4.*t9.*t13.*xi3.*2.0;
t33 = t4.*t11.*t12;
t34 = t2.*t11.*t12.*xi3;
t35 = t2.*t9.*t13.*xi3.*2.0;
t36 = t2.*t8.*t10;
t37 = t3.*t11.*t12.*xi1;
t38 = t3.*t9.*t13.*xi1.*2.0;
t39 = t3.*t11.*t12.*xi2;
t40 = t3.*t9.*t13.*xi2.*2.0;
dR_dxi = reshape([u2.*(t20+t21+t22-t9.*t10.*xi2-t8.*t10.*xi1.*xi3)+u3.*(t26+t31+t32-t9.*t10.*xi3-t11.*t12.*xi1.*xi2)-u1.*(t7.*t9.*t13.*xi1.*2.0+t7.*t11.*t12.*xi1),u3.*(-t16+t17+t18+t33-t4.*t8.*t10)+u1.*(-t20+t21+t22+t27-t9.*t10.*xi2)-u2.*(t9.*t10.*xi1.*-2.0+t9.*t13.*t19.*xi1.*2.0+t11.*t12.*t19.*xi1),u2.*(t16+t17+t18-t33+t4.*t8.*t10)+u1.*(-t26+t30+t31+t32-t9.*t10.*xi3)-u3.*(t9.*t10.*xi1.*-2.0+t9.*t13.*t29.*xi1.*2.0+t11.*t12.*t29.*xi1),-u1.*(t9.*t10.*xi2.*-2.0+t7.*t9.*t13.*xi2.*2.0+t7.*t11.*t12.*xi2)+u2.*(t14+t24+t25-t9.*t10.*xi1-t8.*t10.*xi2.*xi3)+u3.*(t16+t17+t18+t36-t2.*t11.*t12),u1.*(-t14+t23+t24+t25-t9.*t10.*xi1)+u3.*(-t26+t30+t34+t35-t9.*t10.*xi3)-u2.*(t9.*t13.*t19.*xi2.*2.0+t11.*t12.*t19.*xi2),u2.*(t26-t30+t34+t35-t9.*t10.*xi3)-u3.*(t9.*t10.*xi2.*-2.0+t9.*t13.*t29.*xi2.*2.0+t11.*t12.*t29.*xi2)+u1.*(-t16+t17+t18-t36+t2.*t11.*t12),u2.*(-t16+t17+t18+t28-t3.*t8.*t10)+u3.*(-t14+t23+t37+t38-t9.*t10.*xi1)-u1.*(t9.*t10.*xi3.*-2.0+t7.*t9.*t13.*xi3.*2.0+t7.*t11.*t12.*xi3),u1.*(t16+t17+t18-t28+t3.*t8.*t10)+u3.*(t20-t27+t39+t40-t9.*t10.*xi2)-u2.*(t9.*t10.*xi3.*-2.0+t9.*t13.*t19.*xi3.*2.0+t11.*t12.*t19.*xi3),u1.*(t14-t23+t37+t38-t9.*t10.*xi1)+u2.*(-t20+t27+t39+t40-t9.*t10.*xi2)-u3.*(t9.*t13.*t29.*xi3.*2.0+t11.*t12.*t29.*xi3)],[3,3]);