0% found this document useful (0 votes)
3 views

Assignment3 Programming

Uploaded by

Marvin Salang
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Assignment3 Programming

Uploaded by

Marvin Salang
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

FACULTY OF ENGINEERING

KNS1482 ENGINEERING PROGRAMMING

SEMESTER 2 2022/2023

ASSIGNMENT 3

GROUP MEMBERS Marvin Salang Anak Terry (99629),

Wensly Owen Anak Wilson (101340),

Muhammad Zulkarnain Bin Nazeman (100004),

Muhammad Nur Hakimi Bin Ratino (99972),

Mohammad Amizie Bin Agos(99768)

INSTRUCTOR’S NAME Dr Fauzan Sahdi

DATE OF SUBMISSION 10th June 2024


1. Coding

Diagram 1: Declaration and defining of data.

Diagram 2: Loop function


Diagram 3: Figure for animation

Diagram 4: Calculate Moment of Inertia

Diagram 5: Calculate Shear Force, Bending Moment and Deflection of Beam.


2. Result and Explanation

Diagram Explanation

1 Declare the variable for each and every value to determine the beam's
deflection, shear force, bending moment, and moment of inertia.
Define x as the coordinates along the beam and declare the formula
to compute the moment of inertia. Use the function of zeros to
initialize the vectors so that they store the values for shear force,
bending moment, and deflection.

2 Create a loop using a ‘for-loop’ each time to calculate the


distribution of shear force, bending moment and deflection of beam.

3 Create a figure to generate plots for shear force, bending moment and
deflection distribution at each time step. In this code, we are using a
for-loop for each distribution. ‘Subplot’ function is used to create a
grid of subplots within a single figure window, ‘plot’ function is
used to generate each distribution along a beam and the ‘title’
function is used to set the title of subplot.

4 The function is for calculate moment of inertia flange and web


3
𝑏ℎ 2
section using this formula 𝐼𝑥 = 12
+ 𝐴𝑑𝑦 .

5 This diagram explains calculation shear force, bending moments and


deflection of the beams. On shear force, we use +↑∑Fy = 0 while on
4
𝑤𝐿
bending moment we use +⥀M1 = 0. For deflection, we used δ = 8𝐸𝐼
3. Results

Graph for shear force,bending moment, and deflection of beam


4. Discussion

Graph 1.1 Shear force against length of beam

Based on the graph above, the shear force is inversely proportional to the length of the
beam. This is because the more length of beam increases, the less shear force. The maximum
shear force is 21N.

Graph 1.2 Bending moment against length of beam

According to the graph 1.2 , the bending moment is directly proportional to the length of
the beam . Therefore, when the bending moment increases, the length of the beam increases. The
minimum bending moment is -105 Nm.

Graph 1.2 Deflection against length

Based on graph deflection against length of the beam above, when the length is
increased, the deflection of the beam will stay the same. The deflection that we got is 0.215m .
5. Appendix

You might also like