Closed quentGit closed 5 months ago
Hello @quentGit, Thank you for your nice comments and detailed report. I haven't found the exact problem yet, but I suspect that it has something to do with the exit pupil being exactly telecentric in the second example. Changing the separation from 198.59357 -> 198.6 makes the issue go away, for instance. The first order data shows very large values for the exit pupil distance and size; if that isn't handled correctly, I can imagine why garbage might be the result.
efl 199.9
f 199.9
f' 199.9
ffl -2.842e-14
pp1 199.9
bfl 190.6
ppk -9.344
pp sep 5.909
f/# 8.886
m -1.999e-08
red -5.001e+07
obj_dist 1e+10
obj_ang 1
enp_dist -0
enp_radius 11.25
na obj 1.125e-09
n obj 1
img_dist 190.6
img_ht 3.49
exp_dist -2.012e+18
exp_radius 1.132e+17
na img -0.05618
n img 1
optical invariant 0.1964
Hopefully this explanation is helpful; I'll continue to look at the problem, although it may take some time to resolve. Thanks, Mike Hayford
Hello @mjhoptics ,
Thank you for your explanation !
quentGit
Thank you for this fixing !
Dear Michael Hayford,
First, thank you for your nice module.
I get an issue with wavefront : when the space before the system is near of it front focal lenght, the wavefront values became strange for a field with an angle of 0. The wavefront is normal when the distance before the system is not his ffl, or when the angle is not 0. Also, it seems to depend on the system, as I get the error for a Thorlabs lens but I cannot reproduce it with the triplet example of ray-optics documentation.
I put some code below that reproduce the effect :
When there is no ffl before the system, we get this :
But if I put ffl before the sytem, I get :
I can manage to avoid it by changing the distance before the system, but if you know what goes wrong, it would be helpful.
Thanks and Best Regards, quentGit