image thumbnail

MATLAB Truss Finite Element Analysis

version 1.0 (25.4 KB) by mansour torabi
2D Truss Analyzer toolbox can analyze any 2D trusses using Finite Element Method (FEM)

32 Downloads

Updated 29 Jan 2021

From GitHub

View license on GitHub

View MATLAB Truss Finite Element Analysis on File Exchange

Matlab Truss Finite Element Analysis (FEA / FEM)

MATLAB Code: 2D Truss (planar truss) Analyzer toolbox using FEM

Usage

Just run the EVAL1.m and EVAL2.m

Example 1

%%  Truss Definition
clc, clear

T.node  = [0, 0; 0, 1; 1, 1];
T.element  = [2, 3, 8e-5, 200e9; 1, 3, 8e-5, 200e9];
T.force = [3, 1000, -90]; 
T.support  = [1, 2, 0; 2, 2, 0];
           
%% FEM Analysis 

Tr = TrussFEA(T);     % FEM Solver 
TrussPlotter(Tr, 1);  % Graphical visualization

Example 2

%%  Truss Definition

clc, clear

T.node = [0, 0; 4, 0; 4, 4; 8, 0; 8, 6; 12, 0;12 4; 16, 0];
El_n = [1 2;1 3; 2 3; 3 4; 2 4; 3 5; 4 5; 4 7;4 6; 5 7; 6 7; 6 8; 7 8];
A = 1e-4; E = 200e9;
T.element = [El_n, A*ones(13,1), E*ones(13,1)];
T.force = [2, 3e3, -90; 4, 5e3, -90; 6, 4e3, -90];
T.support = [1 2 0; 8, 1, 2];

%% FEM Analysis 
Tr = TrussFEA(T); 		% FEM Solver 
TrussPlotter(Tr, 1);	% Graphical visualization

Contact

Email: smtoraabi@ymail.com

Video Tutorial [ In Persian ]

1. Analysis of Planar Truss using Finite Element Method - Part 1: Theory

تحلیل سازه خرپا به روش المان محدود - بخش 1: تئوری

2. Analysis of Planar Truss using Finite Element Method - Part 2: Implementation in MATLAB

تحلیل سازه خرپا به روش المان محدود - بخش 2: پیاده سازی در متلب MATLAB

Cite As

mansour torabi (2021). MATLAB Truss Finite Element Analysis (https://github.com/Mansourt/MATLAB_Truss_Finite_Element_Analysis/releases/tag/v1.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.