Navigation: Scripting Reference Manual > Coherent Field Import/Export

 

Coherent Field Import/Export

 

Contact Us: fredsupport@photonengr.com

 

 

 

Description


FRED offers the ability to import/export Complex Vector Fields to/from Lumerical's FDTD Solutions software. This capability extends FRED's reach into micro-scale optical elements and their diffractive effects.

 

 

Application Notes


FDTD Solutions is a completely independent product from FRED, they are connected only by the ability to exchange complex vector fields.  There is no transfer of geometry or optical properties between the two programs.

 

The export of complex vector fields from FRED in this format is possible only from FRED's scripting language.  The script command CreateScriptForLumericalFromVectorFieldFile accepts a complex vector field created by the script command VectorFieldToFile. Two files are created:

1.

 

A formated text file containing the complex vector field data readable from FDTD Solutions script language.

2.

 

An FDTD Solutions script file (*.lsf) that must be run in the FDTD Solutions scripting language. This *.lsf file reads the field data and creates a source in FDTD Solutions.

 

Export of complex vector fields from FDTD Solutions in FRED format is accomplished by running the script ExportFromLumericalToFred.lsf, located in the subdirectory ....\FREDx.xx\Resources\Samples\Coherent Field Import Export in the FRED installation directory.  This script produces an *.fgd file containing the complex vector field readable by FRED. Rays are then created from this file using the FRED script command CreateRaysFromVectorFieldFile or by loading the *.fgd file into the Coherent Field Synthesis dialog.

 

 

Related Topics


CreateScriptForLumericalFromVectorFieldFile

VectorFieldToFile

CreateRaysFromVectorFieldFile

Coherent Field Synthesis

 

For more information about Lumerical: http://www.lumerical.com/

 

 

 

 

 

Copyright © Photon Engineering, LLC