Plane Wave Expansion: Solving Issues with Bohren and Huffman

AI Thread Summary
The discussion centers on challenges faced while implementing a plane wave expansion in spherical harmonics using MATLAB, based on the work of Bohren and Huffman. The user has encountered issues when defining certain components as zero, leading to nonsensical results due to terms becoming infinite as they are divided by sin(m*phi), which approaches zero. Despite the code being largely complete, the user suspects a deeper issue related to the equations referenced in Bohren and Huffman. They are seeking assistance or examples of similar expansions within a MATLAB framework to resolve these problems. Any guidance from others familiar with this field would be greatly appreciated.
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:
 
Physics 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:
 
Thread 'Question about pressure of a liquid'
I am looking at pressure in liquids and I am testing my idea. The vertical tube is 100m, the contraption is filled with water. The vertical tube is very thin(maybe 1mm^2 cross section). The area of the base is ~100m^2. Will he top half be launched in the air if suddenly it cracked?- assuming its light enough. I want to test my idea that if I had a thin long ruber tube that I lifted up, then the pressure at "red lines" will be high and that the $force = pressure * area$ would be massive...
I feel it should be solvable we just need to find a perfect pattern, and there will be a general pattern since the forces acting are based on a single function, so..... you can't actually say it is unsolvable right? Cause imaging 3 bodies actually existed somwhere in this universe then nature isn't gonna wait till we predict it! And yea I have checked in many places that tiny changes cause large changes so it becomes chaos........ but still I just can't accept that it is impossible to solve...
Back
Top