Lens and Mirror together in one optical system #130
Answered
by
mjhoptics
PoulomiPradhan
asked this question in
Q&A
-
I would like to simulate an optical system which consists of a spherical lens whose one side is a mirror. It would be great if I get any help on how I can simulate the same. |
Beta Was this translation helpful? Give feedback.
Answered by
mjhoptics
Oct 6, 2023
Replies: 2 comments
-
How to simulate an optical system which consists of a spherical lens whose one side is a mirror.%matplotlib inline
isdark = False
from rayoptics.environment import * opm = OpticalModel()
sm = opm['seq_model']
osp = opm['optical_spec']
pm = opm['parax_model']
em = opm['ele_model']
pt = opm['part_tree']
ar = opm['analysis_results'] osp['pupil'] = PupilSpec(osp, key=['object', 'pupil'], value=100.)
osp['fov'] = FieldSpec(osp, key=['object', 'angle'], value=8.0, flds=[0., 1.], is_relative=True)
osp['wvls'] = WvlSpec([('F', 0.5), ('d', 1.0), ('C', 0.5)], ref_wl=1) opm.radius_mode = True
sm.gaps[0].thi=1e10 The front, transmitting surface of the lens is entered twice: surfaces 1 and 3 sm.add_surface([-1200., 10., 'N-BK7', 'Schott'])
sm.add_surface([-1000., -10., 'refl'])
sm.add_surface([-1200., -450.7]) opm.update_model() Draw a lens picturelayout_plt = plt.figure(FigureClass=InteractiveLayout, opt_model=opm,
do_draw_beams=False, do_draw_edge_rays=True,
do_draw_ray_fans=False, num_rays_in_fan=7, is_dark=isdark).plot() sm.list_model()
listobj(osp)
pm.first_order_data()
abr_plt = plt.figure(FigureClass=RayFanFigure, opt_model=opm, data_type='Ray',
scale_type=Fit.All_Same, is_dark=isdark).plot() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PoulomiPradhan
-
Thank you very much! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to simulate an optical system which consists of a spherical lens whose one side is a mirror.
The front, transmitting surface of the lens is entered twice: surfaces 1 and 3
The se…