Solving a Truss Problem with MATLAB: Equilibrium Equations and Results

In summary, MATLAB is a programming language and software tool commonly used in scientific and engineering fields for efficient and accurate computation of complex mathematical equations. It is often used to solve truss problems by inputting equilibrium equations and obtaining results such as member forces and reactions. Equilibrium equations are crucial in solving truss problems as they provide a systematic approach to analyzing the structure and determining the unknown forces and reactions. In order for a truss problem to be solvable using MATLAB, it must meet certain criteria such as having a determinate structure and a limited number of unknowns. While MATLAB can be used to analyze various types of trusses, it does have limitations and it is important to verify results and consider other factors when using it for solving truss
  • #1
CR19
4
0
Ok, I've had a shot at this problem we've been given in MATLAB. Though I'm very new to physics forums.

I've attached the actual problem and also a few of my equilibrium equations.

I've written out the matrice in MATLAB but I'm guessing its incorrect as the answer I'm getting in Matlab is...

A =

Columns 1 through 12

1.0000 0 0 0.7807 1.0000 0 0 0 0 0 0 0
0 1.0000 0 0.6249 0 0 0 0 0 0 0 0
0 0 0 0 -1.0000 0 0 0 1.0000 0 0 0
0 0 0 0 0 -1.0000 0 0 0 0 0 0
0 0 0 0 0 0 0 -0.7807 -1.0000 0 0 0.7807
0 0 0 0 0 0 0 -0.6249 0 -1.0000 0 -0.6249
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 1.0000 0 0 0 0 0 0 0 0 0
0 0 0 -0.7807 0 0 1.0000 0.7807 0 0 0 0
0 0 0 -0.6249 0 1.0000 0 0.6249 0 0 0 0
0 0 0 0 0 0 -1.0000 0 0 0 1.0000 0
0 0 0 0 0 0 0 0 0 -1.0000 0 0
0 0 0 0 0 0 0 0 0 0 -1.0000 -0.7807
0 0 0 1.0000 0 0 0 0 0 0 0 0

Columns 13 through 16

0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
1.0000 0 0 0
0 0 0 0
-1.0000 0 1.0000 0
0 -1.0000 0 0
0 0 -1.0000 -0.7807
0 0 0 -0.6249
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0.7807
-0.6249 0 0 0.6249


b =

20
0
0
-10
0
-20
0
-10
0
20
0
0
0
0
0
0


x =

20.0000
-394.7389
-334.7389
631.6860
-493.1616
10.0000
12.4934
615.6834
-493.1616
0
12.4934
-583.6781
443.1882
10.0000
443.1882
-567.6755

Results:

x(Ha)=20 [kN]
x(Va)=-394.7389 [kN]
x(1)=-334.7389 [kN]
x(2)=631.686 [kN]
x(3)=-493.1616 [kN]
x(4)=10 [kN]
x(5)=12.4934 [kN]
x(6)=615.6834 [kN]
x(7)=-493.1616 [kN]
x(8)=0 [kN]
x(9)=12.4934 [kN]
x(Ve)=-583.6781 [kN]
x(10)=443.1882 [kN]
x(11)=10 [kN]
x(12)=443.1882 [kN]
x(13)=-567.6755 [kN]

I've written all the equilibrium equation from Horizontal forces Equation 1, Vertical Forces @A Equation 2...but the calculations which I performed by myself I got respectable answers.. But with MATLAB it doesn't appear to give me appropriate answers...

Can anyone help or point me in the right direction.

Many Thanks
 

Attachments

  • Truss Design.doc
    104 KB · Views: 492
  • Truss equilibrium equations.doc
    64 KB · Views: 245
Physics news on Phys.org
  • #2
Ans: The issue here is that your matrix A and vector b are incorrect. You need to make sure that the matrix A and vector b represent the equilibrium equations correctly. For example, you should have four equations in your matrix A and vector b representing the horizontal and vertical forces in each of the two directions. Also, make sure that the coefficients in the matrix A correspond to the respective variables in the vector b. Once you have these correct, the solution generated by MATLAB should be correct.
 
  • #3


I would first commend you for taking on the challenge of solving a truss problem in MATLAB. It is a powerful tool for solving complex equations and can save a lot of time and effort in calculations. However, as you have noticed, it is important to double check your results and make sure they make sense. In this case, it seems like there may be an error in your code or in the way you set up your equations.

I would suggest going back to your original equations and checking them for any mistakes. Also, try to simplify your code and make it more readable so it is easier to spot any errors. You can also try using different methods or functions in MATLAB to solve the problem and see if you get different results.

Additionally, it may be helpful to consult with a colleague or a tutor who has more experience with MATLAB and truss problems. They may be able to offer some insights or suggestions on how to improve your code.

Overall, solving problems in MATLAB can be challenging, but it is also a great learning experience. Keep working at it and don't be discouraged by initial mistakes. With practice and perseverance, you will become more proficient in using this powerful tool.
 

1. What is MATLAB and how is it used to solve truss problems?

MATLAB is a programming language and software tool commonly used in scientific and engineering fields. It allows for efficient and accurate computation of complex mathematical equations and is often used to solve truss problems by inputting equilibrium equations and obtaining results such as member forces and reactions.

2. What are equilibrium equations and why are they important in solving truss problems?

Equilibrium equations are mathematical expressions that represent the balance of forces and moments acting on a truss structure. These equations are crucial in solving truss problems as they provide a systematic approach to analyzing the structure and determining the unknown forces and reactions at each joint.

3. How do you ensure that a truss problem is solvable using MATLAB?

In order for a truss problem to be solvable using MATLAB, it must meet certain criteria, such as having a determinate structure (i.e. all member forces and reactions can be determined through equilibrium equations) and having a limited number of unknowns. Additionally, the truss must be statically determinate, meaning that the number of unknowns does not exceed the number of equilibrium equations.

4. Can MATLAB be used to analyze different types of trusses?

Yes, MATLAB can be used to analyze various types of trusses, including simple trusses, compound trusses, and those with redundant members. However, the approach and equations used may vary depending on the type of truss.

5. Are there any limitations to using MATLAB for solving truss problems?

While MATLAB is a powerful tool for solving truss problems, it does have limitations. For example, it may not be suitable for analyzing very large or complex truss structures, and it relies on accurate input of equilibrium equations and assumptions about the truss. It is important to verify results and consider other factors, such as material properties and structural stability, when using MATLAB to solve truss problems.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
0
Views
1K
  • Advanced Physics Homework Help
Replies
6
Views
1K
Back
Top