Points2mult.m

From Spinach Documentation Wiki
Revision as of 09:28, 30 August 2016 by Suturina (talk | contribs)
Jump to: navigation, search

Computes multipole moments from a set of point charges Parameters:

   xyz    - coordinates as [x y z] with multiple rows,
            at which density rho is evaluated, in Angstroms.
   mxyz   - coordinates  of origin as [x y z], in Angstroms.
   L      - array of ranks of spherical harmonics of the density


   rho    - column of the density at the points xyz
   method - 'points' or 'grid'. 'Grid' integrates with corresponding d3r
            and 'points' just sum the density at points. 

Output:

   Ilm    - predicted multipole moments of the density