"LED surface light source with a beam angle of 120°, how to simulate it in PMCX? Which type is most suitable?" #262
Unanswered
shangdong265
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is the surface light source code, but when adjusting the divergence angle, the spot size does not seem to change accordingly. When I modified it to a Gaussian light source, the spot shape changes significantly with the beam angle. Which one is most suitable? It is used in a smartwatch, with an LED as the light source and a PD as the detector.
cfg['srcpos'] = [400,600,0]
cfg['srcdir'] = [0,0,1]
cfg['srctype'] = 'disk'
cfg['srcparam1'] = [110,0,0,0]
高斯型:
# 光源设置
cfg['srcpos'] = [300, 300, 0]
cfg['srcdir'] = [0, 0, 1]
cfg['srctype'] = 'gaussian'
cfg['srcparam1'] = [ang, 0, 0, 0]
cfg['srcparam2'] = [led_radius_vox, led_radius_vox, 0, 0]
All reactions