Ansys Learning Forum › Forums › Discuss Simulation › Optics › Length units in Zemax Beam File › Reply To: Length units in Zemax Beam File
Â
Hi Oliver,
Thanks for the question! I think what might help here is to dissect the structure of the ZBF file itself. If you look at its structure (Zemax Beam File (ZBF) text format (ansys.com)), you’ll find this documentation:
The important part here, highlighted above, is a property that indicates the lens units (mm, cm, in, etc.). When OpticStudio reads the ZBF file, it does so considering the units indicated for the values in the files. If the lens system that the ZBF is being imported into has different units, then an appropriate conversion will happen for the properties of the beam. Unless noted otherwise, every distance measurement should be in lens units. Therefore, it is not necessary to know the lens units for the intended optical system, only the lens units at the time of ZBF creation.
For the file where you receive a warning about the wavelength mismatch, do you know if the sixth-lined parameter in the ZBF was units = 3? This would tell OpticStudio to expect meters.
Ethan
Â