daisy/buildscript/constants.toml

209 lines
4.1 KiB
TOML
Raw Permalink Normal View History

2023-06-14 09:05:37 -07:00
# This file defines all constants daisy knows about.
# Each is an entry in the `constant` array.
#
# Parameters:
# enum_name: capitalized string. Name of this constant's enum.
# strings: string or string array. What strings will be parsed as this constant.
# The first entry in this array tells daisy how to print this constant.
# value: value of this constant. Will be evaluated just like user input.
2023-08-02 15:36:55 -07:00
# pretty_name: string, name of this constant in help texts.
# if this is missing, this constant will not be listed.
2023-06-13 20:15:10 -07:00
[[constant]]
enum_name = "Pi"
2023-08-02 15:36:55 -07:00
pretty_name = "π"
2023-06-13 20:15:10 -07:00
strings = ["π", "pi"]
value = "3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067"
[[constant]]
enum_name = "Phi"
2023-08-02 15:36:55 -07:00
pretty_name = "Golden ratio"
strings = ["φ", "phi"]
2023-06-13 20:15:10 -07:00
value = "1.618033988749894848204586834365638117720309179805762862135448622705260462818902449707207204189391137"
[[constant]]
enum_name = "Euler"
2023-08-02 15:36:55 -07:00
pretty_name = "Euler's number"
2023-06-13 20:15:10 -07:00
strings = "e"
value = "2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427"
2023-08-02 08:49:20 -07:00
[[constant]]
enum_name = "LightSpeed"
2023-08-02 15:36:55 -07:00
pretty_name = "Speed of light"
2023-08-02 08:49:20 -07:00
strings = "c"
value = "299792458 meter/second"
[[constant]]
enum_name = "ElectricConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Electric constant"
2023-08-02 08:49:20 -07:00
strings = ["ε₀", "epsilon_zero", "eps_zero", "electricconstant"]
value = "8.8541878128e-12 F/m"
[[constant]]
enum_name = "ElectronCharge"
2023-08-02 15:36:55 -07:00
pretty_name = "Electron charge"
2023-08-02 08:49:20 -07:00
strings = ["electroncharge", "elementarycharge"]
value = "1.602176634e-19 C"
[[constant]]
enum_name = "ElectronMass"
2023-08-02 15:36:55 -07:00
pretty_name = "Electron mass"
2023-08-02 15:41:04 -07:00
strings = ["electronmass"]
2023-09-28 11:35:16 -07:00
value = "9.1093837015e-31 kg"
2023-08-02 08:49:20 -07:00
[[constant]]
enum_name = "ProtonMass"
2023-08-02 15:36:55 -07:00
pretty_name = "Proton mass"
2023-08-02 15:41:04 -07:00
strings = ["protonmass"]
2023-08-02 08:49:20 -07:00
value = "1.67262192369e-27 kg"
[[constant]]
enum_name = "GravityConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Graviational constant"
2023-08-02 08:49:20 -07:00
strings = "G"
value = "6.67430e-11 (m^3)/(s^2 * kg)"
[[constant]]
enum_name = "GravityEarth"
2023-08-02 15:36:55 -07:00
pretty_name = "Standard Earth gravity"
2023-08-02 08:49:20 -07:00
strings = ["g₀", "g_zero", "gravity"]
value = "9.80665 m/(s^2)"
[[constant]]
enum_name = "BoltzmannConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Boltzmann constant"
2023-08-02 08:49:20 -07:00
strings = ["k_B", "boltzmannconstant"]
value = "1.380649e-23 J/K"
[[constant]]
enum_name = "FaradayConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Faraday constant"
2023-08-02 08:49:20 -07:00
strings = ["faradayconstant"]
value = "9.64853321233100184e4 C/mol"
[[constant]]
enum_name = "MagneticConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Magnetic constant"
2023-08-02 08:49:20 -07:00
strings = ["μ₀","mu_zero"]
value = "1.25663706212 N/(A*A)"
[[constant]]
enum_name = "AvogadroConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Avogadro constant"
2023-08-02 08:49:20 -07:00
strings = ["N_A", "avogadroconstant"]
value = "6.02214076e23 mol^-1"
[[constant]]
enum_name = "PlanckConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Planck constant"
2023-08-02 08:49:20 -07:00
strings = ["planckconstant"]
value = "6.62607015e-34 J/Hz"
[[constant]]
enum_name = "Hbar"
2023-08-02 15:36:55 -07:00
pretty_name = "Reduced Planck constant"
2023-08-02 08:49:20 -07:00
strings = ["ℏ", "h_bar"]
value = "planckconstant / (2 pi)"
[[constant]]
enum_name = "GasConstant"
2023-08-02 15:36:55 -07:00
pretty_name = "Gas constant"
2023-08-02 08:49:20 -07:00
strings = ["R", "gasconstant"]
value = "avogadroconstant * boltzmannconstant"
2023-06-13 20:15:10 -07:00
[[constant]]
enum_name = "MPG"
strings = "mpg"
value = "mile/gallon"
[[constant]]
enum_name = "MPH"
strings = "mph"
value = "mile/hour"
[[constant]]
enum_name = "DPI"
strings = "dpi"
value = "dot/inch"
[[constant]]
enum_name = "PPI"
strings = "ppi"
value = "pixel/inch"
[[constant]]
enum_name = "FPS"
strings = "fps"
value = "frame/second"
[[constant]]
enum_name = "PCT"
strings = "pct"
value = "0.01"
[[constant]]
enum_name = "PPM"
strings = "ppm"
value = "1e-6"
[[constant]]
enum_name = "PPB"
strings = "ppb"
value = "1e-9"
[[constant]]
enum_name = "PPT"
strings = "ppt"
value = "1e-12"
[[constant]]
enum_name = "PPQ"
strings = "ppq"
value = "1e-15"
2023-06-14 08:42:10 -07:00
2023-06-14 08:43:08 -07:00
[[constant]]
enum_name = "WH"
strings = "Wh"
value = "W * hour"
2023-06-14 08:42:10 -07:00
[[constant]]
enum_name = "KWH"
strings = "kWh"
value = "kW * hour"
[[constant]]
enum_name = "MWH"
strings = "WMh"
value = "MW * hour"
[[constant]]
enum_name = "GWH"
strings = "GWh"
value = "GW * hour"
[[constant]]
enum_name = "TWH"
strings = "TWh"
value = "TW * hour"
[[constant]]
enum_name = "PWH"
strings = "PWh"
2023-09-28 11:35:16 -07:00
value = "PW * hour"