Skip to content

Add Element #94

Answered by mjhoptics
Yueqi77-amazing asked this question in Q&A
Aug 18, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello Yvonne,
ray-optics should be able to detect when a cemented doublet can be used based on the sequential model. For instance:

from rayoptics.environment import *
opm = OpticalModel()
sm  = opm['seq_model']
osp = opm['optical_spec']

osp['pupil'] = PupilSpec(osp, key=['object', 'pupil'], value=22.)
osp['fov'] = FieldSpec(osp, key=['object', 'angle'], value=2.0, flds=[0., 1.], is_relative=True)
osp['wvls'] = WvlSpec([('d', 1.0)], ref_wl=0)

opm.radius_mode = False

sm.gaps[0].thi=1e10

sm.add_surface([0.016268, 6.00000 , 'N-BK7', 'Schott', 12.000])
sm.add_surface([-0.022401, 2.50000, 'N-SF5', 'Schott', 12.289])
sm.add_surface([-0.007696, 10.0000])

# this will recognize and create a Ce…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Yueqi77-amazing
Comment options

Answer selected by mjhoptics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants