Skip to content

Commit af30c54

Browse files
committed
Add comments to note differences from CODATA 2022
1 parent 2b4740d commit af30c54

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

multi_physics/QED/QED_tests/test_picsar_phys_constants.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ void test_case_const_phys()
5050
static_cast<RealType>(1.0545718176461565e-34);
5151
const auto exp_vacuum_permittivity =
5252
static_cast<RealType>(8.8541878188e-12);
53+
// NOTE This is adjusted from the CODATA 2022 value 1.25663706127e-6,
54+
// so that the relation between exp_light_speed, exp_vacuum_permittivity,
55+
// and exp_vacuum_permeability is exact
5356
const auto exp_vacuum_permeability =
5457
static_cast<RealType>(1.2566370612685e-6);
58+
// NOTE This is calculated from alpha = mu_0/(4*pi)*q_e*q_e*c/hbar
59+
// and differs slightly from the CODATA 2022 value 0.0072973525643
5560
const auto exp_fine_structure =
5661
static_cast<RealType>(0.0072973525643330135);
5762
const auto exp_eV =

multi_physics/QED/include/picsar_qed/physics/phys_constants.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ namespace picsar::multi_physics::phys
2727
template<typename RealType = double>
2828
constexpr auto vacuum_permittivity = RealType(8.8541878188e-12);
2929

30+
// NOTE This is adjusted from the CODATA 2022 value 1.25663706127e-6,
31+
// so that the relation between exp_light_speed, exp_vacuum_permittivity,
32+
// and exp_vacuum_permeability is exact
3033
template<typename RealType = double>
3134
constexpr auto vacuum_permeability = RealType(1.2566370612685e-6);
3235

36+
// NOTE This is calculated from alpha = mu_0/(4*pi)*q_e*q_e*c/hbar
37+
// and differs slightly from the CODATA 2022 value 0.0072973525643
3338
template<typename RealType = double>
3439
constexpr auto fine_structure = RealType(0.0072973525643330135);
3540

0 commit comments

Comments
 (0)