ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/hydrodynamics/Sphere.cpp
(Generate patch)

Comparing trunk/src/hydrodynamics/Sphere.cpp (file contents):
Revision 981 by gezelter, Mon Jun 5 18:24:45 2006 UTC vs.
Revision 1322 by gezelter, Mon Nov 24 22:01:56 2008 UTC

# Line 83 | Line 83 | namespace oopse {
83      Xi(4, 4) = Xirr;
84      Xi(5, 5) = Xirr;
85      
86 <    const RealType convertConstant = 6.023; //convert poise.angstrom to amu/fs
87 <    Xi *= convertConstant;
86 >    Xi *= OOPSEConstant::viscoConvert;
87      XiCopy = Xi;
88  
89      invertMatrix(XiCopy, D);
90 <    RealType kt = OOPSEConstant::kB * temperature;
91 <    D *= kt;
93 <    Xi *= OOPSEConstant::kb * temperature;
90 >    RealType kt = OOPSEConstant::kb * temperature; // in kcal mol^-1
91 >    D *= kt;  // now in angstroms^2 fs^-1  (at least for Trans-trans)
92  
93      HydroProp* hprop = new HydroProp(V3Zero, Xi, D);
94      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines