FRED Knowledge Base

Importing Doublets

This article outlines the general process for importing a Cemented Doublet from an optical model, using an Edmund Optics 45089 Achromat as an example (Zemax file used).  When FRED imports a doublet, two individual singlet elements are created and the user has two options: Use...

Read More

Plotting in Excel using COM

The purpose of this document is to describe two scripts which demonstrate the generation of a Gaussian dataset and a data plotting routine that routes data from FRED to Excel directly via COM.  Although the primary intention of this article is to demonstrate how to...

Read More

Animating FRED Results

Many FRED analysis tasks involve some sort of parameterized scan through a set of system configurations and I have found that compiling FRED results as an animated image set is particularly useful for conveying the dynamic behavior of the system output. At the time of...

Read More

Compute Distance Between Objects

The attached FRED file contains an embedded script which shows how you can calculate the distance between two objects using the scripting language. The script works by using the TransformPosition command, which takes a starting coordinate system, a new coordinate system and a position vector...

Read More

CAD Surface Position and Orientation

When FRED imports a CAD model, all of its surfaces are defined by NURBs, or trimmed versions of those NURBs called Trimmed Parametrics. These parametric surfaces are always defined in the global coordinate system. One of the major difficulties with this definition is that the...

Read More

Rotating an Object in Scripting

The attached FRED file demonstrates how to use the scripting language to rotate an object through some range of angles in a loop.  Conceptually, the setup is very simple.  We have a focusing ray bundle which passes through a beamsplitter cube down to a detector....

Read More

Analysis Surface Script Commands

This article is intended to clarify any confusion between several of the scripting commands that are commonly used for analysis surfaces. Analysis surfaces themselves have three defining parameters, their sampling grid, ray filters, and location in space. They can also be used to generate Analysis...

Read More

List Surfaces with Assigned Coating

While making FRED models that had many surfaces and a few different coatings applied throughout the system, I noticed that it became very time consuming to verify that all of the coatings are applied to the correct surfaces since it can only be done surface by surface. The example...

Read More

Axicon Lens Example

This is a model of a Thorlabs Axicon Lens AX2520-UV which is used in this model to convert a plane wave input beam into a ring profile. The raytrace is performed coherently using FRED’s Gaussian Beam Decomposition technique. To minimize ray errors at the center...

Read More

Radial Varying Coating

Coatings can be applied to any surface in FRED, with many different options available.  For specific solutions the user can define a general Script Coating which allows reflection and transmission coefficients to be computed based on ray position, polarization, angle of incidence, wavelength and the...

Read More