https://github.com/xzackli/unitfulcosmo.jl
common cosmological units
https://github.com/xzackli/unitfulcosmo.jl
cosmology natural units
Last synced: 2 months ago
JSON representation
common cosmological units
- Host: GitHub
- URL: https://github.com/xzackli/unitfulcosmo.jl
- Owner: xzackli
- License: mit
- Created: 2021-02-10T23:31:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-18T02:23:48.000Z (over 4 years ago)
- Last Synced: 2025-03-08T05:46:21.569Z (2 months ago)
- Topics: cosmology, natural, units
- Language: Julia
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnitfulCosmo
[](https://xzackli.github.io/UnitfulCosmo.jl/stable)
[](https://xzackli.github.io/UnitfulCosmo.jl/dev)
[](https://github.com/xzackli/UnitfulCosmo.jl/actions)
[](https://codecov.io/gh/xzackli/UnitfulCosmo.jl)This package implements two specialized unit systems commonly found in cosmology. It is based on Mason Protter's [NaturallyUnitful.jl](https://github.com/MasonProtter/NaturallyUnitful.jl), a different natural unit system that uses eV as the base unit.
For more information, read the [documentation](https://xzackli.github.io/UnitfulCosmo.jl/dev).
To generate your own conversion factors, you basically solve a linear system using something like this Mathematica code,
```
Solve[
{c m/s == \[HBar] (kg m^2)/
s^2 s == \[Epsilon]0 A^2 s^4 kg^-1 m^-3 ==
kb (kg m^2)/s^2 1/Kelvin == 1},
{ kg, Kelvin, s, A} ]
```