ClearAll["Global`*"]
(*Data*)
L1 = 4;
L2 = 4;
Iyy1 = (0.1*0.1^4)/12;
Iyy2 = (0.1*0.1^4)/12;
A1 = 0.1*0.1;
A2 = 0.1*0.1;
ρ1 = 7850;
ρ2 = 7850;
Y1 = 2*10^11;
Y2 = 2*10^11;
b1 = Surd[(ρ1*A1*ω^2*L1^4)/(Y1*Iyy1), 4];
b2 = Surd[(ρ1*A2*ω^2*L2^4)/(Y2*Iyy2), 4];
λ1 = Sqrt[(A1*L1^2)/Iyy1];
λ2 = Sqrt[(A2*L2^2)/Iyy2];
v1 = FullSimplify[Surd[b1^4/λ1^2, 4]];
v2 = FullSimplify[Surd[b2^4/λ2^2, 4]];
(*Beam Functions*)
W1 = FullSimplify[
C1*Cos[b1*x1] + C2*Sin[b1*x1] + C3*Cosh[b1*x1] + C4*Sinh[b1*x1]];
W2 = FullSimplify[
C5*Cos[b2*x2] + C6*Sin[b2*x2] + C7*Cosh[b2*x2] + C8*Sinh[b2*x2]];
(*Bar function*)
U1 = FullSimplify[C9*Cos[v1*x1] + C10*Sin[v1*x1]];
U2 = FullSimplify[C11*Cos[v2*x2] + C12*Sin[v2*x2]];
(*Boundary condition*)
e1 = FullSimplify[W1 /. x1 -> 0];
e2 = FullSimplify[(D[W1, {x1, 1}]) /. x1 -> 0];
e3 = FullSimplify[U1 /. x1 -> 0];
e4 = FullSimplify[W2 /. x2 -> 0];
e5 = FullSimplify[(D[W2, {x2, 1}]) /. x2 -> 0];
e6 = FullSimplify[U2 /. x2 -> 0];
(*Compatability condition*)
(*Displacement contunity*)
e7 = FullSimplify[(W1 /. x1 -> L1) - (U2 /. x2 -> L2)];
e8 = FullSimplify[(W2 /. x2 -> L2) + (U1) /. x1 -> L1];
(*Slope Contunity*)
e9 = FullSimplify[((D[W1, {x1, 1}]) /.
x1 -> L1) - ((D[W2, {x2, 1}]) /. x2 -> L2)];
(*Moment Contunity*)
e10 = FullSimplify[((Y1*Iyy1)/L1*((D[W1, {x1, 2}]) /. x1 -> L1)) + ((
Y2*Iyy2)/L2*((D[W2, {x2, 2}]) /. x2 -> L2))];
(*Force Contuinity*)
e11 = FullSimplify[((Y1*Iyy1)/
L1^2*((D[W1, {x1, 3}]) /. x1 -> L1)) - (Y2*
A2 ((D[U2, {x2, 1}]) /. x2 -> L2))];
e12 = FullSimplify[((Y2*Iyy2)/
L2^2*((D[W2, {x2, 3}]) /. x2 -> L2)) + (Y1*
A1 ((D[U1, {x1, 1}]) /. x1 -> L1))];
(*Solving*)
R = FullSimplify[
Normal@CoefficientArrays[{e1, e2, e3, e4, e5, e6, e7, e8, e9, e10,
e11, e12}, {C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11,
C12}][[2]]];
R1 = MatrixForm[R];
MatrixRank[R];
P = FullSimplify[Det[R]]
Plot[P, {ω, 0, 500}]
s1 = NSolve[P == 0 && 0 < ω < 500]
s2 = Flatten[ω /. s1];
s3 = s2[[i]];
fn = s3/(2*π)
I have a 12 homogenous equation. I have written these equations in MatrixForm
. And I have taken the Det
of that matrix R
which happened to be the function of Omega
, I tried to plot that function but I am getting the following error Integer expected at position 2
. So tried the Following
1. Used 'FullSimplify'
2.Expand
3.TrigReduce
4.TrigExpand
But still, I could not able to solve the issue. I guess maybe I have used Surd
which leads to the fourth root in the determinant function. How to overcome this error. This error is stopping me from solving for the roots of determinant function