- Home
- User Articles
- How to Make Any Object into a Source Object
- Home
- Non Sequential Ray Tracing
- Sources, Splitting and Scattering
- How to Make Any Object into a Source Object
How to Make Any Object into a Source Object
- By Michael Pate
- Published 20 January 2007
- User Articles , Sources, Splitting and Scattering
-
Rating:




Creating a Source Object
ZEMAX has the capability to bring in 3D objects from a CAD program like SolidWorks and turn the 3D solid in to an emitting source. Let's take a look at an example.
Procedure:
- In your CAD program, create a tungsten filament from the proper sized wire, with the correct length, diameter, number of turns, shape of the coil, etc. and save this 3D model in STEP, IGES, SAT or STL file format. |
- Save this CAD file into the ZEMAX > Objects directory
- Start ZEMAX and go into Non-Sequential Mode from the File > Non-Sequential Mode path.
- Choose the object type of Imported, then select the filament coil step file.
- Add a new object below the imported object and choose the Object Type: Source Object – This is the tool in ZEMAX to create sources out of any object you can think of creating. Pretty cool, huh?
The source object must be listed in the editor after the parent object. It does not need to come immediately after it: but it is usually tidier to keep the object and the source that depends on it together in one place.
You will need to tell the Source Object what the obejct number of its parent object is, and this is done through the parameter columns of the non-sequenrial component object. The manual tells you all that stuff. You can also give it maybe 500 layout rays and position the source wherever you like in the optical system.
To avoid geometry errors, and to prevent rays leaving the source from immediately striking the parent object, you can set the Rays Ignore This Object flag in the Object Properties dialog:
This means that rays will never interact with the parent object. However, that may be overly restrictive: after all, the parent object may have scattering properties, or be reflective, or have any optical property you wish. Its usually better to use the 'Ignore objects" list and to place the parent object's object number in this list. That way, when a ray is generated it fires straight out, and if it is re-imaged onto the parent it interacts with the parent object normally.
Now put a Detector Rectangle object into your design and position it properly down the z axis or where ever you choose, and give it some size in x and y. Then take a look at your tungsten filament source, by doing an Analysis > Layout > NSC Shaded Model. Trace rays!
![]() |
| NSC Shaded Model of the new Source Object method of creating an extended source filament to model a tungsten wire source |
Here is another example of a Socket Head Cap Screw from SolidWorks that I saved as a step file and used the above procedure to bring into NSC ZEMAX. I made the object radiate rays at 10.6 micron wavelength and then created a bi convex germanium lens to image this “source” onto a detector.
![]() |
| Socket Head Cap Screw as an Infrared “Source” in NSC ZEMAX |
Both these CAD files can be downloaded from the lists at the end of this article.
Now it is your turn. What you can you do with these fantastic tools in ZEMAX to create the light source/emitter in the shape of your dreams?
Attachments
2 Responses to "How to Make Any Object into a Source Object" 
|
said this on 11 Jul 2007 4:44:50 PM PDT
This is cool!
|
|
said this on 08 Aug 2007 1:44:28 AM PDT
Great article. However, is there a way to just create a new source object (i.e. a rectangular source) in Zemax rather than importing it from a CAD program?
{Good Question. In non-sequential mode Zemax has most of the typical geometric shapes defined as sources such as: rectangular or elliptical plane; rectangular, elliptical, and cylindrical volume (which means the rays start are random points with in the volume); points, rays, tubes, and filament wires, and more. Just go into NSC mode and right click any object and go to the type tab, and type drop down box and then scroll down to sources and play around with them. I needed a real fat filament, like a tungsten wire with a curve on the coil so this is why I created the cad method and the socket head cap screw was just a way to make it kind of ridiculous to get people to think outside the box with sources – a whack on the side of the head if you will. Michael, www.oscintl.com}
|


Author)