CodeForge.comFree Open Source Codes Forge and Sharing |
function y = PlaneTrussAssemble(K,k,i,j)
%PlaneTrussAssemble This function assembles the element stiffness
% matrix k of the plane truss element with nodes
% i and j into the global stiffness matrix K.
% This function returns the global stiffness
% matrix K after the element stiffness matrix
% k is assembled.
K(2*i-1,2*i-1) = K(2*i-1,2*i-1) + k(1,1);
K(2*i-1,2*i) = K(2*i-1,2*i) + k(1,2);
K(2*i-1,2*j-1) = K(2*i-1,2*
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.