tidy3d icon indicating copy to clipboard operation
tidy3d copied to clipboard

GDS export wrappers in `JaxSimulation`

Open tylerflex opened this issue 1 year ago • 0 comments

Seems better to just allow JaxSimulation to export simulation directly rather than making the user convert to a regular Simulation first.

# Convert the final adjoint simulation to a regular one.
sim_final = sim_adj.to_simulation()[0]

# Export the final simulation to GDS.
sim_final.to_gds_file(fname="inverse_design.gds", z=0, permittivity_threshold=6, frequency=200e14)

becomes

# Export the final simulation to GDS.
sim_adj.to_gds_file(fname="inverse_design.gds", z=0, permittivity_threshold=6, frequency=200e14)

tylerflex avatar Dec 22 '23 14:12 tylerflex