1D FEM Modal Analysis Back
Vibration & Modal Analysis

1D FEM Modal Analysis — Beam/Rod Element Discretization & Mode Shapes

Assemble global stiffness and consistent mass matrices for a 1D rod, solve the generalized eigenvalue problem, and watch mode shapes animate at their natural frequencies.

Parameters
Elements n
Length L (m)
m
Young's Modulus E (GPa)
GPa
Density ρ (kg/m³)
kg/m³
Cross-section A (cm²)
cm²
Boundary Conditions

Display mode

Results
f₁ (FEM)
f₁ (Analytical)
f₂ (FEM)
f₃ (FEM)
Mode
Theory & Key Formulas

Element stiffness matrix:

$$\mathbf{K}_e = \frac{EA}{L_e}\begin{bmatrix}1 & -1\\-1 & 1\end{bmatrix}$$

Consistent mass matrix:

$$\mathbf{M}_e = \frac{\rho A L_e}{6}\begin{bmatrix}2 & 1\\1 & 2\end{bmatrix}$$

Generalized eigenvalue problem: $\mathbf{K}\boldsymbol{\phi}= \omega^2\mathbf{M}\boldsymbol{\phi}$

What is 1D FEM Modal Analysis?

🙋
What exactly is "modal analysis" for a 1D rod? Is it just seeing how it vibrates?
🎓
Basically, yes! It's finding the rod's natural vibration "modes" — the specific patterns it vibrates in when disturbed. Each mode has a unique shape and a specific frequency. In this simulator, you're using the Finite Element Method (FEM) to find them. Try moving the "Elements (n)" slider above. More elements means a more detailed model, giving you more accurate mode shapes.
🙋
Wait, really? The computer solves this by assembling matrices? What are those "K" and "M" matrices I see in the theory section?
🎓
Exactly! The stiffness matrix K represents how resistant the rod is to deformation, and the mass matrix M represents its inertia. The simulator builds these giant matrices from each small element. For instance, if you change the Young's Modulus E parameter, you're directly changing the values inside the K matrix, making the rod stiffer and raising its natural frequencies.
🙋
So the final answer comes from solving Kφ=ω²Mφ? What do the "eigenvalues" and "eigenvectors" mean in practice?
🎓
Great question! That equation is the heart of it. The eigenvalues (ω²) give you the squared natural frequencies. The eigenvectors (φ) are the mode shapes you see animated! A common case: for a fixed-fixed rod, the first mode shape looks like a single arch. Try switching the "Boundary Conditions" to "Free-Free" and see a new "rigid-body" mode appear at 0 Hz, where the whole rod just translates.

Physical Model & Key Equations

The core of 1D FEM is defining the behavior of each small bar element. Its stiffness matrix relates nodal forces to nodal displacements.

$$\mathbf{K}_e = \frac{EA}{L_e}\begin{bmatrix}1 & -1\\-1 & 1\end{bmatrix}$$

Here, E is Young's Modulus (material stiffness), A is cross-sectional area, and L_e is the element length. This matrix is assembled into the global stiffness matrix K.

For dynamic analysis, we need mass. The consistent mass matrix distributes the element's mass to its nodes in a physically accurate way for vibration.

$$\mathbf{M}_e = \frac{\rho A L_e}{6}\begin{bmatrix}2 & 1\\1 & 2\end{bmatrix}$$

Here, ρ is density. Like the stiffness matrix, these are assembled into the global mass matrix M. The eigenvalue problem Kφ = ω²Mφ is then solved, where ω is the natural angular frequency in rad/s.

Frequently Asked Questions

Increasing the number of elements improves analysis accuracy, especially for higher-order natural frequencies, which are calculated more precisely. However, the computational load also increases, so if only lower-order modes are needed, approximately 10 to 20 elements provide sufficient accuracy.
Fixed-fixed conditions yield the highest natural frequencies, while cantilever (fixed-free) conditions result in lower frequencies. Free-free conditions produce rigid body modes (0 Hz). Since boundary conditions directly affect the stiffness matrix, the mode shapes also change significantly.
A consistent mass matrix continuously considers the mass distribution within an element, allowing for more accurate vibration modes. A lumped mass matrix is a simplified model that concentrates mass at nodes, resulting in lighter computation but reduced accuracy for higher-order modes. This tool uses a consistent mass matrix.
The display scale may be too large, or the number of elements may be too small. First, select a lower-order mode (e.g., 1st or 2nd) and adjust the scale slider. Also, verify that the boundary conditions are set correctly and that the material constants (Young's modulus and density) are realistic values.

Real-World Applications

Aerospace Structural Design: Modal analysis is critical for aircraft wings and rocket bodies. Engineers must ensure natural frequencies don't match engine or aerodynamic excitation frequencies to avoid catastrophic resonance. This simulator's process is a simplified version of what they run on massive 3D models.

Civil Engineering & Earthquake Engineering: Tall buildings, bridges, and towers are analyzed for their modal properties. Understanding their fundamental swaying modes helps engineers design them to withstand seismic loads and wind forces safely.

Automotive NVH (Noise, Vibration, and Harshness): Car chassis, exhaust systems, and body panels are analyzed to minimize unwanted vibrations that create noise and discomfort. The 1D rod model is analogous to studying vibrations in pipes or frame members.

Manufacturing & Machine Tools: The spindle and tool assembly in a CNC machine must be very stiff with high natural frequencies. If the cutting frequency excites a structural mode, it causes chatter, ruining the surface finish and damaging the tool.

Common Misunderstandings and Points to Note

There are several key points you should be mindful of when starting to use this simulator. First, it is a misconception that "increasing the number of elements always improves accuracy." While it's true that, theoretically, finer elements bring you closer to the true solution, computer calculations inherently involve "round-off errors." For instance, increasing the elements from 100 to 1000 might not only show little change in the displayed natural frequencies but can sometimes lead to strange results due to numerical instability. In practice, it's crucial to consider the "trade-off between computational cost and accuracy" and identify the minimum number of elements needed to achieve the required precision.

Next, ensure consistency in the unit system for your parameter settings. While this tool might use non-dimensionalized values, if you perform your own calculations, you must maintain consistency. For example, if you input Young's modulus in [GPa], density in [kg/m³], and length in [m], then the cross-sectional area must also be in [m²]. Mixing units will yield nonsensical numbers and lead to a situation where "the calculations don't match up." For instance, when considering a cantilever beam made of steel (E=210 GPa, ρ=7850 kg/m³) with a length of 1m, if you input a cross-sectional area of 100 mm², you must convert it to 0.0001 m².

Finally, don't assume that "you only need to look at the calculated lower-order modes." While the fundamental frequency is indeed most important, there are cases where higher-order modes, like the 2nd or 3rd, can resonate and lead to failure, for example, under forced vibration at a specific frequency. Try setting the boundary condition to "fixed-free" in this simulator and display up to the 3rd mode. Observe how the positions of the nodes (points that do not vibrate) change; this will give you a tangible sense of the complexity of higher-order modes.

How to Use

  1. Set the number of elements (nSlNum) between 4 and 20 to discretize your rod into equal segments.
  2. Enter material Young's modulus (eSlider) in GPa; steel typically uses 200 GPa, aluminum 70 GPa.
  3. Define rod length (lSlider) in meters and cross-sectional area (nSlider) in mm².
  4. Click Solve to assemble the global stiffness and mass matrices, then compute eigenvalues and eigenvectors.
  5. Select a mode from the dropdown to visualize nodal displacement patterns and natural frequencies in Hz.

Worked Example

Steel rod: L = 1.5 m, A = 50 mm², E = 200 GPa, ρ = 7850 kg/m³, 8 elements. First mode (fundamental) displays ω₁ ≈ 127 Hz with a single half-sine wave along the length. Third mode shows ω₃ ≈ 635 Hz with three half-waves. Mesh refinement to 12 elements improves accuracy by ~2%, reducing discretization error in higher modes.

Practical Notes

  1. Use 8–12 elements for typical rod problems; coarser meshes (<6 elements) underestimate higher-mode frequencies by 10–15%.
  2. Free–free boundary conditions assume no constraints; add fixed ends via penalty method or Lagrange multipliers if required.
  3. Modal shapes reveal stress concentration zones; bending stress σ = E·ε peaks where curvature is maximum (e.g., mode 3 at rod quarter-points).
  4. Validate against analytical formula f = (n/2L)√(E/ρ); discrepancies >5% suggest insufficient element count or input errors.