Customization in VirtualLab Fusion

In VirtualLab Fusion any optical entity is treated as an object. These objects have specific characteristics and may be saved and re-used independently. Among the most known of these objects are the sources, components and detectors. VirtualLab Fusion comes equipped by default with an extensive list of predefined optical objects like a Gaussian source. Despite the versatility of all these "off-the-shelf" components, there are situations in which maybe a specific part of a specialized optical setup cannot be covered with the available predefined objects. The good news is users may tackle this challenge with the help of customization in VirtualLab Fusion.

This weeks’ newsletter is dedicated to customization via programming. One easy way to configure a customized object is by programming a snippet. Snippets are programmable templates which specify a clear framework for users to generate their objective quickly. For an in-depth understanding of how snippets work, please check out our use cases below.

Guideline Video

Customization in VirtualLab Fusion

Different users have different preferences regarding some of the settings. Watch our short video on customization in VirtualLab Fusion via snippets.

How to Customize the Position of Source Modes Via Programming and Example

Providing maximum versatility for your optical simulations is one of our most fundamental objectives. The source concept employed in VirtualLab Fusion follows this spirit of customizability: not only can the user manipulate at will the temporal spectrum of the source and the functional shape of the base mode, but also the position and weight of the laterally shifted modes used to replicate the spatial coherence characteristics of the source. This document shows how to configure the latter two source properties (position and weight of the modes) via a piece of user-defined programming code.

Programming a Degree of Coherence Detector

The electromagnetic field on any plane, with arbitrary coherence characteristics, can be decomposed into coherent and mutually uncorrelated modes. In VirtualLab Fusion, one can always access the fully vectorial electromagnetic fields, and by means of the Programmable Detector, one can use the definition of the degree of coherence to calculate said magnitude on the detector plane. This example shows the calculation of the complex degree of coherence for Ex and Ey respectively.

Register for our next Online Training!



Register for our next Online Training!