logo

Crowdly

Browser

Add to Chrome

Exercise L7.E1 You are given a file containing data about multiple beams. E...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Exercise L7.E1

You are given a file containing data about multiple beams. Each line in the file represents data for one beam, formatted as follows:

                 Length YoungsModulus MomentOfInertia Load

  • Length: The length of the beam in meters.
  • YoungsModulus: The Young's modulus of the material in GPa (Gigapascals).

  • MomentOfInertia: The moment of inertia of the beam's cross-section in m4 (meters to the fourth power).

  • Load: The load applied to the center of the beam in kN (kilonewtons).

                 Example line:

                       5.0 210 0.0001 10

Note: The file name will be given as input.

Example Input File:

5.0 210 0.0001 106.0 200 0.0002 124.0 190 0.00015 87.0 250 0.0001 158.0 220 0.00025 20

Develop a python program to read the file and calculate the following for each beam:

  1. The maximum deflection at the center of the beam.
  2. The maximum bending stress at the center of the beam.

Note: The following formulas can be used.

Maximum deflection (Dmax) : 

            Dmax = P L3 48 E I

             Dmax = \frac{PL^3}{48EI} Dmax = \frac{PL^3}{48EI}

       where;                 P - load in Newtons, 

                 L - length, 

                 E - Young's modulus, 

                 𝐼  - moment of inertia.

Maximum bending stress (Smax​)

     Smax = \frac{PL}{4I} Smax = \frac{PL}{4I}

Please submit the flowchart diagram that illustrates the algorithm of your program here.

More questions like this

Want instant access to all verified answers on online.uom.lk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome