-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconversion.go
50 lines (46 loc) · 1.34 KB
/
conversion.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* conversion.go, part of gochem.
*
*
* Copyright 2012 Raul Mera <rmera{at}chemDOThelsinkiDOTfi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this program. If not, see
* <http://www.gnu.org/licenses/>.
*
*
*/
package chem
//Useful conversion factors and other constants
//Conversions
const (
Deg2Rad = 0.0174533
Rad2Deg = 1 / Deg2Rad
H2Kcal = 627.509 //HArtree 2 Kcal/mol
Kcal2H = 1 / H2Kcal
Kcal2KJ = 4.184
KJ2Kcal = 1 / Kcal2KJ
A2Bohr = 1.889725989
Bohr2A = 1 / A2Bohr
EV2Kcal = 23.061
Kcal2EV = 1 / EV2Kcal
)
//Others
const (
CHDist = 1.098 //C(sp3)--H distance in A
KBkJ = 1.380649e-26 // Boltzmann constant kJ/K
KB = KBkJ * KJ2Kcal
RkJ = 8.31446261815324e-3 // kJ/(K*mol)
NA = 6.02214076e+23
R = RkJ * KJ2Kcal //.9872042586408e-3 //kcal/mol
)