Skip to content

Commit

Permalink
Add Stefan-Boltzmann constant, closes #189
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp authored and David Peter committed Oct 8, 2023
1 parent fda779e commit 2748bd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/list-constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Colloquial:
| Neutron mass | `neutron_mass` | `Mass` |
| Avogadro constant | `avogadro_constant`, `N_A` | `1 / AmountOfSubstance` |
| Boltzmann constant | `boltzmann_constant`, `k_B` | `Energy / Temperature` |
| Stefan-Boltzmann constant | `stefan_boltzmann_constant` | `Power / (Area × Temperature^4)` |
| Ideal gas constant | `gas_constant`, `R` | `Energy / (AmountOfSubstance × Temperature)` |
| Planck length | `planck_length` | `Length` |
| Planck mass | `planck_mass` | `Mass` |
Expand Down
3 changes: 3 additions & 0 deletions numbat/modules/physics/constants.nbt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ let N_A = avogadro_constant
let boltzmann_constant: Energy / Temperature = 1.380649e-23 J / K
let k_B = boltzmann_constant

# Stefan-Boltzmann constant
let stefan_boltzmann_constant: Power / (Area × Temperature^4) = 2 π^5 k_B^4 / (15 planck_constant^3 c^2)

# Ideal gas constant
let gas_constant: Energy / (AmountOfSubstance × Temperature) = 8.31446261815324 J / (K mol)
let R = gas_constant
Expand Down

0 comments on commit 2748bd7

Please sign in to comment.