ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/brains/Stats.cpp
Revision: 1820
Committed: Thu Dec 2 00:09:35 2004 UTC (19 years, 7 months ago) by tim
File size: 3135 byte(s)
Log Message:
NVE get built

File Contents

# Content
1 /*
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 bool Stats::isInit_ = false;
39
40 Stats::Stats() {
41
42 if (!isInit_) {
43 init();
44 isInit_ = false;
45 }
46
47 }
48
49 void Stats::init() {
50
51 title_[TIME] = "Time";
52 title_[TOTAL_ENERGY] = "Total Energy";
53 title_[POTENTIAL_ENERGY] = "Potential Energy";
54 title_[KINETIC_ENERGY] = "Kinetic Energy";
55 title_[TEMPERATURE] = "Temperature";
56 title_[PRESSURE] = "Pressure";
57 title_[VOLUME] = "Volume"
58 title_[CONSERVED_QUANTITY] = "Conserved Quantity";
59 title_[TRANSLATIONAL_KINETIC] = "Translational Kinetic";
60 title_[ROTATIONAL_KINETIC] = "Rotational Kinetic";
61 title_[LONG_RANGE_POTENTIAL] = "Long Range Potential";
62 title_[SHORT_RANGE_POTENTIAL] = "Short Range Potential";
63 title_[VANDERWAALS_POTENTIAL] = "van der waals Potential";
64 title_[BOND_POTENTIAL] = "Bond Potential";
65 title_[BEND_POTENTIAL] = "Bend Potential";
66 title_[DIHEDRAL_POTENTIAL] = "Dihedral Potential";
67 title_[IMPROPER_POTENTIAL] = "Improper Potential";
68 title_[VRAW] = "Raw Potential";
69 title_[VHARM] = "Harmonic Potential";
70
71 units_[TIME] = "fs";
72 units_[TOTAL_ENERGY] = "kcal/mol";
73 units_[POTENTIAL_ENERGY] = "kcal/mol";
74 units_[KINETIC_ENERGY] = "kcal/mol";
75 units_[TEMPERATURE] = "K";
76 units_[PRESSURE] = "atm";
77 units_[VOLUME] = "A^3"
78 units_[CONSERVED_QUANTITY] = "kcal/mol";
79 units_[TRANSLATIONAL_KINETIC] = "kcal/mol";
80 units_[ROTATIONAL_KINETIC] = "kcal/mol";
81 units_[LONG_RANGE_POTENTIAL] = "kcal/mol";
82 units_[SHORT_RANGE_POTENTIAL] = "kcal/mol";
83 units_[VANDERWAALS_POTENTIAL] = "kcal/mol";
84 units_[BOND_POTENTIAL] = "kcal/mol";
85 units_[BEND_POTENTIAL] = "kcal/mol";
86 units_[DIHEDRAL_POTENTIAL] = "kcal/mol";
87 units_[IMPROPER_POTENTIAL] = "kcal/mol";
88 units_[VRAW] = "kcal/mol";
89 units_[VHARM] = "kcal/mol";
90 }
91
92 }

Properties

Name Value
svn:executable *