Constants.cc revision 10448:bc1a3b7ab5ef
112855Sgabeblack@google.com/* Copyright (c) 2012 Massachusetts Institute of Technology 212855Sgabeblack@google.com * 312855Sgabeblack@google.com * Permission is hereby granted, free of charge, to any person obtaining a copy 412855Sgabeblack@google.com * of this software and associated documentation files (the "Software"), to deal 512855Sgabeblack@google.com * in the Software without restriction, including without limitation the rights 612855Sgabeblack@google.com * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 712855Sgabeblack@google.com * copies of the Software, and to permit persons to whom the Software is 812855Sgabeblack@google.com * furnished to do so, subject to the following conditions: 912855Sgabeblack@google.com * 1012855Sgabeblack@google.com * The above copyright notice and this permission notice shall be included in 1112855Sgabeblack@google.com * all copies or substantial portions of the Software. 1212855Sgabeblack@google.com * 1312855Sgabeblack@google.com * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1412855Sgabeblack@google.com * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1512855Sgabeblack@google.com * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1612855Sgabeblack@google.com * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1712855Sgabeblack@google.com * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1812855Sgabeblack@google.com * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 1912855Sgabeblack@google.com * THE SOFTWARE. 2012855Sgabeblack@google.com */ 2112855Sgabeblack@google.com 2212855Sgabeblack@google.com 2312855Sgabeblack@google.com#include "util/Constants.h" 2412855Sgabeblack@google.com 2512855Sgabeblack@google.comnamespace DSENT 2612855Sgabeblack@google.com{ 2712855Sgabeblack@google.com // PI 2812855Sgabeblack@google.com const double Constants::pi = 3.14159; //PI 2912855Sgabeblack@google.com // Boltzman's 3012855Sgabeblack@google.com const double Constants::k = 1.3806503e-23; // m^2 * kg / (s^2 * K); 3112855Sgabeblack@google.com // Speed of light 3212855Sgabeblack@google.com const double Constants::c = 2.9979246e8; // m/s 3312855Sgabeblack@google.com // Charge of electron 3412855Sgabeblack@google.com const double Constants::q = 1.602e-19; // C 3512855Sgabeblack@google.com // Permitivity of free space 3612855Sgabeblack@google.com const double Constants::e0 = 8.85e-12; 3712855Sgabeblack@google.com // Permitivity ratio of silicon 3812855Sgabeblack@google.com const double Constants::es = 11.7; 3912855Sgabeblack@google.com 4012855Sgabeblack@google.com} // namespace DSENT 4112855Sgabeblack@google.com 4212855Sgabeblack@google.com