ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/hydrodynamics/Sphere.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/hydrodynamics/Sphere.cpp (file contents):
Revision 2787 by gezelter, Mon Jun 5 18:24:45 2006 UTC vs.
Revision 3249 by xsun, Fri Oct 5 19:01:12 2007 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
86 >    const RealType convertConstant = 1.439326479e4; //converts Poise angstroms
87 >                                                    // to kcal fs mol^-1 Angstrom^-1
88      Xi *= convertConstant;
89      XiCopy = Xi;
90  
91      invertMatrix(XiCopy, D);
92 <    RealType kt = OOPSEConstant::kB * temperature;
93 <    D *= kt;
93 <    Xi *= OOPSEConstant::kb * temperature;
92 >    RealType kt = OOPSEConstant::kb * temperature; // in kcal mol^-1
93 >    D *= kt;  // now in angstroms^2 fs^-1  (at least for Trans-trans)
94  
95      HydroProp* hprop = new HydroProp(V3Zero, Xi, D);
96      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines