Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions constants/fundamental_constants.H
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ namespace C
// boltzmann's constant
constexpr amrex::Real k_B = 1.3806490000000002e-16; // erg/K

// Boltzmann constant in MeV/K
constexpr amrex::Real k_MeV = 8.61733326214518e-11; // MeV/K

// planck's constant over 2pi
constexpr amrex::Real hbar = 1.0545718176461563e-27; // erg

Expand Down
3 changes: 3 additions & 0 deletions constants/write_fundamental_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
// boltzmann's constant
constexpr amrex::Real k_B = {constants.value("Boltzmann constant") / constants.erg}; // erg/K

// Boltzmann constant in MeV/K
constexpr amrex::Real k_MeV = {constants.value("Boltzmann constant") / constants.e / constants.mega}; // MeV/K

// planck's constant over 2pi
constexpr amrex::Real hbar = {constants.value("Planck constant") / (2.0 * math.pi * constants.erg)}; // erg

Expand Down
Loading