Truss 3D (Tetrahedral) using FEM (direct stiffness)
%% System of Connected 6 Bar Elements / Truss (Tetrahedron) in 3D
% Units: force = N; displacement = m; stiffness = N/m; modulus = Pa
% by Prof. Roche C. de Guzman
clear; clc; close('all');
%% Given
% Degrees of Freedom (DOF), Side length, Node Coordinates, and Order
dim = 3; DOF = dim; ang = pi/6; s = 2;
n1 = [0 0 0]; n2 = [0 s 0]; n3 = [s*cos(ang) s*sin(ang) 0]; n4 = [(s*(3^0.5)/6) (s/2) s*sin(acos((3^0.5)/3))];
n = {n1 n2 n3 n4}; nodes = [1 3; 3 2; 2 1; 1 4; 4 3; 4 2]; % pair of nodes per element
Cite As
Roche de Guzman (2024). Truss 3D (Tetrahedral) using FEM (direct stiffness) (https://www.mathworks.com/matlabcentral/fileexchange/71355-truss-3d-tetrahedral-using-fem-direct-stiffness), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |