ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicalConstants.py
Go to the documentation of this file.
15
16# This script is a direct adaptation of CLHEP/Units/PhysicalConstants.h
17# and the following is the originial CLHEP comment:
18#
19# -----
20# This file has been provided by Geant4 (simulation toolkit for HEP).
21#
22# The basic units are :
23# millimeter
24# nanosecond
25# Mega electron Volt
26# positon charge
27# degree Kelvin
28# amount of substance (mole)
29# luminous intensity (candela)
30# radian
31# steradian
32#
33# Below is a non exhaustive list of Physical CONSTANTS,
34# computed in the Internal HEP System Of Units.
35#
36# Most of them are extracted from the Particle Data Book :
37# Phys. Rev. D volume 50 3-1 (1994) page 1233
38#
39# ...with a meaningful (?) name ...
40#
41# You can add your own constants.
42#
43# Author: M.Maire
44#
45# History:
46#
47# 23.02.96 Created
48# 26.03.96 Added constants for standard conditions of temperature
49# and pressure; also added Gas threshold.
50# 08.07.20 Updated
51# 06.20.25 Updated Avogardo, h_Planck, k_Boltzmann
52# -----
53
54import AthenaCommon.SystemOfUnits as Units
55
56#
57#
58#
59pi = 3.14159265358979323846
60twopi = 2 * pi
61halfpi = pi / 2
62pi2 = pi * pi
63
64#
65#
66#
67Avogadro = 6.02214076e23 / Units.mole
68
69#
70# c = 299.792458 mm/ns
71# c^2 = 898.7404 (mm/ns)^2
72#
73c_light = 2.99792458e8 * Units.m / Units.s
74c_squared = c_light * c_light
75
76#
77# h = 4.13566e-12 MeV*ns
78# hbar = 6.58212e-13 MeV*ns
79# hbarc = 197.32705e-12 MeV*mm
80#
81h_Planck = 6.62607015e-34 * Units.joule * Units.s
82hbar_Planck = h_Planck / twopi
83hbarc = hbar_Planck * c_light
84hbarc_squared = hbarc * hbarc
85
86#
87#
88#
89electron_charge = -Units.eplus # see SystemOfUnits.h
90e_squared = Units.eplus * Units.eplus
91
92#
93# amu_c2 - atomic equivalent mass unit
94# amu - atomic mass unit
95#
96electron_mass_c2 = 0.510998910 * Units.MeV
97proton_mass_c2 = 938.272013 * Units.MeV
98neutron_mass_c2 = 939.56536 * Units.MeV
99amu_c2 = 931.494028 * Units.MeV
100amu = amu_c2 / c_squared
101
102#
103# permeability of free space mu0 = 2.01334e-16 Mev*(ns*eplus)^2/mm
104# permittivity of free space epsil0 = 5.52636e+10 eplus^2/(MeV*mm)
105#
106mu0 = 4 * pi * 1.0e-7 * Units.henry / Units.m
107epsilon0 = 1.0 / (c_squared * mu0)
108
109#
110# electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
111#
112elm_coupling = e_squared / (4 * pi * epsilon0)
113fine_structure_const = elm_coupling / hbarc
114classic_electr_radius = elm_coupling / electron_mass_c2
115electron_Compton_length = hbarc / electron_mass_c2
116Bohr_radius = electron_Compton_length / fine_structure_const
117
118alpha_rcl2 = fine_structure_const * classic_electr_radius * classic_electr_radius
119
120twopi_mc2_rcl2 = (
121 twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius
122)
123#
124#
125#
126k_Boltzmann = 8.617333e-11 * Units.MeV / Units.kelvin
127
128#
129#
130#
131STP_Temperature = 273.15 * Units.kelvin
132STP_Pressure = 1.0 * Units.atmosphere
133kGasThreshold = 10.0 * Units.mg / Units.cm3
134
135#
136#
137#
138universe_mean_density = 1.0e-25 * Units.g / Units.cm3