1 |
tim |
1710 |
/* |
2 |
|
|
* Copyright (C) 2000-2004 Object Oriented Parallel Simulation Engine (OOPSE) project |
3 |
|
|
* |
4 |
|
|
* Contact: oopse@oopse.org |
5 |
|
|
* |
6 |
|
|
* This program is free software; you can redistribute it and/or |
7 |
|
|
* modify it under the terms of the GNU Lesser General Public License |
8 |
|
|
* as published by the Free Software Foundation; either version 2.1 |
9 |
|
|
* of the License, or (at your option) any later version. |
10 |
|
|
* All we ask is that proper credit is given for our work, which includes |
11 |
|
|
* - but is not limited to - adding the above copyright notice to the beginning |
12 |
|
|
* of your source code files, and to any copyright notice that you may distribute |
13 |
|
|
* with programs based on this work. |
14 |
|
|
* |
15 |
|
|
* This program is distributed in the hope that it will be useful, |
16 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 |
|
|
* GNU Lesser General Public License for more details. |
19 |
|
|
* |
20 |
|
|
* You should have received a copy of the GNU Lesser General Public License |
21 |
|
|
* along with this program; if not, write to the Free Software |
22 |
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23 |
|
|
* |
24 |
|
|
*/ |
25 |
|
|
|
26 |
|
|
/** |
27 |
|
|
* @file Stats.cpp |
28 |
|
|
* @author tlin |
29 |
|
|
* @date 11/04/2004 |
30 |
|
|
* @time 14:26am |
31 |
|
|
* @version 1.0 |
32 |
|
|
*/ |
33 |
|
|
|
34 |
|
|
#include "brains/Stats.hpp" |
35 |
|
|
|
36 |
|
|
namespace oopse { |
37 |
|
|
|
38 |
tim |
1804 |
bool Stats::isInit_ = false; |
39 |
tim |
1710 |
|
40 |
tim |
1804 |
Stats::Stats() { |
41 |
|
|
|
42 |
|
|
if (!isInit_) { |
43 |
|
|
init(); |
44 |
tim |
1832 |
isInit_ = true; |
45 |
tim |
1804 |
} |
46 |
|
|
|
47 |
tim |
1710 |
} |
48 |
tim |
1804 |
|
49 |
|
|
void Stats::init() { |
50 |
|
|
|
51 |
tim |
1832 |
Stats::title_[TIME] = "Time"; |
52 |
|
|
Stats::title_[TOTAL_ENERGY] = "Total Energy"; |
53 |
|
|
Stats::title_[POTENTIAL_ENERGY] = "Potential Energy"; |
54 |
|
|
Stats::title_[KINETIC_ENERGY] = "Kinetic Energy"; |
55 |
|
|
Stats::title_[TEMPERATURE] = "Temperature"; |
56 |
|
|
Stats::title_[PRESSURE] = "Pressure"; |
57 |
|
|
Stats::title_[VOLUME] = "Volume"; |
58 |
|
|
Stats::title_[CONSERVED_QUANTITY] = "Conserved Quantity"; |
59 |
|
|
Stats::title_[TRANSLATIONAL_KINETIC] = "Translational Kinetic"; |
60 |
|
|
Stats::title_[ROTATIONAL_KINETIC] = "Rotational Kinetic"; |
61 |
|
|
Stats::title_[LONG_RANGE_POTENTIAL] = "Long Range Potential"; |
62 |
|
|
Stats::title_[SHORT_RANGE_POTENTIAL] = "Short Range Potential"; |
63 |
|
|
Stats::title_[VANDERWAALS_POTENTIAL] = "van der waals Potential"; |
64 |
|
|
Stats::title_[BOND_POTENTIAL] = "Bond Potential"; |
65 |
|
|
Stats::title_[BEND_POTENTIAL] = "Bend Potential"; |
66 |
|
|
Stats::title_[DIHEDRAL_POTENTIAL] = "Dihedral Potential"; |
67 |
|
|
Stats::title_[IMPROPER_POTENTIAL] = "Improper Potential"; |
68 |
|
|
Stats::title_[VRAW] = "Raw Potential"; |
69 |
|
|
Stats::title_[VHARM] = "Harmonic Potential"; |
70 |
tim |
1804 |
|
71 |
tim |
1832 |
Stats::units_[TIME] = "fs"; |
72 |
|
|
Stats::units_[TOTAL_ENERGY] = "kcal/mol"; |
73 |
|
|
Stats::units_[POTENTIAL_ENERGY] = "kcal/mol"; |
74 |
|
|
Stats::units_[KINETIC_ENERGY] = "kcal/mol"; |
75 |
|
|
Stats::units_[TEMPERATURE] = "K"; |
76 |
|
|
Stats::units_[PRESSURE] = "atm"; |
77 |
|
|
Stats::units_[VOLUME] = "A^3"; |
78 |
|
|
Stats::units_[CONSERVED_QUANTITY] = "kcal/mol"; |
79 |
|
|
Stats::units_[TRANSLATIONAL_KINETIC] = "kcal/mol"; |
80 |
|
|
Stats::units_[ROTATIONAL_KINETIC] = "kcal/mol"; |
81 |
|
|
Stats::units_[LONG_RANGE_POTENTIAL] = "kcal/mol"; |
82 |
|
|
Stats::units_[SHORT_RANGE_POTENTIAL] = "kcal/mol"; |
83 |
|
|
Stats::units_[VANDERWAALS_POTENTIAL] = "kcal/mol"; |
84 |
|
|
Stats::units_[BOND_POTENTIAL] = "kcal/mol"; |
85 |
|
|
Stats::units_[BEND_POTENTIAL] = "kcal/mol"; |
86 |
|
|
Stats::units_[DIHEDRAL_POTENTIAL] = "kcal/mol"; |
87 |
|
|
Stats::units_[IMPROPER_POTENTIAL] = "kcal/mol"; |
88 |
|
|
Stats::units_[VRAW] = "kcal/mol"; |
89 |
|
|
Stats::units_[VHARM] = "kcal/mol"; |
90 |
tim |
1804 |
} |
91 |
|
|
|
92 |
|
|
} |