Stiffness Matrix Calculator
Our stiffness matrix calculator will help you determine the element stiffness matrices for the truss, beam, and frame elements. Truss, beam, and frame elements are the most basic elements used in finite element analysis in solid mechanics.
If you were wondering how to calculate the stiffness matrix for these three elements, you've come to the right place! In this article, we aim to teach you the following:
- Truss elements and calculating the stiffness matrix for truss elements.
- Beam elements and calculating beam stiffness matrix.
- Frame elements and calculating frame stiffness matrix.
Familiarity with spring stiffness will be a good base for the article below. We recommend you go through our spring rate calculator before diving in!
Calculating stiffness matrix for truss elements
Trusses are bars joined end to end to form a rigid structure such that only axial forces are acting on each bar. Typically, truss structures are used in supporting roofs. You can also see them used in bridges.
The stiffness of a bar is given by:
where:
- — Stiffness of the bar;
- — Cross-sectional area of the bar;
- — Young's modulus of the bar; and
- — Length of the bar.
If you need help with Young's modulus calculation, our Young's modulus calculator can help you.
Let us learn how to calculate the stiffness matrix of a truss element. Consider the free body diagram of a truss element tilted at an angle to the global x-axis.
It is easier to analyze the element in its local coordinate system and then transform our equations into the global coordinate system.
This free-body diagram shows that:
- At equilibrium, the element forces and result in an equal and opposite axial reaction force in the truss element.
- Since the element displacements and are lateral, they do not result in any axial reaction forces in the element. This is valid because we assume the displacements are small. Thus, and are zero.
Similar to spring, the reaction force in the truss member is given by:
From the diagram, we note that the element force . Hence we can write:
Again, from the diagram, we note that the element force . Thus, we write:
Putting the two axial element force equations in a matrix, we get:
Combining this with our understanding that the element forces and are zero, we can expand the matrix equation to include them:
where:
- — Local element stiffness matrix;
- — Local element displacement vector; and
- — Local element force vector.
To convert the equation (and our stiffness matrix) from the local to the global coordinate system, we introduce a transformation matrix , where:
Where is the angle of orientation of the element with respect to the global x-axis.
This transformation matrix is an orthogonal matrix, which means that:
The formula for the element stiffness matrix of a truss element in the global coordinate system is obtained by:
Units of a bar element stiffness matrix: Since the stiffness of all items in the matrix is of the form , their unit is . You can also measure it in , , or .
Calculating stiffness matrix for beam elements
We've all come across beams in our day-to-day lives as support members in various constructions. Unlike trusses, a beam is a supporting structure designed to withstand lateral forces, carrying shear forces and bending moments.
The final form in the FE (finite element) formulation of a beam is given by:
where:
- — Stiffness matrix;
- — Displacement vector;
- — Boundary vector; and
- — Load vector.
These matrices are defined as follows:
where:
- — Second order derivative of the shape function vector ;
- — Young's modulus of the beam;
- — Moment of inertia of the beam;
- — Shape function vector of the beam;
- — Shear force acting on the beam;
- — Bending moment on the beam; and
- — Distributed load acting on the beam.
Let's consider the simplest beam element, as shown in the figure below.
The shape function of this beam is given by:
where:
where:
- — A variable for the location along the beam element; and
- — Length of the beam element.
We can formulate the beam element stiffness matrix as follows:
Note that we have assumed that and are uniform throughout the length of the beam element. The next step needs us to evaluate the second-order derivative of each shape function for each item in the matrix. For example, for , we get:
Following similar differentiation and integration for all items in the matrix gives us the formula for the element stiffness matrix of a beam:
💡 Need help calculating the beam's moment of inertia? Head to our moment of inertia calculator!
Units of beam element stiffness matrix: In the beam element stiffness matrix formula, we have three types of terms - , , and . The units for these terms are given in the table below:
Matrix item | Term | Unit |
---|---|---|
k₁₁, k₁₃, k₃₁, k₃₃ | ||
k₁₂, k₁₄, k₂₁, k₂₃, k₃₂, k₃₄, k₄₁, k₄₃ | ||
k₂₂, k₂₄, k₄₂, k₄₄ |
Calculating stiffness matrix for frame elements
A frame member can carry both axial and lateral loads. In a way, a frame element is the combination of a bar and a beam element. In FE methods, they are commonly used to approximate various real-world structures.
Consider the frame element shown in the diagram below.
We can indeed formulate the element stiffness matrix of a frame by combining the stiffness matrices of a bar and a beam element:
Units of frame element stiffness matrix: In the frame element stiffness matrix formula, we have four types of terms - , , , and . The units for these terms are given in the table below:
Matrix item | Term | Unit |
---|---|---|
k₁₁, k₁₄, k₄₁, k₄₄ | ||
k₂₂, k₂₅, k₅₂, k₅₅ | ||
k₂₃, k₂₆, k₃₂, k₃₅, k₅₃, k₅₆, k₆₂, k₆₆ | ||
k₃₃, k₃₆, k₆₃, k₆₆ |
Using our stiffness matrix calculator
Our stiffness matrix calculator is a robust tool at your disposal for determining your element stiffness matrix:
-
Select the type of element you wish to calculate the element stiffness matrix for. You can choose between:
-
Bar/truss element;
-
Beam element; or
-
Frame element.
-
-
For a bar element, enter the following data:
-
Young's modulus of the bar.
-
Bar's length.
-
Cross-sectional area of the bar.
-
Angle of the orientation of the bar with respect to the global x-axis.
-
-
For a beam element, the calculator requires the following inputs from you:
-
Young's modulus of the beam.
-
Moment of inertia of the beam.
-
Beam element's length.
-
-
For a frame element, enter the following data:
-
Young's modulus of the frame.
-
Moment of inertia of the frame.
-
Length of the frame.
-
Frame's cross-sectional area.
-
-
Sit back and relax as our calculator automatically calculates your element stiffness matrix for you!
-
You can also choose the units in which you wish to calculate the stiffness matrix!
Once you've determined the stiffness matrix, you'll have to deal with more matrix algebra. Our matrix addition calculator and matrix multiplication calculator will prove useful to your cause!
FAQ
What is the stiffness of a 1 m steel bar with 0.2 m² cross-section?
The stiffness of a 1-meter steel bar with 0.2 m2 cross-section is 4 × 1010 N/m or 40 GN/m. To determine this answer, follow these steps:
-
Look up Young's modulus of steel:
E = 200 GPa
-
Multiply this E value with the cross-section area of the bar:
200 × 109 × 0.2 = 40 × 109
-
Divide this value by the length of the bar to obtain its stiffness:
k = (40 × 109)/1 = 4 × 1010 N/m or 40 GN/m
Is the stiffness matrix singular?
Yes, the stiffness matrix is singular, meaning its determinant is zero. Because inverting a singular matrix is impossible, a system of finite element equations cannot be solved without any prescribed boundary conditions.
What is the difference between a beam element and a bar element?
A bar element can only have axial forces, whereas a typical beam element can only have shear forces and bending moments. A combination of these elements, the frame element, can carry both axial and lateral forces. Note that the beam element can also develop axial forces in some finite element programs.
What are the important properties of a stiffness matrix?
The following are important properties of a stiffness matrix:
- A stiffness matrix is always symmetric.
- The stiffness matrix is singular, meaning its determinant is zero.
- Introduction of boundary conditions can change the stiffness matrix into a positive definite matrix, so the finite element equation system has a unique solution.