0% found this document useful (0 votes)
8 views4 pages

Calculate Column Buckling Load in Python

This document provides a quiz problem to calculate the maximum axial load (Pcr) a column can support without buckling. It includes a hollow steel tube column cross section, formulas for moment of inertia and critical buckling load, and asks the student to write a Python program that takes inputs, calculates moment of inertia and maximum axial load, and displays the outputs.

Uploaded by

Siti nurain
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Calculate Column Buckling Load in Python

This document provides a quiz problem to calculate the maximum axial load (Pcr) a column can support without buckling. It includes a hollow steel tube column cross section, formulas for moment of inertia and critical buckling load, and asks the student to write a Python program that takes inputs, calculates moment of inertia and maximum axial load, and displays the outputs.

Uploaded by

Siti nurain
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Quiz 1

Create a simple sequential program to calculate the maximum axial load (Pcr) the
column can support so that it does not buckle. A hollow steel tube column having the
cross section as in the figure. Calculate the value of moment of inertia, I in the coding
in order to use the formula of critical buckling load. Use E, 200GPa

�2��
Pcr = �2

a) List the Input (variables), Process and Output.

b) Create flowchart & pseudocode of the above situation

START

DECLARE float moment of Inertia, mass,


external radius, internal radius

INPUT moment of inertia, mass,


external radius, internal radius

CALCULATE moment of inertia


1
Inertia = 2(mass)(external radius2 x internal
radius)

DISPLAY moment of inertia


DECLARE float elastic, length, inertia

INPUT float elastic, length, inertia

CALCULATE maximum axial load


�2 ��
Pcr = �2

DISPLAY maximum axial load

END

c) Write a program based on the flowchart using Python language.

#This program is to calculate moment of inertia,I and maximum axial load, Pcr

print ("Let's calculate moment of inertia,I")

#Declaring variable & gathering input


mass = float (input("Enter your mass value :"))
externalradius = float (input("Enter your external radius value :"))
internalradius = float (input("Enter your internal radius value :"))

#Calculating moment of inertia (Process)


Inertia = 1/2*(mass)*((externalradius*externalradius)+(internalradius*internalradius))

#DISPLAY Inertia output


print ("Your Inertia value is:", Inertia, "kgm2")
print ("----------------------------------------")
print ("Let's calculate maximum axial load,Pcr")

#Declaring variable & gathering input


Elastic = float (input("Enter your Elastic value :"))
Length = float (input("Enter your Length value :"))
Inertia = float (input("Enter your Inertia value :"))

#Calculating maximum axial load (Process)


maximumaxialload = ((3.142*3.142)* Elastic* Inertia)/(Length*Length)

#DISPLAY maximum axial load output


print ("Your maximum axial load value is:", maximumaxialload, "N")

d) Submit the coding file in phyton [Link] and flowchart in pdf through Author
system.

You might also like