Input data is the MS Excel file, where the table of nodes, table of elements, nodal external loads vector and boundary conditions are stored.
After running the mabs2d.m file on the Command Window, the program calculates the stiffness matrix in local coordinates kiL (element i). Once the transformation matrix associated to the element is obtained, the stiffness matrix in global coordinates kiG is also calculated. The table of connectivity is automatically generated for the assembly process and then computes the complete stiffness matrix of the structure. Boundary conditions are introduced on the Excel sheet in order to remove the singularity of the stiffness matrix. After solving the matrix system, the nodal displacements vector u and the nodal loads vector P0 (external loads and reactions) are calculated.
Finally, the program returns to the element formulation by transforming the global displacements into local ones to obtain the bar stresses sigmai of the element i and design the each member of the structure.
A plot of the deformed and non deformed structure in static equilibrium is also shown.
This program only considers concentrated loads on the nodes. In case there be distributed loads or thermal loads, they must be calculated separately and then included into the nodal external loads vector.
Flexion and shear effects are not considered. All the elements satisfy the hypothesis of the Finite Element Method (FEM).
Marcos Cesar Ruggeri (2023). Matrix Analysis of Two Dimensional Bar Structures MABS2D (https://www.mathworks.com/matlabcentral/fileexchange/21793-matrix-analysis-of-two-dimensional-bar-structures-mabs2d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Six beam element stiffness matrix
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Adaptability of boundary conditions for isostatic structures included. More examples added.
Elements numeration included (v2.0)
Syntax improved. Instructions incorporated.