Skip to content
Snippets Groups Projects
constants.hpp 362 B
Newer Older
  • Learn to ignore specific revisions
  • Ian Bell's avatar
    Ian Bell committed
    #pragma once
    
    
    const double N_A = 6.02214076e23; ///< Avogadro's number
    
    
    Ian Bell's avatar
    Ian Bell committed
    ///< Gas constant, according to CODATA 2019, in the given number type
    template<typename NumType>
    
    const auto get_R_gas() {
    
    	const double k_B = 1.380649e-23; ///< Boltzmann constant
    	const double N_A = 6.02214076e23; ///< Avogadro's number
    
    	return forceeval(static_cast<NumType>(N_A*k_B));
    
    Ian Bell's avatar
    Ian Bell committed
    };