Mathematica Read Write ZBF Files For POP

  • 12 September 2022
  • 0 replies
  • 183 views

Userlevel 4
Badge +1

This Mathematica code reads and writes binary .ZBF files, for use in Physical Optics Propagation (POP).  We generate data for a Gaussian beam, write the data to a .ZBF file, and read the .ZBF file back in.  Users can use this code to create their own beams to launch in POP.  Users may also modify this code if they have beam data that they've measured in the lab, and want to launch the measured beam in POP.  For more details, see the ReadWriteZBFs_12.PDF file included in the .ZIP file at the link below.

Functions contained in the .nb file include:  

  • beaminfotable - Displays a table of important values for defining a Guassian beam.
  • generategaussiandata - Creates beam data for a Guassian beam.
  • WriteZBF - Writes a binary ZBF file.
  • ReadZBF - Reads a binary ZBF file.
  • findamplitueandphase - Converts the real and imaginary arrays in the ZBF file into amplitude and phase.

 

Click here to download

Date Version OpticStudio Version Comment
2019/11/13 1.0 - Creation

0 replies

Be the first to reply!

Reply