write_phf

photonforge.write_phf(filename, *args)

Save a phf file with photonforge or other objects.

Parameters:
  • filename (str) – File path to save.

  • *args (Any) – All photonforge objects are supported. Serializable Tidy3D objects and many native python and numpy types are also supported.

Note

Component dependencies and technologies are automatically included in the file.

Example

>>> technology = pf.basic_technology()
>>> component = pf.Component("MAIN", technology=technology)
>>> pf.write_phf("main.phf", component)  # includes the technology
>>> pf.write_phf("tech.phf", technology)  # only technology in file

See also

Y Splitter