How do I export field data to zbf?#
Date |
Category |
---|---|
2025-05-05 15:41:00 |
Data Visualization and Postprocessing |
To export planar field monitor data to a Zemax beam file (.zbf), you can use mon_data.to_zbf()
. For example:
# Run the simulation and get the data.
sim_data = tidy3d.web.run(simulation, task_name="task", path="data/data.hdf5", verbose=True)
# Save the data to a zbf file
ex, ey = sim_data['field_monitor'].to_zbf(
fname='myzbf.zbf',
background_refractive_index=1.0,
)
Detailed documentation can be found: here