SlideShare a Scribd company logo
1 of 4
Download to read offline
Two-dimensional truss analysis program calculates and displays the stiffness matrix and
displacement and internal forces for each element.
The file that you currently are reading is guiding you in reading the codes of program for
the analysis of two-dimensional trusses which have written in MATLAB language.
Features of this program:
 The inputs will receive via an Excel file which is called TRUSS.xlsx. The advantage
of this type of data receiving is that if you have a mistake in Entering truss
parameters you don't need to start the time consuming process of input data again
from beginning. Rather just modify the Excel file and then "just run the program
again.
 Not using functions and there are only two loops in it for simplicity.
 Calculation and displaying the displacements and support reaction forces and
stiffness matrix for the entire structure and also calculates and displays the stiffness
matrix and displacement and internal forces for each element separately.
 Display date and time at the end of each analysis.
 Saving the answers of the program in 2 separate txt files with the name of
Reactions.txt and Displacements.txt and the end of analysis.
 I mention the performance of each line of program in front of the command.
 This program has the ability to solve the 2D trusses with different E and Cross
section Area.
 This program is Useless for the trusses that their supports are inclined I
emphasized that the supports of the truss are inclined not the truss itself.
In the Excel file which we enter inputs for the program I insert some numbers as an
example and solve the program by myself in another pdf file and then we let the program
to run with those numbers and compare our answer with computer answers.
For solving this problem first step is to determine the degree of freedom (dof) in our truss
from node 1 in this way that we call horizontal degree of freedom in node 1 as U1 and the
vertical one U2 and the horizontal dof in node 2 as U3 and the vertical one as U4, the
horizontal dof in node 3 as U5 and the vertical one as U6 and name them in this way till
the last node.
Note:
it is necessary to name the dof in the mentioned way because I design the stiffness
matrix according to these dof and their names.
We consider the direction of the elements from left to right and from top to bottom
and for inclined elements from bottom to top and we consider this law when we insert the
start node and end node of each element in excel file.
In excel file the units should be related to each other for example if we assume that
the coordination of the nodes calculated in Cm then the cross section area must be in
Cm2.
When we insert the loads in the excel file if one load direction is in opposite to its
related dof we assume that load as negative number.
The loads must be applied on the nodes in the same way that their related dof is.
For the output of this program pay attention to the pictures below:
Manual for the MATLAB program to solve the 2D truss
Manual for the MATLAB program to solve the 2D truss

More Related Content

What's hot

[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)
[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)
[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)Hemant Solanki
 
Finite Element analysis -Plate ,shell skew plate
Finite Element analysis -Plate ,shell skew plate Finite Element analysis -Plate ,shell skew plate
Finite Element analysis -Plate ,shell skew plate S.DHARANI KUMAR
 
Axisymmetric
Axisymmetric Axisymmetric
Axisymmetric Raj Kumar
 
Lec10 finite element_beam_structures 2
Lec10 finite element_beam_structures 2Lec10 finite element_beam_structures 2
Lec10 finite element_beam_structures 2Mahdi Damghani
 
Abaqus tutorial
Abaqus tutorialAbaqus tutorial
Abaqus tutorialnghiahanh
 
Eurocodes design of members
Eurocodes design of membersEurocodes design of members
Eurocodes design of membersyuri30
 
Finite Element Analysis of Truss Structures
Finite Element Analysis of Truss StructuresFinite Element Analysis of Truss Structures
Finite Element Analysis of Truss StructuresMahdi Damghani
 
Column Interaction Diagram construction
Column Interaction Diagram constructionColumn Interaction Diagram construction
Column Interaction Diagram constructionPritesh Parmar
 
Buckling Analysis in ANSYS
Buckling Analysis in ANSYSBuckling Analysis in ANSYS
Buckling Analysis in ANSYSMaha Hassan
 
Shear, bond bearing,camber & deflection in prestressed concrete
Shear, bond bearing,camber & deflection in prestressed concreteShear, bond bearing,camber & deflection in prestressed concrete
Shear, bond bearing,camber & deflection in prestressed concreteMAHFUZUR RAHMAN
 
Compatibility equation and Airy's stress function of theory of elasticity
Compatibility equation and Airy's stress function of theory of elasticityCompatibility equation and Airy's stress function of theory of elasticity
Compatibility equation and Airy's stress function of theory of elasticitysmchaudhary07
 
Matrix stiffness method 0910
Matrix stiffness method 0910Matrix stiffness method 0910
Matrix stiffness method 0910mullerasmare
 
L3 degree of redundancy of plane frames
L3 degree of redundancy of plane framesL3 degree of redundancy of plane frames
L3 degree of redundancy of plane framesDr. OmPrakash
 

What's hot (20)

COMPRESSION MEMBERS
COMPRESSION MEMBERS COMPRESSION MEMBERS
COMPRESSION MEMBERS
 
Deep beam
Deep beamDeep beam
Deep beam
 
[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)
[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)
[Ajaya kumar gupta]_response_spectrum_method_in_se(book_zz.org)
 
Finite Element analysis -Plate ,shell skew plate
Finite Element analysis -Plate ,shell skew plate Finite Element analysis -Plate ,shell skew plate
Finite Element analysis -Plate ,shell skew plate
 
Axisymmetric
Axisymmetric Axisymmetric
Axisymmetric
 
report
reportreport
report
 
Lec10 finite element_beam_structures 2
Lec10 finite element_beam_structures 2Lec10 finite element_beam_structures 2
Lec10 finite element_beam_structures 2
 
Abaqus tutorial
Abaqus tutorialAbaqus tutorial
Abaqus tutorial
 
Eurocodes design of members
Eurocodes design of membersEurocodes design of members
Eurocodes design of members
 
Finite Element Analysis of Truss Structures
Finite Element Analysis of Truss StructuresFinite Element Analysis of Truss Structures
Finite Element Analysis of Truss Structures
 
Column Interaction Diagram construction
Column Interaction Diagram constructionColumn Interaction Diagram construction
Column Interaction Diagram construction
 
5. stress function
5.  stress function5.  stress function
5. stress function
 
Buckling Analysis in ANSYS
Buckling Analysis in ANSYSBuckling Analysis in ANSYS
Buckling Analysis in ANSYS
 
Structural engineering i
Structural engineering iStructural engineering i
Structural engineering i
 
Shear, bond bearing,camber & deflection in prestressed concrete
Shear, bond bearing,camber & deflection in prestressed concreteShear, bond bearing,camber & deflection in prestressed concrete
Shear, bond bearing,camber & deflection in prestressed concrete
 
Compatibility equation and Airy's stress function of theory of elasticity
Compatibility equation and Airy's stress function of theory of elasticityCompatibility equation and Airy's stress function of theory of elasticity
Compatibility equation and Airy's stress function of theory of elasticity
 
Design of steel beams
Design of steel beamsDesign of steel beams
Design of steel beams
 
Matrix stiffness method 0910
Matrix stiffness method 0910Matrix stiffness method 0910
Matrix stiffness method 0910
 
L3 degree of redundancy of plane frames
L3 degree of redundancy of plane framesL3 degree of redundancy of plane frames
L3 degree of redundancy of plane frames
 
Fem frame
Fem frameFem frame
Fem frame
 

Viewers also liked

Matlab plotting
Matlab plottingMatlab plotting
Matlab plottingAmr Rashed
 
Matlab function for drift forces
Matlab function for drift forcesMatlab function for drift forces
Matlab function for drift forcesFilippos Kalofotias
 
Isoparametric mapping
Isoparametric mappingIsoparametric mapping
Isoparametric mappingLinh Tran
 
A Simplified Approach to Calculating Truss Forces
A Simplified Approach to Calculating Truss ForcesA Simplified Approach to Calculating Truss Forces
A Simplified Approach to Calculating Truss ForcesJames Nadir
 
Dynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beamsDynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beamsUniversity of Glasgow
 
Structural analysis (method of sections)
Structural analysis (method of sections)Structural analysis (method of sections)
Structural analysis (method of sections)physics101
 
Matrix Structural Analysis, Steel Frame Analysis in SAP2000
Matrix Structural Analysis, Steel Frame Analysis in SAP2000Matrix Structural Analysis, Steel Frame Analysis in SAP2000
Matrix Structural Analysis, Steel Frame Analysis in SAP2000Sajjad Ahmad
 
Ch 1 structural analysis stiffness method
Ch 1 structural analysis stiffness methodCh 1 structural analysis stiffness method
Ch 1 structural analysis stiffness method280632796
 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaAbee Sharma
 
Introduction to finite element method(fem)
Introduction to finite element method(fem)Introduction to finite element method(fem)
Introduction to finite element method(fem)Sreekanth G
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introductionideas2ignite
 

Viewers also liked (16)

Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Matlab function for drift forces
Matlab function for drift forcesMatlab function for drift forces
Matlab function for drift forces
 
Fem in matlab
Fem in matlabFem in matlab
Fem in matlab
 
Isoparametric mapping
Isoparametric mappingIsoparametric mapping
Isoparametric mapping
 
A Simplified Approach to Calculating Truss Forces
A Simplified Approach to Calculating Truss ForcesA Simplified Approach to Calculating Truss Forces
A Simplified Approach to Calculating Truss Forces
 
Dynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beamsDynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beams
 
FEM: Beams
FEM: BeamsFEM: Beams
FEM: Beams
 
Structural analysis (method of sections)
Structural analysis (method of sections)Structural analysis (method of sections)
Structural analysis (method of sections)
 
Matrix Structural Analysis, Steel Frame Analysis in SAP2000
Matrix Structural Analysis, Steel Frame Analysis in SAP2000Matrix Structural Analysis, Steel Frame Analysis in SAP2000
Matrix Structural Analysis, Steel Frame Analysis in SAP2000
 
Ch 1 structural analysis stiffness method
Ch 1 structural analysis stiffness methodCh 1 structural analysis stiffness method
Ch 1 structural analysis stiffness method
 
Calculating truss forces
Calculating truss forcesCalculating truss forces
Calculating truss forces
 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic Tutorial
 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi Sharma
 
Introduction to finite element method(fem)
Introduction to finite element method(fem)Introduction to finite element method(fem)
Introduction to finite element method(fem)
 
Structures and Materials- Section 1 Statics
Structures and Materials- Section 1 StaticsStructures and Materials- Section 1 Statics
Structures and Materials- Section 1 Statics
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 

Similar to Manual for the MATLAB program to solve the 2D truss

Advance data structure
Advance data structureAdvance data structure
Advance data structureashok kumar
 
Solution manual fundamentals of fluid mechanics (4th edition)
Solution manual   fundamentals of fluid mechanics (4th edition)Solution manual   fundamentals of fluid mechanics (4th edition)
Solution manual fundamentals of fluid mechanics (4th edition)Guilherme Gonçalves
 
Introductory manual for the open source potential solver: NEMOH
Introductory manual for the open source potential solver: NEMOHIntroductory manual for the open source potential solver: NEMOH
Introductory manual for the open source potential solver: NEMOHFilippos Kalofotias
 
IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...
IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...
IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...IRJET Journal
 
Program Computing Project 4 builds upon CP3 to develop a program to .docx
Program Computing Project 4 builds upon CP3 to develop a program to .docxProgram Computing Project 4 builds upon CP3 to develop a program to .docx
Program Computing Project 4 builds upon CP3 to develop a program to .docxdessiechisomjj4
 
Question 1 has already been posted to Chegg and I am waiting for the.pdf
Question 1 has already been posted to Chegg and I am waiting for the.pdfQuestion 1 has already been posted to Chegg and I am waiting for the.pdf
Question 1 has already been posted to Chegg and I am waiting for the.pdfanjandavid
 
CEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docx
CEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docxCEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docx
CEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docxcravennichole326
 
NetworkTeamofRockDamageModelingandEnergyGeostorageSimulation
NetworkTeamofRockDamageModelingandEnergyGeostorageSimulationNetworkTeamofRockDamageModelingandEnergyGeostorageSimulation
NetworkTeamofRockDamageModelingandEnergyGeostorageSimulationJianming Zeng
 
computer notes - Linked list inside computer memory
computer notes - Linked list inside computer memorycomputer notes - Linked list inside computer memory
computer notes - Linked list inside computer memoryecomputernotes
 
Excel analysis assignment this is an independent assignment me
Excel analysis assignment this is an independent assignment meExcel analysis assignment this is an independent assignment me
Excel analysis assignment this is an independent assignment mejoney4
 
user_defined_functions_forinterpolation
user_defined_functions_forinterpolationuser_defined_functions_forinterpolation
user_defined_functions_forinterpolationsushanth tiruvaipati
 
CS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docxCS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docxmydrynan
 
Data Structures in C
Data Structures in CData Structures in C
Data Structures in CJabs6
 
Lewis jssap3 e_labman02
Lewis jssap3 e_labman02Lewis jssap3 e_labman02
Lewis jssap3 e_labman02auswhit
 
Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...
Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...
Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...Dadangsachir WANDA ir.mba
 
computer notes - Circular list
computer notes - Circular listcomputer notes - Circular list
computer notes - Circular listecomputernotes
 
Module 3 comp 312 - computer fundamentals and programming
Module 3   comp 312 - computer fundamentals and programmingModule 3   comp 312 - computer fundamentals and programming
Module 3 comp 312 - computer fundamentals and programmingdiosdadamendoza
 

Similar to Manual for the MATLAB program to solve the 2D truss (20)

Introduction to fem
Introduction to femIntroduction to fem
Introduction to fem
 
Advance data structure
Advance data structureAdvance data structure
Advance data structure
 
Solution manual fundamentals of fluid mechanics (4th edition)
Solution manual   fundamentals of fluid mechanics (4th edition)Solution manual   fundamentals of fluid mechanics (4th edition)
Solution manual fundamentals of fluid mechanics (4th edition)
 
Introductory manual for the open source potential solver: NEMOH
Introductory manual for the open source potential solver: NEMOHIntroductory manual for the open source potential solver: NEMOH
Introductory manual for the open source potential solver: NEMOH
 
IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...
IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...
IRJET- Stress – Strain Field Analysis of Mild Steel Component using Finite El...
 
Program Computing Project 4 builds upon CP3 to develop a program to .docx
Program Computing Project 4 builds upon CP3 to develop a program to .docxProgram Computing Project 4 builds upon CP3 to develop a program to .docx
Program Computing Project 4 builds upon CP3 to develop a program to .docx
 
Question 1 has already been posted to Chegg and I am waiting for the.pdf
Question 1 has already been posted to Chegg and I am waiting for the.pdfQuestion 1 has already been posted to Chegg and I am waiting for the.pdf
Question 1 has already been posted to Chegg and I am waiting for the.pdf
 
CEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docx
CEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docxCEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docx
CEECNE 210—Statics SSEBE Mechanics Group Arizona State Un.docx
 
NetworkTeamofRockDamageModelingandEnergyGeostorageSimulation
NetworkTeamofRockDamageModelingandEnergyGeostorageSimulationNetworkTeamofRockDamageModelingandEnergyGeostorageSimulation
NetworkTeamofRockDamageModelingandEnergyGeostorageSimulation
 
computer notes - Linked list inside computer memory
computer notes - Linked list inside computer memorycomputer notes - Linked list inside computer memory
computer notes - Linked list inside computer memory
 
Excel analysis assignment this is an independent assignment me
Excel analysis assignment this is an independent assignment meExcel analysis assignment this is an independent assignment me
Excel analysis assignment this is an independent assignment me
 
user_defined_functions_forinterpolation
user_defined_functions_forinterpolationuser_defined_functions_forinterpolation
user_defined_functions_forinterpolation
 
CS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docxCS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docx
 
Data Structures in C
Data Structures in CData Structures in C
Data Structures in C
 
Lewis jssap3 e_labman02
Lewis jssap3 e_labman02Lewis jssap3 e_labman02
Lewis jssap3 e_labman02
 
Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...
Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...
Enrich enriching mathematics conversi biner 16 pada sisikomputerize indoensia...
 
computer notes - Circular list
computer notes - Circular listcomputer notes - Circular list
computer notes - Circular list
 
Module 3 comp 312 - computer fundamentals and programming
Module 3   comp 312 - computer fundamentals and programmingModule 3   comp 312 - computer fundamentals and programming
Module 3 comp 312 - computer fundamentals and programming
 
Unit-2 Hadoop Framework.pdf
Unit-2 Hadoop Framework.pdfUnit-2 Hadoop Framework.pdf
Unit-2 Hadoop Framework.pdf
 
Unit-2 Hadoop Framework.pdf
Unit-2 Hadoop Framework.pdfUnit-2 Hadoop Framework.pdf
Unit-2 Hadoop Framework.pdf
 

Manual for the MATLAB program to solve the 2D truss

  • 1. Two-dimensional truss analysis program calculates and displays the stiffness matrix and displacement and internal forces for each element. The file that you currently are reading is guiding you in reading the codes of program for the analysis of two-dimensional trusses which have written in MATLAB language. Features of this program:  The inputs will receive via an Excel file which is called TRUSS.xlsx. The advantage of this type of data receiving is that if you have a mistake in Entering truss parameters you don't need to start the time consuming process of input data again from beginning. Rather just modify the Excel file and then "just run the program again.  Not using functions and there are only two loops in it for simplicity.  Calculation and displaying the displacements and support reaction forces and stiffness matrix for the entire structure and also calculates and displays the stiffness matrix and displacement and internal forces for each element separately.  Display date and time at the end of each analysis.  Saving the answers of the program in 2 separate txt files with the name of Reactions.txt and Displacements.txt and the end of analysis.  I mention the performance of each line of program in front of the command.  This program has the ability to solve the 2D trusses with different E and Cross section Area.  This program is Useless for the trusses that their supports are inclined I emphasized that the supports of the truss are inclined not the truss itself.
  • 2. In the Excel file which we enter inputs for the program I insert some numbers as an example and solve the program by myself in another pdf file and then we let the program to run with those numbers and compare our answer with computer answers. For solving this problem first step is to determine the degree of freedom (dof) in our truss from node 1 in this way that we call horizontal degree of freedom in node 1 as U1 and the vertical one U2 and the horizontal dof in node 2 as U3 and the vertical one as U4, the horizontal dof in node 3 as U5 and the vertical one as U6 and name them in this way till the last node. Note: it is necessary to name the dof in the mentioned way because I design the stiffness matrix according to these dof and their names. We consider the direction of the elements from left to right and from top to bottom and for inclined elements from bottom to top and we consider this law when we insert the start node and end node of each element in excel file. In excel file the units should be related to each other for example if we assume that the coordination of the nodes calculated in Cm then the cross section area must be in Cm2. When we insert the loads in the excel file if one load direction is in opposite to its related dof we assume that load as negative number. The loads must be applied on the nodes in the same way that their related dof is. For the output of this program pay attention to the pictures below: