00001 /* 00002 dmcut2, a library for Monte-Carlo simulations at surfaces 00003 Copyright (C) 2008 Mathias Laurin <mathias_laurin@users.sourceforge.net> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along 00016 with this program; if not, write to the Free Software Foundation, Inc., 00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00024 #ifndef ARRHENIUS_HPP 00025 #define ARRHENIUS_HPP 00026 00027 #include <cmath> // provide exp 00028 00030 extern double BOLTZMAN; 00031 00037 inline double Arrhenius(double preexponential_factor, double activation_energy, double temperature) 00038 { return preexponential_factor*exp(-activation_energy/(BOLTZMAN*temperature)); } 00039 00040 #endif
|
|
Project's page |
Generated on Mon Nov 17 00:23:05 2008 for dmcut2 by 1.5.7
|
