Problem #1: Stepped Shaft under Axial Loading
The stepped shaft is divided into 3 finite linear elements (), where each element corresponds to a stepped section of the shaft. This then corresponds to four nodes, each of which have deformation of . We model each element to have two equal and opposite forces acting on its ends/nodes, and . represents the internal axial force, where . The stress can in turn be modeled as a function of the strain using Hooke’s Law, which states that . Here, represents he strain of each element as defined as the ratio of its deformation due to applied force to its original length, such that .
The expression can e substituted into to get . This can in turn be substituted into to get . To maintain equilibrium, we must have , which gives . Since is equal and opposite to , we have .
Thus, the local stiffness matrix for an element of length and area and Young’s Modulus is given by:
This matrix shows the force response at each end of the element due to a unit displacement at each end, considering applied axial forces. The matrix composed of and values is the local stiffness matrix.
Using the values of , we can find the value of for each the local stiffness matrix of each element. differs for each element and is directly given. can be found by taking the given diameter and calculating . We can thus construct our element stiffness matrices:
Our global stiffness matrix has dimensions since we have nodes. We also need to consider boundary conditions; specifically, the left end of is fixed so there is no displacement (). Thus, we can remove the first row and first columns of the matrix.
Thus, our full systems of equations is:
This is solved using MATLAB by simply doing d = K_global \ F;
Solving gives:
The stress and strain are then calculated based on the formulas introduced earlier:
\The results are summarized in the table below.
To verify our FEA result, we can calculate deformations by hand using the deformation formula. They are given here:
These are consistent with our FEA calculations!
Problem #2: Deformation of a Truss Structure
The truss comprises of four nodes. Each node () is defined by its coordinates in 2D space, with
To build our FEA model, the elements of the truss are defined such that each member is an element (total of four elements). A connectivity matrix is then created to define how nodes are connected by elements. Each column in this matrix represents an element, and the two rows provide the start and end nodes for each element. For example, element 1 connects node A to node B, element 2 connects node B to node C, and so forth. To summarize, each element is defined as:
We also define the global degrees of freedoms; each node has 2 degrees of freedom (). We use the notation of to indicate that these degrees of freedoms correspond to the deformations at each joint.
The length of each member is found:
The local stiffness matrix for this problem how much a truss member/element resists deformation under applied forces. It links the forces at the nodes of an element to the displacements at those nodes. For 2D members, this matrix is defined as:
where . This reflects the element’s response to axial, shear, and bending forces, assuming linear elastic behavior. By incorporating the directional cosines and cosines, the matrix is also in the global coordinate system without us needing to take an extra step to transform elements 2 and 3 to global coordinates. For our elements, we have:
With these, the full local stiffness matrices can be found; they are omitted here for brevity. We can then integrate each element’s stiffness matrix into the global stiffness matrix, . Since there are four nodes, and each node has 2 degrees of freedom, our global stiffness matrix has dimensions of . The placement of each element’s stiffness matrix within depends on the nodes that the element connects. This is guided by the connectivity matrix. For example, the connectivity matrix states that element 1 connects nodes A and B; thus, its local stiffness matrix affects the DOFs corresponding to these nodes in . Following this approach, the corresponding entries in are updated for each element by adding the element’s stiffness contributions to the appropriate positions in the global matrix. Finally, boundary conditions are applied to nodes A and D, which are fixed. Fixed nodes have their corresponding rows and columns in the global stiffness matrix set to zero, except diagonals are set to .
Due to the boundary conditions applied to node A (row/columns 1 and 2) and node D (row/columns 7 and 8), our original matrix can be simplified to so that our system of equations is:
This is once again solved with MATLAB by setting up the matrices and calling d = K_global \ F;
.
Then, the strains can be calculated for each member by considering its deformations at each of its nodes. Since each element has 2 nodes, which in turn each have 2 degrees of freedom for deformation, we have:
The stresses, internal forces, change in length, and factor of safety can then be calculated using:
Results for these quantities are displayed below.
We can verify these by using the method of joints on the truss structure to calculate internal forces. The figure below shows this process.
Factor of Safety Recommendations
Given the factor of safety values of for the four truss elements, we see that Element 4 is unsafe. A factor of safety below indicates that the stresses in this member exceed its yield strength, suggesting a risk of failure under the given loading conditions. While the other members are relatively more safe with factors of safety above , these can also be inadequate depending on the application, as some use cases typically require higher factors of safety (2 to 3). Some ways to increase factor of safety for individual members would be to increase the cross-sectional areas of the element, or simply use a material with a higher yield strength. A more drastic option would be to redesign the truss configuration entirely to redistribute loads more evenly.