-
Notifications
You must be signed in to change notification settings - Fork 1
/
bohr_calc.py
48 lines (39 loc) · 1.28 KB
/
bohr_calc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import time
radius = 0.53
velocity = 2.18
def find_radius(Z, N):
answer = 0.53 * ( N * N ) / Z
Z = str(Z)
N = str(N)
print("Radius of " + N + "th orbit of " + Z + " atomic number is " + str(round(answer, 2)) + " A")
def find_velocity(Z, N):
answer = 2.18 * Z / N
Z = str(Z)
N = str(N)
print("Velocity of electron in " + N + "th orbit of " + Z + " atomic number is " + str(round(answer, 2)) + " 10^6 M/S")
def find_ke(Z, N):
answer = 13.6 * ((Z * Z) / (N * N))
Z = str(Z)
N = str(N)
print("Kinetic energy of " + N + "th orbit of " + Z + " atomic number is " + str(round(answer, 2)) + " ev")
def find_pe(Z, N):
answer = -2 * 13.6 * ((Z * Z) / (N * N))
Z = str(Z)
N = str(N)
print("Potential energy of " + N + "th orbit of " + Z + " atomic number is " + str(round(answer, 2)) + " ev")
def find_te(Z, N):
answer = -13.6 * ((Z * Z) / (N * N))
Z = str(Z)
N = str(N)
print("Total energy of " + N + "th orbit of " + Z + " atomic number is " + str(round(answer, 2)) + " ev")
print("Calculations for Bohr's Atomic Model, valid only for Hydrogen-like atoms")
Z = input("Enter Atomic Number: ")
N = input("Enter Shell Number: ")
Z = int(Z)
N = int(N)
find_radius(Z, N)
find_velocity(Z, N)
find_ke(Z, N)
find_pe(Z, N)
find_te(Z, N)
time.sleep(10)