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

Python Record

This document provides a record of a student completing a laboratory course in practical Python application programming for civil engineers. It includes the student's name and ID, certification that he satisfactorily completed the required experiments, and the signature of the staff member in charge. The course included Python coding exercises to calculate stress, strain, principal stresses and directions from data sets, with output saved to files.

Uploaded by

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

Python Record

This document provides a record of a student completing a laboratory course in practical Python application programming for civil engineers. It includes the student's name and ID, certification that he satisfactorily completed the required experiments, and the signature of the staff member in charge. The course included Python coding exercises to calculate stress, strain, principal stresses and directions from data sets, with output saved to files.

Uploaded by

Rishu Mahaseth
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

PYTHON RECORD

Rishu Mahaseth
1BM21CV082 BATCH: C1
LABORATORY CERTIFICATE

This is to certify that Mr. Rishu Mahaseth has


satisfactorily completed the course of experiments
in practical Python application programming for
civil engineers (21CV4AEPPC) prescribed by
Visvesvaraya Technological University for the
fourth semester in the laboratory of the college in
the year 2023.

Staff in charge of the batch

Date:

Name of the candidate: Rishu Mahaseth


Marks
Maximum Obtained U.S.N.: 1BM21CV082

Signature of the Candidate


1. Write python code to calculate stress and strain from given data set where Load= N,
Stress= N/m2 , area = m2 , change in length =m. Print the output in an output file
“Output.txt”

Input Data (Data.txt)


125.1546516 0.039110829 0.004693299
28.2250993 0.008820344 0.001058441
250.5635883 0.078301121 0.009396135
181.3553295 0.05667354 0.006800825
253.7340715 0.079291897 0.009515028
148.4334683 0.046385459 0.005566255
15.34187695 0.004794337 0.00057532
21.422593 0.00669456 0.000803347
132.5119785 0.041409993 0.004969199
325.6042053 0.101751314 0.012210158
53.93746048 0.016855456 0.002022655
332.5047374 0.10390773 0.012468928
331.3347506 0.10354211 0.012425053
277.1861699 0.086620678 0.010394481
40.37810879 0.012618159 0.001514179
143.9776345 0.044993011 0.005399161
310.3462529 0.096983204 0.011637984
375.1630697 0.117238459 0.014068615
174.1151638 0.054410989 0.006529319
294.2936978 0.091966781 0.011036014
204.6887315 0.063965229 0.007675827
194.8238806 0.060882463 0.007305896
346.374625 0.10824207 0.012989048
233.498543 0.072968295 0.008756195
115.0844379 0.035963887 0.004315666
PROGRAM

OUTPUT
stresses:
[3199.99996932 3199.99982994 3200.00001405 3200.00002647 3200.00001387
3199.99998922 3199.99969756 3200.00014938 3200.00002173 3200.00000491
3200.00007594 3200.00001347 3199.99998648 3200.00000346 3199.99999921
3199.99998444 3200.00000103 3200.00000768 3199.99998162 3199.99998478
3199.99997968 3199.99998357 3200.00000924 3199.9999863 3199.9999861 ]
strains:
[0.0046933 0.00105844 0.00939613 0.00680082 0.00951503 0.00556625
0.00057532 0.00080335 0.0049692 0.01221016 0.00202265 0.01246893
0.01242505 0.01039448 0.00151418 0.00539916 0.01163798 0.01406861
0.00652932 0.01103601 0.00767583 0.0073059 0.01298905 0.00875619
0.00431567]
output saved to output.txt
2. Write Python code to calculate principal stresses and direction. Plot the Mohr’s circle.

PROGRAM
OUTPUT

You might also like