[ZARNOSH-KTK]
[COMPUTER PROGRAMMING] 8/31/20 [FINAL PROJECT]
,2
C-P-PROJECT (ZARNOSH-KTK)
FINAL TERM PROJECT
SUBJECT: COMPUTER PROGRAMMING
COURSE INSTRUCTOR: DR. MOHAMMAD ADIL
STUDENT NAME: ZARNOSH KHATTAK
SECTION: M
CLASSROLL# 161
REG# 19PWCIV5207
UNIVERSITY NAME: UET PESHAWAR
DEPARTMENT: CIVIL
SEMESTER: 2ND
[C-P-F-PROJECT] [COMPUTER PROGRAMMING]
,2
C-P-PROJECT (ZARNOSH-KTK)
TABLE OF CONTENTS:
Contents
EXECUTIVE SUMMARY:.......................................................................................................3
INTRODUCTION:................................................................................................................... 4
DERIVATION OF FORMULAS:.............................................................................................5
PHYTON CODE:.................................................................................................................. 21
WORD-FORMAT:............................................................................................................. 21
PICTURE FORMAT:......................................................................................................... 25
RUN AND RESULTS:.......................................................................................................... 28
1st EXAMPLE:................................................................................................................... 28
2nd EXAMPLE:................................................................................................................... 29
3rd EXAMPLE:.................................................................................................................. 30
CONCLUSION:.................................................................................................................... 31
[C-P-F-PROJECT] [COMPUTER PROGRAMMING]
, 2
C-P-PROJECT (ZARNOSH-KTK)
EXECUTIVE SUMMARY:
TASK TO BE PROGRAMMED:
Referring to figure 1, write a user friendly Python code to find member forces
(F12,F23,F13) and joint reactions (V1, H1 and V3) of simple 3 node(1,2,3)
determinate truss analysis to find for given coordinates {(x1,y1),(x2,y2),(x3,y3)}of
joints and joint force F with inclination .
Here we would develop such python code for which,
Inputs:
These values should act as variable for python, by changing it the
output shall be changed.
1. Node coordinates {(x1, y1), (x2, y2), (x3, y3)}
2. Force F and its inclination” ∅”
Outputs:
The programmed would be able to find out,
1. Values of member forces (F12, F23, F13)
2. Nature of member forces (Compressive or Tensile)
3. Reactions at node-1 (V1, H1) and node-3 (V3)
4. Plot of triangular truss according to its coordinates.
[C-P-F-PROJECT] [COMPUTER PROGRAMMING]