Skip to content

Mode Solver: saving mode data included fields #1657

Closed Answered by tylerflex
smgitrep asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @smgitrep the ModeSolverData can be written to file with to_file and read using from_file.

So for example, if

mode_data = mode_solver.solve()

mode_data.to_file('mode_data.hdf5')

# and later

mode_data = td.ModeSolverData.from_file('mode_data.hdf5')

hope that helps

https://docs.flexcompute.com/projects/tidy3d/en/latest/api/_autosummary/tidy3d.components.base.Tidy3dBaseModel.html#tidy3d.components.base.Tidy3dBaseModel.to_file

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tylerflex
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants