SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
hydro::units Namespace Reference

Functions, constants, and classes for converting between different units. More...

Namespaces

namespace  cgs
 Entities for converting between geometric units where G=c=M=1 and CGS units.
 
namespace  geometric
 Quantities given in terms of geometric units G = c = M_odot = 1.
 
namespace  nuclear
 The defining quantities of the nuclear fm-MeV/c^2-fm/c unit system.
 

Detailed Description

Functions, constants, and classes for converting between different units.

In SpECTRE we prefer to use geometric units where G=c=M=1, as is standard in numerical relativity. However, in order to interface with other codes, we need to sometimes convert units. This namespace is designed to hold the various conversion factors and functions. A unit library/system would be nice, but is a non-trivial amount of work.