Skip to content

Commit 45bc74b

Browse files
authored
using scipy constants atomic units directly (#5585)
1 parent 628f4c2 commit 45bc74b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/python/picongpu/extra/utils/field_ionization.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ class FieldIonization:
2020

2121
# dictionary of atomic units (AU) - values in SI units
2222
atomic_unit = {
23-
"electric field": sc.m_e**2 * sc.e**5 / (sc.hbar**4 * (4 * sc.pi * sc.epsilon_0) ** 3),
24-
"intensity": sc.m_e**4 / (8 * sc.pi * sc.alpha * sc.hbar**9) * sc.e**12 / (4 * sc.pi * sc.epsilon_0) ** 6,
25-
"energy": sc.m_e * sc.e**4 / (sc.hbar**2 * (4 * sc.pi * sc.epsilon_0) ** 2),
26-
"time": sc.hbar**3 * (4 * sc.pi * sc.epsilon_0) ** 2 / sc.m_e / sc.e**4,
23+
"electric field": sc.physical_constants["atomic unit of electric field"][0],
24+
"intensity": sc.c * sc.epsilon_0 / 2.0 * sc.physical_constants["atomic unit of electric field"][0] ** 2,
25+
"energy": sc.physical_constants["atomic unit of energy"][0],
26+
"time": sc.physical_constants["atomic unit of time"][0],
2727
}
2828

2929
def F_crit_BSI(self, Z, E_Ip):

0 commit comments

Comments
 (0)