Plane Wave Expansion: Solving Issues with Bohren and Huffman

  • Context: Graduate 
  • Thread starter Thread starter falcao
  • Start date Start date
  • Tags Tags
    Expansion Plane Wave
Click For Summary
SUMMARY

The discussion focuses on challenges encountered while implementing a plane wave expansion in spherical harmonics using MATLAB, specifically referencing equations from Bohren and Huffman. The user reports issues with results becoming nonsensical when certain components are defined as zero, particularly due to a term involving sin(m*phi) approaching zero, leading to infinite values. The user seeks assistance from others familiar with the methodology or examples of similar expansions in MATLAB.

PREREQUISITES
  • Understanding of plane wave expansion in spherical harmonics
  • Familiarity with MATLAB programming
  • Knowledge of the equations presented in Bohren and Huffman
  • Basic concepts of trigonometric functions and their limits
NEXT STEPS
  • Review Bohren and Huffman, specifically equation 4.19, for insights on handling singularities
  • Explore MATLAB's handling of trigonometric functions and limits
  • Investigate alternative numerical methods for plane wave expansions
  • Search for MATLAB examples or libraries that implement spherical harmonics
USEFUL FOR

This discussion is beneficial for physicists, engineers, and researchers working on wave propagation problems, particularly those utilizing MATLAB for numerical simulations of spherical harmonics.

falcao
Messages
9
Reaction score
0
I've been working on a plane wave expansion in spherical harmonics.. as demonstrated in Bohren and Huffman (if anyone's familiar with it_)... I have more or less finished my code in Matlab and I'm putting in values to expand and compare with the exact solution...


in short, I'm having trouble when defining some of my components as zero... getting results going crazy all over the place.! now I appreciate this would seem like a problem with the code but looking at the equations in Bohren and Huffman(4.19) (and in my code) there seems to be a different problem!..

one of the terms is divisible by a sin(m*phi) value and of course this value is going to go to zero with my phi and then the term goes to infinity! so my result ends up being nonsensical..>

if anyone is familiar with the field t'would be nice to hear!:redface:
 
Science news on Phys.org
or even if anyone has any examples of such an expansion within a MATLAB framework>?!
 
honestly... any help would be massively appreciated!

please!:cry::confused::cry:
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
8K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K