Difference between revisions of "Multipack.m"
(Created page with "{{DISPLAYTITLE:function.m}} Packs multipole moments from a linear stream into a cell array that is arranged by ranks. ==Syntax== Ilm=multipack(ranks,moments) ==Argumen...") |
|||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE: | + | {{DISPLAYTITLE:multipack.m}} |
Packs multipole moments from a linear stream into a cell array that is arranged by ranks. | Packs multipole moments from a linear stream into a cell array that is arranged by ranks. | ||
Revision as of 14:11, 3 January 2018
Packs multipole moments from a linear stream into a cell array that is arranged by ranks.
Contents
Syntax
Ilm=multipack(ranks,moments)
Arguments
ranks - a vector of spherical ranks present, e.g. [0 1 2]
moments - a vector of multipole moments for each rank,
arranged in a linear stream
Outputs
Ilm - a cell array of vector corresponding to the multipole
moments defined in http://dx.doi.org/10.1039/c6cp05437d
for L=0, one element
for L=1, three elements
for L=2, five elements
et cetera.
See also
Version 2.1, authors: Ilya Kuprov, Elizaveta Suturina