File: beam.py

package info (click to toggle)
persalys 19.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,900 kB
  • sloc: xml: 97,263; cpp: 61,701; python: 4,109; sh: 397; makefile: 84
file content (18 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python3
import time


def main():
    time.sleep(2)
    F = 1.00e00
    E = 3.00e04
    L = 5.00e00
    II = 1.10e-03
    dev = F * L**3 / (3 * E * II)
    with open("beam_output.txt", "w") as f:
        f.write("deviation=" + str(dev) + "\n")
    return dev


if __name__ == "__main__":
    main()