2025-02-18 19:23:19 -05:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2025-02-22 20:26:56 -05:00
|
|
|
import time
|
2025-02-23 05:01:11 -05:00
|
|
|
from dwba_zr import DWBA_ZR
|
2025-02-22 20:26:56 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
haha = DWBA_ZR("16O", "d", "p", "17O", "1/2+", "1s1/2", 0.0, 10)
|
2025-02-22 20:26:56 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
# haha.boundState.PlotBoundState()
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
haha.PrintRadialIntegral()
|
|
|
|
# haha.PlotRadialIntegral()
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
# haha.PlotDistortedWave(True, 2, 1, 20)
|
|
|
|
# haha.PlotDistortedWave(False, 2, 1.5, 20)
|
2025-02-22 20:26:56 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
j = 1/2
|
|
|
|
sa = 1
|
|
|
|
sb = 1/2
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
# hehe = haha.Gamma(0, 1, 0, 0.5, 0, 1, 0.5)
|
|
|
|
# print(hehe)
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
# haha.PreCalLegendreP(10)
|
|
|
|
# print(haha.legendrePArray)
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
# jaja = haha.Beta(-1, 1, -0.5) * haha.ffactor
|
|
|
|
# print(jaja)
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
# lala = haha.AngDist(10)
|
|
|
|
# print(lala)
|
2025-02-22 20:26:56 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
angList = []
|
|
|
|
xsec = []
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
start_time = time.time()
|
2025-02-23 06:05:24 -05:00
|
|
|
for i in range(0, 181, 10):
|
2025-02-23 05:01:11 -05:00
|
|
|
angList.append(i)
|
|
|
|
kaka = haha.AngDist(i)
|
|
|
|
xsec.append(kaka)
|
|
|
|
print(i, kaka)
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
stop_time = time.time()
|
|
|
|
print(f"Total time {(stop_time - start_time) :.2f} sec")
|
2025-02-20 00:39:22 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
import matplotlib.pyplot as plt
|
2025-02-22 20:26:56 -05:00
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
plt.plot(angList, xsec)
|
|
|
|
plt.xlim(-1, 181)
|
|
|
|
plt.yscale("log")
|
|
|
|
plt.grid()
|
2025-02-22 20:26:56 -05:00
|
|
|
plt.show(block=False)
|
|
|
|
|
2025-02-23 05:01:11 -05:00
|
|
|
input("Press Enter to continue...")
|