Click here to see a list of scheduled events, and to set up a meeting!
See how to design fiber-to-waveguide couplers for photonics integrated circuits
Ansys Zemax Most Frequently Asked Support Q&A, curated by the Zemax team!
I am currently engaged in the design of large-scale metasurfaces and am interested in utilizing Zemax to evaluate their performance. I came across a reference that seems to align with my objectives: https://optics.ansys.com/hc/en-us/articles/18254409091987-Large-Scale-Metalens-Ray-Propagation.My specific inquiry pertains to the possibility of conducting a scan along the axial (z) direction to accurately locate the focal point. I have observed that the actual focal point of the lens appears to be displaced, and manually adjusting the numbers to shift the image plane's location seems to have its limitations. Furthermore, I am interested in generating a plot similar to the thick curve depicted in the figure from the publication by Pedro Carpena and Ana V Coronado (2006, Eur. J. Phys. 27:231). This visualization would significantly aid in pinpointing the precise location where the metalens achieves optimal focus.Could you advise if there is a specific function within Zemax that facilitates
ALL: Feb 27, 2024 I am trying to find a good way to achromatize a lens group, in a larger more complex system, such as within a zoom lens assy.The AXCL and LACL seem to look at the whole system, and all surfaces, 1-20. If i am trying to provide optimization target/control (to achromatize) , of say surfaces 1-6 for a 3 lens group, what is the best way to go about this ? I can see the seidel coefficients in the table-report. How can i access/use them as inputs to constraints for color correction. ?? Thank you in advance, for any ideas.
Hello, I am very new to ZOSAPI - python programming. I am simply following the article - https://support.zemax.com/hc/en-us/articles/1500005489681-Connect-to-OpticStudio-from-Python-with-the-ZOS-API-Interactive-ExtensionI am using pycharm IDE and running pythonZOSconnection6.py from it (as suggested, in running this in python console). Upto this point, everything seems to be working fine. I see the prompt in optics studio (given below) with the status : connected. OpticsStudio Connection made All the variable are also loaded : Variables Defined However, I don’t see this feature “It means that there is an “Intellisense” when working with the Interactive Extension” .Missing Intellisense That is, none of the methods of ZOSAPI are loaded. And if I try running the example code (as suggested in the article), I am getting an error, “ModuleNotFoundError: No module named 'ZOSAPI'” . ModuleNotFound ErrorI have already installed Pythonnet package, which helped to make the first connection with
I was just testing a macro when I noticed something strange. The number shown in the Edit/Run UI does not match the actual line number in the ZPL macro editor. I grabbed this image while the UPDATE ALL line was running, but the Status indicates line 5 is currently running. Line 5 is just a comment. It appears the lines with “!” are being ignored by the status indicator. For reference, I am using Zemax OpticStudio 23.2.1
I am trying to write a custom GRIN *.dll file for non sequential mode that will allow me to limit refractive index above or below a certain value and just set it to a constant. However, I am having a hard time defining the derivatives to return as required in the GRIN *.dll files. As an example, if my refractive index looks something like below: I would like to cut everything off above and below a certain threshold, even if my n(x,y,z) function gives me a value thats within it. I have currently been doing this with just a merit function and limiting index that way, but would like to be able to just programmatically restrict it. I also tried a variant where I set the derivatives to 0 or ignored them, but had errors tracing the rays. Anyone have a good solution? Happy to provide any files needed.
I have a system where the PSF is constructed from several different configurations (>2) simultaneously. I see that the Huygens PSF and MTF can do a coherent sum from different configurations (which is awesome). However in my case I expect them to be mostly incoherent to one another. Is there a way to directly generate incoherent sum PSF and MTF results?
Hello,We have different values between Footprint and PARR operand ( see below): on footprint : Max radius = 0,1241 in Merit Function : PARR Surf 23 = 0.120how can we get the value of the footprint in the Merit function?Thanks for your help,
In OpticStudio, We can load any spectrum file from our \Objects\Sources\Spectrum Files Folder .Here is the available code for Matlab and Python. You can use this code in Standalone or Interactive Extension.-Copy the code in your file .-Change the path of testfileMatlab Code: import ZOSAPI.*;TheSystem = TheApplication.PrimarySystem;sampleDir = TheApplication.SamplesDir;testFile = System.String.Concat("C:\test\ZPO\Diode sample.ZMX"); NSCE = TheSystem.NCE;Obj1 = NSCE.GetObjectAt(1); Source_Color=Obj1.SourcesData.SourceColor;Source_Color=ZOSAPI.Editors.NCE.SourceColorMode.SpectrumFile;filesAvailable = Obj1.SourcesData.SourceColorSettings.GetAvailableSpectrumFiles();FileToSelect=filesAvailable(6);Obj1.SourcesData.SourceColorSettings.SpectrumFile=FileToSelect; Matlab Interactive Extension Python Code:testFile = r"C:\test\ZPO\Diode sample.ZMX"TheSystem.LoadFile(testFile, False)print(TheSystem.SystemFile)NSCE = TheSystem.NCEObj1 = NSCE.GetObjectAt(1) Source_Color=Obj1.SourcesData.Sourc
I got this error only when started using the last version Ray tracing works OK and I see the image on the detector. Whet setting merit function the error message says that this is an error in NSTR operand. The merit function is very simple# Type Int1 Int2 Hx Hy Px Py Ex Ey Target Weight Value Contrib 1 NSDD 1 0 0,000000000000000E+000 0,000000000000000E+000 1,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+0002 NSTR 1 1 1,000000000000000E+000 1,000000000000000E+000 1,000000000000000E+000 1,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+000 0,000000000000000E+0003 NSDD 1 3 0,000000000000000E+000 0,000000000000000E+000 1,000000000000000E+000
I’m relatively new to using Zemax and recently tried to optimize an aspheric lens using two extended asphere surfaces. During this process, I accidentally set the normalization radius as a variable and did not realize it until much later. I now have a negative normalization radius for both surfaces and was wondering what this means for the asphere surface? When looking at the sag of the asphere and switching the sign of the radius, nothing seems to change. However, the rays bend quite differently at the asphere surface depending on the sign. I thought this radius value was used for normalization of the coefficients, and considering all the coefficients are even, I didn’t think changing the sign would have an effect. Again, the sag does not seem to change, but the ways the rays bend on the layout change quite drastically.Picture of sag for positive radius.Picture of layout: For a negative radius, sag (this looks identical to the positive case): Layout: For context, I am changing the no
Is anyone facing this weird bug?Steps to reproduce the UI bug:Open an empy lens file (sequential mode, if that matters) Tolerance > Tolerance Data Viewer (leave it empty, do not load any file) Setup > OpticStudio Preferences > OK or CancelThe UI freezes completely and no button can be pressed any more. I need to kill the application by left-click on the taskbar and “Close Windows”.Version: Ansys Zemax OpticStudio 2024 R1.00, but I know from a colleague this happens also with the non-Ansys version.
Why is ZEMAX 2D image simulation not based on the relationship between objects and images, and cannot see inverted or mirrored images??
Do not provide any information or data that is restricted by applicable law, including by the People’s Republic of China’s Cybersecurity and Data Security Laws (
e.g., Important Data, National Core Data, etc.).
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.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.