funkalicious 0.1

unit_conversion.h

Go to the documentation of this file.
00001 /*
00002 ** unit_conversion.h
00003 ** 
00004 ** Made by Johnny Q. Hacker
00005 ** Login   <solarion@borkborkbork>
00006 ** 
00007     Copyright (C) 2009 Joseph Pingenot
00008 
00009     This program is free software: you can redistribute it and/or modify
00010     it under the terms of the GNU Affero General Public License as published by
00011     the Free Software Foundation, either version 3 of the License, or
00012     (at your option) any later version.
00013 
00014     This program is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017     GNU Affero General Public License for more details.
00018 
00019     You should have received a copy of the GNU Affero General Public License
00020     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00021 
00022 ** Started on  Thu Nov 19 22:50:56 2009 Johnny Q. Hacker
00023 ** Last update Thu Nov 19 22:50:56 2009 Johnny Q. Hacker
00024 */
00025 
00026 #include "gcc_hints.h"
00027 
00028 #ifndef     UNIT_CONVERSION_H_
00029 # define    UNIT_CONVERSION_H_
00030 
00031 /*Magnitude of charge of one electron in C*/
00032 extern const double mag_q_e_in_C;
00033 /*Energy of one eV in Hartree*/
00034 extern const double ev_in_hartree;
00035 /*Energy of one Hartree in eV*/
00036 extern const double hartree_in_ev;
00037 
00038 /*hbar, in eV s*/
00039 extern const double hbar;
00040 /*mass of electron in eV*/
00041 extern const double m0;
00042 /*Charge of the elecron in C*/
00043 extern const double q_e;
00044 /*Magnitude of the charge of the electron in C*/
00045 extern const double e;
00046 /*Speed of light in m/s*/
00047 extern const double c;
00048 /*vacuum dielectric constant F/m*/
00049 extern const double epsilon0;
00050 /*one over epsilon0*/
00051 extern const double oo_epsilon0;
00052 
00053 
00054 ___const double ev_to_hartree(double ev);
00055 ___const double hartree_to_ev(double hartree);
00056 ___const double bohr_to_m(double bohr);
00057 ___const double m_to_bohr(double m);
00058 ___const double bohr_to_nm(double bohr);
00059 ___const double nm_to_bohr(double nm);
00060 
00061 #endif      /* !UNIT_CONVERSION_H_ */
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines