ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Thermo.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/Thermo.cpp (file contents):
Revision 438 by chuckv, Mon Mar 31 21:50:59 2003 UTC vs.
Revision 445 by gezelter, Thu Apr 3 19:58:24 2003 UTC

# Line 154 | Line 154 | double Thermo::getPressure(){
154   }
155  
156   double Thermo::getPressure(){
157 <
158 < //  const double conv_Pa_atm = 9.901E-6; // convert Pa -> atm
159 < // const double conv_internal_Pa = 1.661E-7; //convert amu/(fs^2 A) -> Pa
160 < //  const double conv_A_m = 1.0E-10; //convert A -> m
157 >  // returns pressure in units amu*fs^-2*Ang^-1
158 >  // routine derived via viral theorem description in:
159 >  // Paci, E. and Marchi, M. J.Phys.Chem. 1996, 100, 4314-4322
160  
161    return 0.0;
162   }
# Line 212 | Line 211 | void Thermo::velocitize() {
211  
212      av2 = 2.0 * kebar / atoms[vr]->getMass();
213      vbar = sqrt( av2 );
214 <
214 >
215   //     vbar = sqrt( 8.31451e-7 * temperature / atoms[vr]->getMass() );
216      
217      // picks random velocities from a gaussian distribution

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines