I am trying to find the stiffness matrix of a bilinear rectangular element, so I need to multiply three matrices together in Mathematica. Multiplying three at once didn’t seem to work, so then I decided to multiply the first two matrices, and then that result by the third matrix. That doesn’t seem to be working, either. It seems that Mathematica is not seeing my [T] matrix as a matrix, but rather just a variable - even after I defined [T] above. Attached is what I’ve entered.
Any help is greatly appreciated!
Clear [x, y]
Clear [B]
B = ( {
{(y - 10)/100, 0, (10 - y)/100, 0, y/100, 0, -y/100, 0},
{0, (x - 10)/100, 0, -x/100, 0, x/100, 0, (10 - x)/100},
{(x - 10)/100, (y - 10)/100, -x/100, (10 - y)/100, x/100,
y/100, (10 - x)/100, -y/100}
});
Clear [M]
M = ({
{10666.67, 2666.67, 0},
{2666.67, 10666.67, 0},
{0, 0, 4000}
});
Clear [Q]
Q = Transpose[B].M.B // MatrixForm
Integrate[Q, {x, 0, 10}, {y, 0, 10}]