scottprahl / iad

Forward and Inverse Radiative Transport using the Adding-Doubling method
MIT License
20 stars 8 forks source link

Non-circular beam support? #2

Closed alexpattyn closed 4 years ago

alexpattyn commented 5 years ago

Looking over the manual for IAD it says that if various ports are non-circular then we should use a beam diameter that matches the area of the port (page 32 of the manual). Does this hold true if we have a non-circular illumination beam? The spectrophotometer I am using is ~7x4mm at the transmittance window and ~8x9mm at the reflectance window.

Also unless I am mistaken should the example you provide in the manual of a 10mmx1mm rectangular port gives an area of A=bh=10mm x 1mm=10mm^2 which then means the radius should be A=pi r^2 ==> r = sqrt(A/pi) = sqrt(10mm^2/pi) ~= 1.7846mm? If so I can make a pull request to fix the docs.

Then if there is a better place to ask questions that aren't directly related to coding bugs let me know.

alexpattyn commented 4 years ago

Closing issue. If I get the chance I'll submit a PR for the documentation.

In regards to the non-circular beam, IIRC from the docs if you have a non-circular beam one just has to make sure the area is the same as it would be for a circular beam. However, I don't think the program can simulate the oddity of the spectrophotometer I was using.