Direct stiffness method
As one of the methods of structural analysis, the direct stiffness method, also known as the matrix stiffness method, is particularly suited for computer-automated analysis of complex structures including the statically indeterminate type. It is a "matrix" method that makes use of the members' stiffness relations for computing member forces and displacements in structures. The direct stiffness method is the most common implementation of the finite element method (FEM). In applying the method, the system must be modeled as a set of simpler, idealized elements interconnected at the nodes. The material stiffness properties of these elements  are then, through matrix mathematics, compiled into a single matrix equation which governs the behaviour of the entire idealized structure. The structure’s unknown displacements and forces can then be determined by solving this equation. The direct stiffness method forms the basis for most commercial and free source finite element software. The direct stiffness method originated in the field of aerospace. Researchers looked at various approaches for analysis of complex airplane frames. These included elasticity theory, energy principles in structural mechanics, flexibility method and matrix stiffness method. It was through analysis of these methods that the direct stiffness method emerged  as an efficient method ideally suited for computer implementation. History. Between 1934 and 1938 A. R. Collar and W. J. Duncan published the first papers with the representation and terminology for matrix systems that are used today. Aeroelastic research continued through World War II but publication restrictions from 1938 to 1947 make this work difficult to trace. The second major breakthrough in matrix structural analysis occurred through 1954 and 1955 when professor John H. Argyris systemized the concept of assembling elemental components of a structure into a system of equations. Finally, on Nov. 6 1959, M. J. Turner, head of  Boeing’s Structural Dynamics Unit, published a paper outlining the direct stiffness method as an efficient model for computer implementation . Member stiffness relations. A typical member stiffness relation has the following general form: where If formula_3 are member deformations rather than absolute displacements, then formula_1 are independent member forces, and in such case (1) can be inverted to yield the so-called "member flexibility matrix", which is used in the flexibility method. System stiffness relation. For a system with many members interconnected at points called nodes, the members' stiffness relations such as Eq.(1) can be integrated by making use of  the following observations: where Solution. The system stiffness matrix K is square since the vectors R and r have the same size. In addition, it is symmetric because formula_2 is symmetric. Once the supports' constraints are accounted for in (2), the nodal displacements are found by solving the system of linear equations (2), symbolically: Subsequently, the members' characteristic forces may be found from Eq.(1) where formula_3 can be found from r by compatibility consideration. The direct stiffness method. It is common to have Eq.(1) in a form where formula_3 and formula_4 are, respectively, the member-end displacements and forces matching  in direction with r and R. In such case, formula_11 and formula_14 can be obtained by direct summation of the members' matrices formula_2 and formula_4. The method is then known as the direct stiffness method. The advantages and disadvantages of the matrix stiffness method are compared and discussed in the flexibility method article. Example. Breakdown. The first step when using the direct stiffness method is to identify the individual elements which make up the structure. Once the elements are identified, the structure is disconnected at the nodes, the points which connect the different elements together. Each element is then analyzed  individually to develop member stiffness equations. The forces and displacements are related through the element stiffness matrix which depends on the geometry and properties of the element. A truss element can only transmit forces in compression or tension. This means that in two dimensions, each node has two degrees of freedom (DOF): horizontal and vertical displacement. The resulting equation contains a four by four stiffness matrix. formula_25 A frame element is able to withstand bending moments in addition to compression and tension. This results in three degrees of freedom: horizontal displacement, vertical displacement and in-plane rotation. The stiffness matrix  in this case is six by six. formula_26 Other elements such as plates and shells can also be incorporated into the direct stiffness method and similar equations must be developed. Assembly. Once the individual element stiffness relations have been developed they must be assembled into the original structure. The first step in this process is to convert the stiffness relations for the individual elements into a global system for the entire structure. In the case of a truss element, the global form of the stiffness method depends on the angle of the element with respect to the global coordinate system  (This system is usually the traditional Cartesian coordinate system). formula_27 " (for a truss element at angle β)" Equivalently, formula_28 where formula_29 and formula_30 are the direction cosines of the truss element (i.e., they are components of a unit vector aligned with the member). This form reveals how to generalize the element stiffness to 3-D space trusses by simply extending the pattern that is evident in this formulation. After developing the element stiffness matrix in the global coordinate system, they must be merged into a single “master” or “global” stiffness matrix. When merging these matrices together there are two rules  that must be followed: compatibility of displacements and force equilibrium at each node. These rules are upheld by relating the element nodal displacements to the global nodal displacements. The global displacement and force vectors each contain one entry for each degree of freedom in the structure. The element stiffness matrices are merged by augmenting or expanding each matrix in conformation to the global displacement and load vectors. formula_31 "(for element (1) of the above structure)" Finally, the global stiffness matrix is constructed by adding the individual expanded element matrices together. Solution. Once the global stiffness matrix, displacement vector, and force  vector have been constructed, the system can be expressed as a single matrix equation. For each degree of freedom in the structure, either the displacement or the force is known. After inserting the known value for each degree of freedom, the master stiffness equation is complete and ready to be evaluated. There are several different methods available for evaluating a matrix equation including but not limited to Cholesky decomposition and the brute force evaluation of systems of equations. If a structure isn’t properly restrained, the application of a force will cause it to move rigidly and additional support conditions  must be added. The method described in this section is meant as an overview of the direct stiffness method. Additional sources should be consulted for more details on the process as well as the assumptions about material properties inherent in the process. Applications. The direct stiffness method was developed specifically to effectively and easily implement into computer software to evaluate complicated structures that contain a large number of elements. Today, nearly every finite element solver available is based on the direct stiffness method. While each program utilizes the same process, many have been streamlined to reduce computation time and reduce  the required memory. In order to achieve this, shortcuts have been developed. One of the largest areas to utilize the direct stiffness method is the field of structural analysis where this method has been incorporated into modeling software. The software allows users to model a structure and, after the user defines the material properties of the elements, the program automatically generates element and global stiffness relationships. When various loading conditions are applied the software evaluates the structure and generates the deflections for the user.