vswf.vsh: Calculates the Vector Spherical Harmonics from zero to lmax.

Description Usage Arguments Details Value Examples

Description

Calculates the Vector Spherical Harmonics from zero to lmax.

Usage

1
vswf.vsh(x, y, z, lmax, code = "C")

Arguments

x

The component x of the position vector.

y

The component y of the position vector.

z

The component z of the position vector.

lmax

The maximum value of l.

Details

Calculate the three complex components \hat{e}_-, \hat{e}_z and \hat{e}_+ of the three vector spherical harmonics \bm{X}_{lm}, \bm{V}_{lm} and \bm{Y}_{lm} and also the three complex components of the three vector spherical harmonics \bm{Y}_{l,l}^m, \bm{Y}_{l,l-1}^m and \bm{Y}_{l,l+1}^m.

Value

A list with the values of l, -l≤q m≥q l, the scalar spherical harmonics and the components of the vector spherical harmonics.

Examples

1
2
3
4
th<-pi/3
ph<-pi/4
VSH<-vswf.vsh(sin(th)*cos(ph),sin(th)*sin(ph),cos(th),5)
str(VSH)

wendellopes/rvswf documentation built on May 4, 2019, 4:19 a.m.