Spherical Harmonics Normalization

Click For Summary
SUMMARY

The discussion focuses on the parametrization of a magnetic field using spherical harmonics, specifically the equations for Yc and Ys functions involving Legendre polynomials. The user seeks clarification on the normalization of coefficients Cn,m and Sn,m, particularly regarding the starting values for the summation process. The user notes that coefficients are presented as rows rather than in a pyramid format, complicating the identification of corresponding n and m values. Resources from Wikipedia are referenced for further reading on spherical harmonics.

PREREQUISITES
  • Understanding of spherical harmonics and their mathematical representation.
  • Familiarity with Legendre polynomials and their properties.
  • Basic knowledge of magnetic field parametrization techniques.
  • Experience with MATLAB for implementing spherical harmonics in computational models.
NEXT STEPS
  • Research the normalization process for spherical harmonics coefficients in magnetic field applications.
  • Study the implementation of spherical harmonics in MATLAB, focusing on mesh generation and coefficient handling.
  • Explore advanced properties of Legendre polynomials and their role in spherical harmonics.
  • Investigate the significance of special cases like C1,1, S1,1, and C1,0 in magnetic field modeling.
USEFUL FOR

Researchers and engineers working in fields related to magnetic field modeling, computational physics, and anyone looking to implement spherical harmonics in MATLAB for scientific applications.

Dzyubak
Messages
5
Reaction score
0
Hello, everyone!

I'm working on parametrizing a magnetic field using spherical harmonics. The equations
Yc n,m (theta, phi) = (R/R0)^n * Pn,m(cos(theta)) * cos(m*phi)
Ys n,m (theta, phi) = (R/R0)^n * Pn,m(cos(theta)) * sin(m*phi)
where Pn,m is a Legendre polynomial where n is degree and m is order of polynomial. 0<=m<=n

Bx = R0x / C1,1 * Sum{n=0:9}(Sum{m = 0:n}(Cn,m * Yc n,m))
By = R0y / S1,1 * Sum{n=0:9}(Sum{m = 0:n}(Sn,m * Ys n,m))
Bz = R0z / C1,0 * Sum{n=0:9}(Sum{m = 0:n}(Cn,m * Yc n,m))

theta, phi, and R are defined as meshes (in Matlab). Every point in 3D space has a unique R, theta, phi combination. Theta is the azimuth angle, phi is the polar angle.

Cn,m for x and z axes, as well as Sn,m for the y axis, are three separate sets of coefficients. The problem is that they are all written as rows of numbers, not pyramids (n=0,m=0; n=1,m=0 and n=1 m=1 etc.), so I am unsure which m and n value the first coefficient has. The manual indicates that the summation starts at n=0,m=0, however, it seems strange that the 3rd term in the series (C1,1) would be normalized. I am not very familiar with spherical harmonics. Could someone suggest a reasonable explanation for how normalization is done and where the summation should start?

Thanks in advance
 
Physics news on Phys.org
Thanks for the quick reply.
I've looked through the articles on wikipedia. One of them hints that C1,1 in the x, S1,1 in the z, and C1,0 in the z are special cases. Unfortunately, it doesn't explain why (nor do the books I looked at so far).
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 24 ·
Replies
24
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K