Difference between revisions of "Points2mult.m"

From Spinach Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
−
Computes multipole moments from a set of point charges
+
Computes multipole moments from a set of points with user-specified spin populations. Syntax:
−
Parameters:  
 
  
−
    xyz   - coordinates as [x y z] with multiple rows,
+
    Ilm=points2mult(xyz,mxyz,rho,L,method)
−
            at which density rho is evaluated, in Angstroms.
 
  
−
    mxyz  - coordinates  of origin as [x y z], in Angstroms.
+
The multipoles in question are described in http://dx.doi.org/10.1039/c6cp05437d
  
−
    L      - array of ranks of spherical harmonics of the density
+
Parameters:
−
 
+
−
 
+
    xyz    - coordinates as [x y z] with multiple rows,
−
    rho    - column of the density at the points xyz
+
              at which density rho is evaluated, in Angstroms.
−
 
+
−
    method - 'points' or 'grid'. 'Grid' integrates with corresponding d3r
+
    mxyz  - paramagnetic centre coordinates as [x y z], in
−
            and 'points' just sum the density at points.  
+
              Angstroms.
 +
 +
    L      - array of ranks of spherical harmonics of the density
 +
 +
    rho    - column of the densities at the points xyz
 +
 +
    method - 'points' or 'grid'. If the spin density is supplied
 +
              as Mulliken spin populations at individual nuclei,
 +
              choose 'points'; if the spin density is supplied as
 +
              a probability on a uniform cubic grid obtained from
 +
              ndgrid() function and vectorised, use 'grid'. In the
 +
              latter case, the point coordinates must also come
 +
              from ndgrid() function.
  
 
Output:
 
Output:
−
 
+
−
    Ilm   - predicted multipole moments of the density
+
    Ilm - multipole moments of the spin density

Revision as of 20:08, 28 December 2016

Computes multipole moments from a set of points with user-specified spin populations. Syntax:

    Ilm=points2mult(xyz,mxyz,rho,L,method)

The multipoles in question are described in http://dx.doi.org/10.1039/c6cp05437d

Parameters:

    xyz    - coordinates as [x y z] with multiple rows,
             at which density rho is evaluated, in Angstroms.

    mxyz   - paramagnetic centre coordinates as [x y z], in 
             Angstroms.

    L      - array of ranks of spherical harmonics of the density

    rho    - column of the densities at the points xyz

    method - 'points' or 'grid'. If the spin density is supplied 
             as Mulliken spin populations at individual nuclei,
             choose 'points'; if the spin density is supplied as
             a probability on a uniform cubic grid obtained from
             ndgrid() function and vectorised, use 'grid'. In the
             latter case, the point coordinates must also come
             from ndgrid() function.

Output:

    Ilm  - multipole moments of the spin density