Hi, i have developed a FEM program for MATLAB, but i keep getting twisted mode shapes, starting from mode one. i suspect i could be the K-matrix, but i cant find the mistake. Hope someone has had a similar problem and might now the answer.
I have added the MATLAB-code for the Hexahedron solid-8 element, where figure two depicts the incorrect mode shape.
in the main script: ''Beam_Hexahedron_element_experiment_ny'', line 190 , the code-piece where i select which mode shape to plot: U1(Fdof)=V1(:,1); , here V1 is the matrix containing the sorted mode shapes.