GEOS
PhysicsConstants.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2024 Total, S.A
7  * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
8  * Copyright (c) 2023-2024 Chevron
9  * Copyright (c) 2019- GEOS/GEOSX Contributors
10  * All rights reserved
11  *
12  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
13  * ------------------------------------------------------------------------------------------------------------
14  */
15 
20 #ifndef GEOS_COMMON_PHYSICSCONSTANTS_HPP_
21 #define GEOS_COMMON_PHYSICSCONSTANTS_HPP_
22 
23 namespace geos
24 {
25 
26 namespace constants
27 {
28 
32 constexpr double zeroDegreesCelsiusInKelvin = 273.15;
33 
37 constexpr double pi = 3.141592653589793238;
38 
42 constexpr double gasConstant = 8.31446261815324;
43 
44 } // end namespace constants
45 
46 } // end namespace geos
47 
48 #endif //GEOS_COMMON_PHYSICSCONSTANTS_HPP_
constexpr double gasConstant
Universal gas constant.
constexpr double pi
Shorthand for pi.
constexpr double zeroDegreesCelsiusInKelvin
Zero degree Celsius in Kelvin.