aboutsummaryrefslogtreecommitdiffstats
path: root/libprakpp/include/prakphys.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libprakpp/include/prakphys.hpp')
-rw-r--r--libprakpp/include/prakphys.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/libprakpp/include/prakphys.hpp b/libprakpp/include/prakphys.hpp
new file mode 100644
index 0000000..1eaef5a
--- /dev/null
+++ b/libprakpp/include/prakphys.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+
+
+#define TP template <typename T = double> constexpr const T
+
+namespace conv {
+TP C_to_K = 273.15; // Celsius-Kelvin
+TP K_to_C = -273.15;
+TP J_to_eV = 6.2415e+18;
+TP eV_to_J = 1 / 6.2415e+18;
+} // namespace conv
+
+namespace prak {
+TP g = 9.81;
+TP c = 299792458;
+TP h = 6.62607015e-34;
+TP hh = 1.054571817e-34;
+TP k = 1.380649e-23;
+TP G = 6.67430151515e-11;
+TP e = 1.602176634e-19;
+TP m_e = 1.6021766342828e-31;
+TP m_p = 1.672621925955252e-27;
+TP m_n = 1.674927500568585e-27;
+TP R = 8.31446261815324;
+TP N_A = 6.02214076e23;
+
+} // namespace prak