Got a question?
Can't find the answer you need? Ask your peers!
- 2,120 Topics
- 5,891 Replies
Zemax keeps crashing
Hi,I got Zemax Optic Studio 2023 R1.00. When started using PSF The same Zemax behaviour keeps happening when trying PSF analyses using Zemax Design Templates ( even on very simple 2 lenses system). I was testing PSF function on our PC - same reaction. My brand new laptop got and 16 GB RAMOur PCand 320GB RAM.They both have Windows 11 Pro.I would like to contact Zemax Technical support but couldn't find email.
Lens cannot be traced, tolerances may be too loose vs mtf
Hi all, During tolerancing of some lenses (using the mtf as criteria) I get the “Lens cannot be traced, tolerances may be too loose!”However, opening one of this the monte carlo files it seems like the mtf is bad but larger than zero. What can be the reason for this? Thanks,Nadav
spot diagram: centre mass of the spot, and IMA vs coordinates of mouse cursor
Hi,I would like to determine the centre of the mass of the spot and its location coordinates for the outermost field. It is easy for the on-axis rays, the spot is in the centre, IMA, and cursor coordinates show [0, 0]. However, the spot is stretched for the most outer points on the field plane. Do IMA coordinates show the spot's location on the image plane and the centre of the spot mass simultaneously?The second thing is that when I was trying to find the location of the spot based on the IMA values using the mouse cursor, the IMA and cursor coordinates values were similar ( with the same signs) but the cursor was away from the spot ( situation 1), in situation 2, when I set the cursor in the centre of the spot, the cursor coordinates were opposite to IMA values. Regards,Marzanna
Tolerance wizard doesn't add TIRR operand to Tolerance Data Editor
Hi,I have ticked S+A Irregularity and set a value in tolerance wizard, but the relevant TIRR operand is not automatically generated in the tolerance data editor. Is this a bug or am I doing something wrong. Anyone can help? I am using OpticStudio 22.3
Modelling vehicle headlight with asymetrical radiation pattern using Radiant source model
Hi all,Kindly assist on resolving this ,I'm simulating vehicle-to-vehicle (V2V) communication using a high beam headlamp model. Everything initially functioned as expected for clear weather, but now I am encountering a problem with the headlamp's radiation pattern, which causes it to go straight and miss both the target receiver and any objects in its path. I made unsuccessful attempts to troubleshoot the settings and recall the previous files. Any thoughts on what the root of this source's bad behavior might be would be greatly appreciated. I appreciate you .
exporting Distortion and Prescription Data in zemax using macro
I am trying to exprot some useful data from an optcial lens. I used CFG files and MODIFYSETTINGS to extract them.But, I could not find any keywords related the distoriton. The CFG of the distoriton was found, and it was “FCD.CFG”I tried some commands such as MODIFYSETTINGS CFG_FILE$ FCD_WAVE 1, but errors occurred.I want some keyword for the FCD.CFG I have another question about report data.In analysis tab, there is a prescrpition report data.There are lots of information of the lens which are very useful.I want to save the report in ZPL.I opend the report using OPENANALYSISWINDOW "pre".However, i can not find any option for saving the report.I tried it using SAVEWINDOW command, but it did not work. If you have any soloution for them, please let me know. Thank you.
Having issues exporting CAD
Hello,I’m attempting to create a lenslet with a biconic front surface to match a grating mode. We need the CAD for this surface for some other software we are using, but I am unable to export the surface without OpticStudio crashing. The surface has admittedly steep curvature, but I don’t think it’s anything normal CAD software wouldn’t be able to produce, so I’m confused why I’m unable to export this surface? For reference, it seems that OpticStudio has issues with surface 2, rays are not included in the export, and usually it just crashes (closes to desktop) without producing any type of error window. Lenslet profile (Y,Z)Lenslet profile (X,Z)Lens Data Let me know what other information you might need.Thank you
Discrepancy between DDR and ZRD output
I have a need to simulate coherent irradiance (power) on the detector in non-sequential mode. First I have tried to proceed the data directly from ZRD file. Based on equations on page 790-791 in Zemax manual I summed all Re and Im values of every ray hiting particulate pixel (based on x,y coordinate on the detector) in all three directions (X,Y,Z) and then calculate RMS value (TOTAL = sqrt((Re,x^2 + Im,x^2)^2+(Re,y^2 + Im,y^2)^2+(Re,z^2 + Im,z^2)^2). When I use the DDR output from detector ( no smoothing, incoherent output) I get similar result but only similar (see figures). The amplitude for both outputs could be relative however, the result from DDR is smoother that ZRD. Since I am new to Zemax I do not want to continue with more complex simulations unless I fully interpret those results. My question is shall both outputs (DDR and ZRD) yield the same results? If so what may be wrong with my approach?Thank you very much for any clue.
How rays enter a multimode fiber at larger acceptance angles
The acceptance NA for a fiber is found by the expression NA = Sqrt(n1^2-n2^2), and the arcsin of this is the acceptance angle. Yet, I am finding a small number of rays are clearly entering the fiber. I am using a multi-mode fiber model in non-sequential explicitly constructed with concentric glass tubes. What is happening here?
Binary Surface Phase Coefficient mismatch
Dear Community,I was trying to make the drawing for fabrication of a binary surface. To get the sag and zone radius of the binary surface I am using "DoeSag.zpl" macro as given in this ZEMAX article.I have also made an excel sheet to convert ZEMAX phase coefficient to the coefficient that will be provided to manufacturer. But the value specified in ZEMAX after running DoeSag.zpl is not same as what I am getting from excel sheet. I have checked my excel formulas several times and it is working fine for another DOE (excel and ZEMAX values are matching). What could be the reason for this?Thanks.
Square Lens export to CAD
I have a OTS lens that the supplier does not provide a Zemax file for it. The lens has a middle section that is square with aspheric surfaces with circular apertures on either face. I can make the lens from 4 surfaces in Zemax, 2 even aspheres and 2 planar for the middle section. It looks fine and 3D Layout and shaded model. If I make the 2 planar surfaces with circular apertures, the lens exports to CAD fine. However, when I leave those surfaces as rectangular apertures, the exported STEP file has overlapping solid bodies that even covers one of the aspheres. The only way, so far, I have been to export it is too export and uncheck the Surfaces as Solids. Then in the CAD I can create an extruded body between the two rectangular faces. This is sorta OK. I run into trouble again if I want to add protective chamfers or fillets to the square edges. I can create these on the solid body I made in the CAD. However the original rectangular faces seem impervious to any editing in CAD,
Finding spatial frequency at a given MTF value and field
Hi there! I’m wondering if there’s an “inverse” to MTFT/S operands where instead of finding the MTF at a given spatial frequency I can find a spatial frequency for a given MTF value and field position. So: Input: MTF value (0.6 for example), field (say 20 degrees), sagittal or tangential (1 or 0?)Output: Spatial Frequency (say 200lp/mm). Been doing this through many trial and errors using MTFT/S and was hoping there was an easier way to arrive at a spatial frequency!
Tips for organizing elements in complicated non-sequential systems?
In non-sequential mode, is there a way to group together or hide elements to organize system files with many different elements?Specifically, when I have heavy system documents (more than fifty elements, and sometimes as many as a hundred), I find myself scrolling back and forth a lot as I work on how sub-groups interact. Ideally, I’d love to be able to hide/collapse lines in the lens data manager (like I would in Excel) so that when I’m working on say two specific sub groups, I can hide the rest to make it easier to work with, but without switching to different files.Are there any organization functions that could help make it easier to work with the lens data manager in files like this?Thanks!
Illumination using a multi-mode fiber
Hi,I try to understand what is the best modelling approach in OpticsStudio if I would like to model the following set up.Light from a high-power laser diode is coupled into a multi-mode fiber (diam:100 um, NA = 0.12). A de-speckle unit can be turned on and off to reduce any speckles that appear after light leaving the multi-mode fiber. A collimating lens (CL) after the fiber collimates the light to a certain diameter. A focusing lens (FL) after CL focuses the light at the focal plane of FL. Target of interest: the Irradiance profile along the focal spot (W/cm^2).What I know is that a de-speckle unit is incorporated to reduce speckles that occur. The despeckle unit makes the light fully incoherent. I would like to be able to model incoherent light. Question 1: For this system, could I work in sequential-mode? Or should I work in non-sequential mode in order to model correctly the multiple passes of light rays inside the fiber? I got inspired by the article of @Jeff.Wilde (Modeling speck
Problem with Matlab code or difference between files in the samples directory with the extensions .zmx or .zos?
Load the following file into Matlab. “MATLABStandalone_02_NSC_ray_trace.m”Go to line 39 and change the file extension from “ .zos” to “.zmx”.File with the name Digital_projector_flys_eye_homogenizer.zos and Digital_projector_flys_eye_homogenizer.zms exist in the SamplesDir.The Matlab code will fail at line 50. It will not fail if the extension is “.zos”.
Simulating Earth albedo for straylight analysis
Hello,we are working with a 1200 EFL Earth-Observation telescope, trying to simulate the Earth albedo as a straylight source in non-sequential Zemax. So, ideally, the source should be represented as a lambertian scattering plane located at infinite distance. Approximating it as a very big plane at a very long distance (namely ~100 km) would result in very few rays striking the detector in the end. We also tried to use importance sampling and didn’t work out (maybe we didn’t do it properly).On the other hand, placing the lambertian plane close to the telescope to ensure that it is “infinite enough” from the point of view of it, would result in undesired effects from defocusing in the veiling glare tests we want to perform.Any hints on how to simulate this source? Should importance sampling work for this?Thanks in advance.
The CPC and its angular dependence for meridional and skew rays
I am working with a CPC (Compound Parabolic Concentrator) and have some questions about what’s happening with it. I understand that a maximum length is allowed, but shorter lengths seem to have a performance reduction as rays outside the acceptance angle are passing through, so maybe the maximum length is the correct length, but shorter CPCs are allowed if the user needs them.More crucially, I am seeing that some rays above the critical angle are passing through while some rays below the critical angle are reflecting back out. What’s going on? Is there a bug?
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.