FRED Knowledge Base

Modifying Source Wavelength Specifications

This knowledge base article demonstrates an example of how to automate an analysis of which is dependent on a source’s wavelength specification.  The setup is a ray bundle incident on a linear grating at some non-zero angle.  The diffracted beam reflects from the grating and...

Read More

Wavefront Data in Script

The attached example file demonstrates an embedded script routine which will calculate the wavefront for rays on a particular surface of interest and write out the data to a text file.  The text file can then be read back into FRED for analysis by navigating...

Read More

Wavefront Data in Script

The attached example file demonstrates an embedded script routine which will calculate the wavefront for rays on a particular surface of interest and write out the data to a text file.  The text file can then be read back into FRED for analysis by navigating...

Read More

Rotate and Analyze

The attached FRED file has an embedded script called “rotateAndAnalyze” that demonstrates how to rotate a source over a range of angles and perform an analysis at each step in the rotation.  In this configuration, the asymmetric source is rotated about the z-axis as it...

Read More

FRED Automation with Matlab

Using FRED’s COM interface it is possible to exchange data with external programs such as MATLAB and Excel.  This article presents an example where FRED and MATLAB are used respectively as the automation client and server in order to exchange data and create plots.  There are a...

Read More

Obtaining Data Angular Range via Scripting

This script provides the user with numerical values for the upper and lower bounds of the polar intensity data collected at a user‐selected DAE Analysis Surface. This is done by looping trough the data array and determining the maximum and minimum angles for which there...

Read More

Summing Data in ARNs

This knowledge base article discusses how to iterate calculations and sum the results in the ARN (Analysis Results Node) via a script. One reason why this might be useful is that when tracing a large number of rays, tracing in batches and summing the results...

Read More

Energy Conservation with Scatter and Coatings

During a raytracing process, rays encounter surfaces that might have a combination of reflection, transmission, absorption and scatter properties that split the rays into various components. FRED allocates flux values to each ray by looking at these surface properties in a specific order. The user...

Read More

Bird Solar Model Source Creator

This knowledge base article describes a script that generates a FRED source that models the properties of solar light incident on a tilted or solar-tracking surface. The calculations are based on the National Renewable Energy Laboratory (NREL) “Bird Simple Spectral Model”. The model, created by...

Read More

Digitizing Polar Plot Data

This knowledge base article discusses how to use FRED’s digitization tool with polar data.  A typical application would be to specify ray directions for a source using an intensity profile from a specification sheet.  When available it is preferable to use a rayset in place...

Read More