Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode

Categories:

Hello! I’m the new Optics Engineer here at PADT, and I am excited to share the world of optic and Ansys Zemax OpticStudio with our new and existing simulation customers. I have a background in Aerospace and Defense, where I primarily worked on beam propagation optics. I have been lucky to not only design optical systems but also assemble, align, and integrate them into larger systems. I am currently pursuing a master’s degree in optical sciences at The University of Arizona, focusing on optomechanics.

About Ansys Zemax OpticStudio

Zemax OpticStudio is the world leading optical design software recently acquired by Ansys. It’s a staple in the optics world and difficult to compete with. So, it is only fitting that PADT introduces an optical engineer to their team of application engineers. The addition of Zemax to the Ansys portfolio opens up a world of opportunity within optical design. An entire optical design workflow can now be done internally with the right Ansys package.

This means that both optical and optomechanical designs can be created and analyzed and then imported into Ansys Mechanical for FEA analysis so that the effects of structural and thermal deformation on the optical performance can be analyzed and understood. And that is only the beginning of the capabilities that are possible because of the Zemax acquisition into Ansys.

I thought it would be a great idea to begin a series of blog posts centered on optical capabilities in Ansys. The blog series will include tutorials, tips and tricks, and common issues encountered by users. My first couple of blog posts will follow a Double Gauss objective as it continues down the path in Zemax OpticStudio of further analyses after initial design and optimization. If you have any topics you’d like covered, feel free to reach out to us at PADT!

How to Import Your CAD Geometry Using Non-Sequential Mode

This first blog post focuses on importing CAD geometry into Zemax OpticStudio using non-sequential mode (it is important to note that this can also be done in sequential mode using a different set of steps… but that isn’t the focus of this post). We can review the differences between sequential and non-sequential mode in a later post.

I began by using the Double Gauss sample file provided in the Samples folder of the Zemax files that are downloaded when each user installs Zemax OpticStudio. Because I used off-the-shelf optical mounts, I updated and optimized the Double Gauss example to take into consideration the restrictions on the system from the geometry of the mounts. These first steps were done in sequential mode.

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 1

Once the design was created, it was exported from Zemax OpticStudio and imported into SpaceClaim. This can be done by going to the “File Tab” and finding the “CAD Files” option in the File Tab ribbon. The “Export CAD File” window should open and look like this:

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 2

There are different ray patterns to choose from, but for this example I chose the Solid Beam option. I exported the design as a STEP file, but users should choose the file type better suited for their CAD platform.

I then imported the STEP file into SpaceClaim, where the rays are represented by the three solid beams corresponding to the three fields of the system. Exporting the rays is optional, I export the rays to ensure that there is no clipping due to the mechanical components. For those using SpaceClaim, I suggest right-clicking on the optics within the structure tree and clicking “Toggle to Heavyweight” so that the optics are considered equal to the mechanical parts and can be moved accordingly. The beam bodies can be kept as lightweight bodies as they are just being used as a reference. In the structure tree, lightweight bodies have a feather on their solid body icon.

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 3

Here is the optical design within SpaceClaim:

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 4: Optical Geometry in SpaceClaim

I then imported the CAD geometry to create my optomechanical assembly. I used a simple tube system and retaining rings to secure the optics. Here is a cross-section of the assembly:

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 5

The next step is to export the assembly from SpaceClaim into a STEP file. It is important to do this while suppressing the optical components, the optics are already in Zemax OpticStudio. When accounting for just the mechanical mounts, the assembly will look like this:

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 6

The file should be saved in the “…\Zemax\Objects\CAD Files” folder to be used as a CAD object in Zemax OpticStudio.

Before the assembly can be imported into Zemax OpticStudio, the design needs to be converted from sequential mode to non-sequential mode. This conversion can be done by clicking on the “Convert to NSC Group” icon under the file tab of Zemax OpticStudio. The corresponding window will look like this:

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 7

First step is to perform a Design Lockdown which converts idealized inputs into real manufacturing inputs, for example, it converts the system aperture into a physical aperture size. It is also recommended to run a Critical Rayset Generator, but because this example has an “Entrance Pupil Diameter” aperture type, this step will be skipped. With the “Convert to NSC Group” window ready with each option checked, the file is ready to be converted to non-sequential by pressing the “OK” button.

A new window of OpticStudio will open, and the design should mirror itself in non-sequential mode. Each field has been converted into its own source, and each focus point has a detector in place. I went ahead and added an image plane detector to capture all three fields/sources in one detector. Often, troubleshooting will need to take place during the conversion from sequential to non-sequential, as files do not smoothly convert properly. For this example, I will not go over the troubleshooting steps necessary during one of these conversions.

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 8

The mechanical assembly can now be imported into OpticStudio by inserting a new line in the Non-Sequential Component Editor before the source ellipses:

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 9

The object type should be “CAD Part: STEP/IGES/SAT.” Once the object type is selected, a window will ask which file from the CAD Files folder to use. The file name will appear in the comment section of the object as shown:

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 10

The assembly should then be imported into OpticStudio as a single component. The Z position of the assembly will need to be adjusted to its correct position. This position value may vary depending on how the two separate files were converted and imported into non-sequential mode. It is important to note that non-sequential mode uses a global coordinate system rather than a local coordinate system like sequential mode.

Importing CAD Into Ansys Zemax OpticStudio Using Non-Sequential Mode Figure 11

The final assembly has both the optical lenses with accurate optical properties, along with the geometry of the CAD assembly. The next step in this adventure involves accurately depicting the properties of the CAD assembly. In future blog posts, we can explore how to explode the CAD assembly into its individual components, and applying accurate coatings to the CAD assembly so that an accurate scatter analysis can be done.

You can download the files used here.

Until next time!

Categories

Get Your Ansys Products & Support from the Engineers who Contribute to this Blog.

Technical Expertise to Enable your Additive Manufacturing Success.

PADT’s Pulse Newsletter

Keep up to date on what is going on at PADT by subscribing to our newsletter.


By submitting this form, you are consenting to receive marketing emails from: . You can revoke your consent to receive emails at any time by using the SafeUnsubscribe® link, found at the bottom of every email. Emails are serviced by Constant Contact

Share this post:

Upcoming Events

04/22/2024

Experience Stratasys Truck Tour: Houston, TX

04/24/2024

Structures Updates in Ansys 2024 R1 (2)

04/24/2024

Experience Stratasys Truck Tour: Houston, TX

05/07/2024

Experience Stratasys Truck Tour: Albuquerque, NM

05/07/2024

Dynamic Simulation for Rocket Propellant Systems! - Webinar

05/08/2024

Fluent Materials Processing Updates in Ansys 2024 R1 - Webinar

05/13/2024

Experience Stratasys Truck Tour: Tempe, AZ

05/14/2024

Simulation World 2024

05/15/2024

Simulation World 2024

05/16/2024

Simulation World 2024

05/22/2024

Optics Updates in Ansys 2024 R1 - Webinar

06/12/2024

Connect Updates in Ansys 2024 R1 - Webinar

06/26/2024

Structures Updates in Ansys 2024 R1 (3) - Webinar

06/27/2024

E-Mobility and Clean Energy Summit

07/10/2024

Fluids Updates in Ansys 2024 R1 - Webinar

08/05/2024

2024 CEO Leadership Retreat

10/23/2024

PADT30 | Nerdtoberfest 2024

Search in PADT site

Contact Us

Most of our customers receive their support over the phone or via email. Customers who are close by can also set up a face-to-face appointment with one of our engineers.

For most locations, simply contact us: