Finite Element Analysis Matlab GUI

vibrationdata_fea (ver 3.1) is a light finite element program in one Matlab GUI, for beams, flat plates, springs, point masses and rigid links. Build the model in tables, see it in 3-D, and run normal modes, linear statics, buckling, frequency response and base excitation by random, sine, shock and transient inputs, with the stress in every element. It is meant for quick checks, preliminary design and teaching, and every worked example is checked against a closed-form solution.

Download:
vibrationdata_fea_11_25_26.zip: Matlab source (about 0.8 MB). Unzip into your Matlab folder and run vibrationdata_fea in Matlab R2024a or later.
vibrationdata_fea_sa_11_25_26.zip: Stand-alone Windows executable (about 1.5 MB). This version does not need Matlab, but it needs the free MATLAB Runtime R2026b. Note that this is a newer Runtime than the R2024a used by my other stand-alone packages.

Worked examples: vibrationdata_fea_worked_examples_revC.pptx (PowerPoint, 43 slides). Ten examples run through the GUI, each checked against a closed-form solution or an independent calculation: cantilever beam modes, a static tip load with root stress, simply supported plate modes with quads and triangles against Navier, a box on four isolators, a pinned column with its Euler load and tension preload, an SDOF under a random base PSD against Miles and the exact integral, a two-DOF chain under a shock response spectrum with SRSS and ABS, a half-sine transient against ode45, a beam line load and a plate under pressure against Navier, and a sine sweep with a two-column export of the transmissibility.

The app was developed and tested in Matlab R2024a. It uses base Matlab only, with no toolboxes. The source zip contains the app, which holds the whole solver, and the equations PDF, which the Equations button opens.

THE MODEL
  • Nodes, materials and beam sections, with a section calculator and a material library. English or metric units.
  • Beams: 3-D Euler-Bernoulli beams with consistent mass, an orientation vector, pin flags at either end and end offsets.
  • Plates: flat four-node shells (MITC4 bending with a membrane) and three-node triangles (DKT bending with a CST membrane), with a rectangle mesher and a 1-to-4 refine tool.
  • Point masses with rotary inertia, springs in six directions (Node B = 0 ties a spring to ground) and rigid links.
  • Constraints and loads: fixed DOFs, nodal forces and moments, beam line loads, plate pressure and gravity.
  • Five example models, copy nodes by translation or rotation, groups and show/hide, Undo, and paste rows from Excel.
ANALYSES
  • Normal modes with participation factors, effective mass and modal mass, an animated mode shape, and a damping ratio for each mode.
  • Frequency response to a force or a base acceleration, with an optional residual vector for the truncated modes.
  • Linear static with reactions and an equilibrium check, inertia relief for a free body, linear buckling, and a preload option that adds the stress stiffening of the static loads to the modes.
  • Base excitation by modal superposition: random vibration (PSD), sine (steady or sweep), shock (SRS, with SRSS, ABS or NRL combination) and transient time histories.
  • Reduction: Guyan and Craig-Bampton models, and the mass and stiffness matrices, for use in other programs.
RESULTS
  • Displacements, beam forces, beam stress at five stations along each beam with torsion shear, and plate von Mises, principal and maximum shear stress, at the element centres or averaged at the nodes.
  • Stress contours on the deformed shape, with zoom, pan, rotate and a pop-out figure.
  • Save Curve writes any node response or element stress as two columns, time (sec) or frequency (Hz) and the amplitude, for use in the other Vibrationdata tools. Tables save to CSV or MAT files.
  • Export BDF and Export APDL write Nastran and ANSYS input decks, and Import BDF reads a Nastran model.
VERIFICATION AND LIMITATIONS

Beam results are exact for end loads and uniform line loads. The simply supported plate is within 1% of Navier for the first mode on a 12 x 10 mesh and within 0.25% for a uniform pressure. The random, sine, shock and transient solutions match the exact SDOF integral, the closed-form transmissibility, the hand modal combination and ode45.

This is a tool for quick checks, preliminary design and teaching, not a replacement for a general-purpose FE code. It is linear apart from the preload and buckling options. It has no solid elements, composite plates or contact, and it imports no CAD geometry. Large models are slow to edit in the tables. The Nastran and ANSYS exports follow the documented formats but have not yet been run in those programs.

SOURCES

The equations PDF gives the element matrices, solution methods and checks, with references including Przemieniecki, Theory of Matrix Structural Analysis; Bathe and Dvorkin for the MITC4 plate; Batoz, Bathe and Ho for the DKT triangle; Guyan; Craig and Bampton; Cook, Malkus, Plesha and Witt, Concepts and Applications of Finite Element Analysis; Leissa, Vibration of Plates; and Blevins, Formulas for Natural Frequency and Mode Shape.

The app is free to use and is provided as is, with no warranty. Please send me an email if you have questions or suggestions.

Tom Irvine

More stand-alone Matlab GUIs: Matlab Engineering GUI Packages Hub

Learn This in a Live Course

Modal analysis, base excitation of beams and plates by sine, random and shock, Guyan reduction, inertia relief and Craig-Bampton models are covered in the Structural Dynamics & FEA course. The February 2027 series includes live one-hour classes, IACET CEUs, recorded sessions and slides. See the schedule and fees or register here.

Leave a Comment