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

Comparing branches/development/src/nonbonded/Electrostatic.cpp (file contents):
Revision 1504 by gezelter, Sat Oct 2 20:41:53 2010 UTC vs.
Revision 1505 by gezelter, Sun Oct 3 22:18:59 2010 UTC

# Line 283 | Line 283 | namespace OpenMD {
283            simError();                  
284          }
285          
286 +        // Quadrupoles in OpenMD are set as the diagonal elements
287 +        // of the diagonalized traceless quadrupole moment tensor.
288 +        // The column vectors of the unitary matrix that diagonalizes
289 +        // the quadrupole moment tensor become the eFrame (or the
290 +        // electrostatic version of the body-fixed frame.
291 +
292          Vector3dGenericData* v3dData = dynamic_cast<Vector3dGenericData*>(data);
293          if (v3dData == NULL) {
294            sprintf( painCave.errMsg,
# Line 974 | Line 980 | namespace OpenMD {
980          scdat.pot += self;
981        }
982      }
983 +  }
984 +
985 +  RealType Electrostatic::getSuggestedCutoffRadius(AtomType* at1, AtomType* at2) {
986 +    // This seems to work moderately well as a default.  There's no
987 +    // inherent scale for 1/r interactions that we can standardize.
988 +    // 12 angstroms seems to be a reasonably good guess for most
989 +    // cases.
990 +    return 12.0;
991    }
992   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines