Files
kittycad.py/kittycad/models/physics_constant_name.py

76 lines
4.3 KiB
Python
Raw Normal View History

2022-07-26 00:11:22 +00:00
from enum import Enum
class PhysicsConstantName(str, Enum):
bump (#80) * bump Signed-off-by: Jess Frazelle <github@jessfraz.com> * some fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * YOYO NEW API SPEC! * reformat Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * for now force true Signed-off-by: Jess Frazelle <github@jessfraz.com> * run the tests on generations Signed-off-by: Jess Frazelle <github@jessfraz.com> * add tests Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix some types Signed-off-by: Jess Frazelle <github@jessfraz.com> * float to top Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * more noqa Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * ruff pass Signed-off-by: Jess Frazelle <github@jessfraz.com> * add docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * even less mypy errors Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * add test Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * cleanup Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * new path Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes for mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * skip tests Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 00:58:06 -07:00
"""The valid types of phys constant names.""" # noqa: E501
"""# pi - Ratio of a circle's circumference to its diameter. <https://en.wikipedia.org/wiki/Pi> """ # noqa: E501
PI = "pi"
"""# c - Speed of light in vacuum. <https://en.wikipedia.org/wiki//Speed_of_light> """ # noqa: E501
C = "c"
"""# Speed of light in a vacuum. <https://en.wikipedia.org/wiki//Speed_of_light> """ # noqa: E501
SPEED_OF_LIGHT = "speed_of_light"
"""# G - Newtonian constant of gravitation. <https://en.wikipedia.org/wiki/Gravitational_constant> """ # noqa: E501
G = "G"
"""# Newtonian constant of gravitation. <https://en.wikipedia.org/wiki/Gravitational_constant> """ # noqa: E501
NEWTONIAN_GRAVITATION = "newtonian_gravitation"
"""# h - Planck constant. <https://en.wikipedia.org/wiki/Planck_constant> """ # noqa: E501
H = "h"
"""# Planck constant. <https://en.wikipedia.org/wiki/Planck_constant> """ # noqa: E501
PLANCK_CONST = "planck_const"
"""# mu_0 - vacuum permeability. <https://en.wikipedia.org/wiki/Vacuum_permeability> """ # noqa: E501
MU_0 = "mu_0"
"""# vacuum permeability. <https://en.wikipedia.org/wiki/Vacuum_permeability> """ # noqa: E501
VACUUM_PERMEABILITY = "vacuum_permeability"
"""# ε_0 - vacuum permitivity. <https://en.wikipedia.org/wiki/Vacuum_permittivity> """ # noqa: E501
E_0 = "E_0"
"""# vacuum permitivity. <https://en.wikipedia.org/wiki/Vacuum_permittivity>] """ # noqa: E501
VACUUM_PERMITIVITY = "vacuum_permitivity"
"""# Z_0 - characteristic impedance of vacuum. <https://en.wikipedia.org/wiki/Impedance_of_free_space> """ # noqa: E501
Z_0 = "Z_0"
"""# characteristic impedance of vacuum. <https://en.wikipedia.org/wiki/Impedance_of_free_space> """ # noqa: E501
VACUUM_IMPEDANCE = "vacuum_impedance"
"""# k_e - Coulomb's constant. <https://en.wikipedia.org/wiki/Coulomb_constant> """ # noqa: E501
K_E = "k_e"
"""# Coulomb's constant. <https://en.wikipedia.org/wiki/Coulomb_constant> """ # noqa: E501
COULOMB_CONST = "coulomb_const"
"""# e - elementary charge. <https://en.wikipedia.org/wiki/Elementary_charge> """ # noqa: E501
E = "e"
"""# elementary charge. <https://en.wikipedia.org/wiki/Elementary_charge> """ # noqa: E501
ELEMENTARY_CHARGE = "elementary_charge"
"""# m_e - electron mass. <https://en.wikipedia.org/wiki/Electron_mass> """ # noqa: E501
M_E = "m_e"
"""# electron mass. <https://en.wikipedia.org/wiki/Electron_mass> """ # noqa: E501
ELECTRON_MASS = "electron_mass"
"""# m_p - proton mass. <https://en.wikipedia.org/wiki/Proton> """ # noqa: E501
M_P = "m_p"
"""# proton mass. <https://en.wikipedia.org/wiki/Proton> """ # noqa: E501
PROTON_MASS = "proton_mass"
"""# mu_B - Bohr magneton. <https://en.wikipedia.org/wiki/Bohr_magneton> """ # noqa: E501
MU_B = "mu_B"
"""# Bohr magneton. <https://en.wikipedia.org/wiki/Bohr_magneton> """ # noqa: E501
BOHR_MAGNETON = "bohr_magneton"
"""# NA - Avogadro's Number. <https://en.wikipedia.org/wiki/Avogadro_constant> """ # noqa: E501
NA = "NA"
"""# Avogadro's Number. <https://en.wikipedia.org/wiki/Avogadro_constant> """ # noqa: E501
AVOGADRO_NUM = "avogadro_num"
"""# R - Molar Gas constant. <https://en.wikipedia.org/wiki/Gas_constant> """ # noqa: E501
R = "R"
"""# Molar Gas constant. <https://en.wikipedia.org/wiki/Gas_constant> """ # noqa: E501
MOLAR_GAS_CONST = "molar_gas_const"
"""# K_B - Boltzmann constant. <https://en.wikipedia.org/wiki/Boltzmann_constant> """ # noqa: E501
K_B = "K_B"
"""# Boltzmann constant. <https://en.wikipedia.org/wiki/Boltzmann_constant> """ # noqa: E501
BOLTZMANN_CONST = "boltzmann_const"
"""# F - Faraday constant. <https://en.wikipedia.org/wiki/Faraday_constant> """ # noqa: E501
F = "F"
"""# Faraday constant. <https://en.wikipedia.org/wiki/Faraday_constant> """ # noqa: E501
FARADAY_CONST = "faraday_const"
"""# Sigma - Stefan-Boltzmann constant. <https://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_constant> """ # noqa: E501
SIGMA = "sigma"
"""# Stefan-Boltzmann constant. <https://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_constant> """ # noqa: E501
STEFAN_BOLTZMANN_CONST = "stefan_boltzmann_const"
2022-07-26 00:11:22 +00:00
def __str__(self) -> str:
return str(self.value)