Mantid
Loading...
Searching...
No Matches
PhysicalConstants.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7
9#include <boost/python/class.hpp>
10
11namespace {
12class PhysicalConstants {};
13} // namespace
14
16 using namespace boost::python;
17
18 class_<PhysicalConstants>("PhysicalConstants")
19 .def_readonly("N_A", &Mantid::PhysicalConstants::N_A)
20 .def_readonly("h", &Mantid::PhysicalConstants::h)
21 .def_readonly("h_bar", &Mantid::PhysicalConstants::h_bar)
22 .def_readonly("g", &Mantid::PhysicalConstants::g)
23 .def_readonly("NeutronMass", &Mantid::PhysicalConstants::NeutronMass)
24 .def_readonly("NeutronMassAMU", &Mantid::PhysicalConstants::NeutronMassAMU)
25 .def_readonly("AtomicMassUnit", &Mantid::PhysicalConstants::AtomicMassUnit)
26 .def_readonly("meV", &Mantid::PhysicalConstants::meV)
27 .def_readonly("meVtoWavenumber", &Mantid::PhysicalConstants::meVtoWavenumber)
28 .def_readonly("meVtoFrequency", &Mantid::PhysicalConstants::meVtoFrequency)
29 .def_readonly("meVtoKelvin", &Mantid::PhysicalConstants::meVtoKelvin)
30 .def_readonly("E_mev_toNeutronWavenumberSq", &Mantid::PhysicalConstants::E_mev_toNeutronWavenumberSq)
31 .def_readonly("MuonLifetime", &Mantid::PhysicalConstants::MuonLifetime)
32 .def_readonly("StandardAtmosphere", &Mantid::PhysicalConstants::StandardAtmosphere)
33 .def_readonly("BoltzmannConstant", &Mantid::PhysicalConstants::BoltzmannConstant)
34 .def_readonly("MuonGyromagneticRatio", &Mantid::PhysicalConstants::MuonGyromagneticRatio);
35}
void export_PhysicalConstants()
A namespace containing physical constants that are required by algorithms and unit routines.
Definition: Atom.h:14
static constexpr double MuonGyromagneticRatio
Muon gyromagnetic ratio in MHz/G Taken from CalMuonDetectorPhases and DynamicKuboToyabe on 02/02/2016...
static constexpr double BoltzmannConstant
Boltzmann Constant in meV/K Taken from http://physics.nist.gov/cuu/Constants on 10/07/2012.
static constexpr double meVtoFrequency
1 meV in frequency (GHz).
static constexpr double StandardAtmosphere
Standard atmospheric pressure in kPa.
static constexpr double E_mev_toNeutronWavenumberSq
Transformation coefficient to transform neutron energy into neutron wavevector: K-neutron[m^-10] = sq...
static constexpr double NeutronMassAMU
Mass of the neutron in AMU.
static constexpr double NeutronMass
Mass of the neutron in kg.
static constexpr double h
Planck constant in J*s.
static constexpr double meVtoKelvin
1 meV in Kelvin.
static constexpr double meVtoWavenumber
1 meV in wavenumber (cm-1).
static constexpr double N_A
Avagodro constant in mol-1.
static constexpr double MuonLifetime
Muon lifetime.
static constexpr double AtomicMassUnit
AMU in kg.
static constexpr double meV
1 meV in Joules.
static constexpr double h_bar
Planck constant in J*s, divided by 2 PI.
static constexpr double g
Standard acceleration due to gravity.