ZEMAX Users' Knowledge Base - http://www.zemax.com/kb
How to use Opsira LED Sources
http://www.zemax.com/kb/articles/150/1/How-to-use-Opsira-LED-Sources/Page1.html
By Mark Nicholson
Published on 25 November 2006
 
This article describes how to use Luca'Raymaker from Opsira to generate source files that ZEMAX can use for ray-tracing.

Introduction
ZEMAX Development Corporation thanks Opsira GmbH for providing the source data used in this article.

The most accurate way to model sources in ZEMAX is to use measured sources, like Radiant Imaging's Radiant Sources, and Opsira's Luca'Raymaker. Our article on how to model LEDs describes the use of Radiant Sources in detail. This article describes how to enter Opsira source data.

Generating Source Files
After installation, an Opsira model folder contains three files:



The .orf file is the ray database file, the .igs is a CAD model that represents the physical structure of the lamp, and the .pdf is a manufacturer's datasheet. The main luca'Raymaker program is:



The 'origin file' refers to the *.ort file, and the total number of rays included in the measurement is displayed. Any number of rays up to this limit can be generated. The generated ray set is placed in the {zemaxroot}/objects folder, and must have the extension .DAT


Loading into ZEMAX
The lamp datasheet states a total output power of 5800 lumens for this lamp. No specific wavelength data is given, so we will assume that a wavelength of .555 microns (the peak of the photopic response) is used.

A new ZEMAX file is opened. The wavelength is entered via the wavelength dialog box:



and the source units set to kiloLumens:



Importing the supplied CAD object is optional. The ray generation does not require the CAD model, but it can be useful. For example, if light is re-imaged on the source it is good to be able to specify reflectivity, scattering functions etc. Also, sometimes it is useful to trace rays back to the source object. This is particularly true in identifying troublesome rays. In automotive headlamp applications, rays which glare into oncoming drivers eyes can be traced back to the source to help identify improved baffling.

In this case, we import both the CAD object and the source ray set. A Source File object is used to import the rays:


with the result:


Other Opsira sample files.
There are two other sample files supplied with the Luca'raymaker evaluation version. Here is the Philips 1242N compact halogen lamp placed at the focus of a parabolic reflector:



and here is a detailed view of the CAD file that defines the lamp:



Here is the Luxeon LXHL_PW09 LED source:



Note that the data is not complete in the demonstration version, which is why half of the irradiance pattern is missing. This limitation is in the demonstration version dataset, and is not a fault.


Errors in Luca Raymaker manual
The user guide for the Luca Raymaker software contains several errors in its description of how ZEMAX uses the data provided:



1. The wavelength used can be set to any number desired, via the Wavelength dialog box.
2. Units of flux can be Watts, Lumens or Joules
3. Any number of rays can be imported, as long as there is sufficient memory. 10 million is the default, and not the maximum.