Ansys Learning Forum Forums Discuss Simulation Photonics Reusing mesh for FDTD S-parameter sweep Reply To: Reusing mesh for FDTD S-parameter sweep

Amrita Pati
Ansys Employee

Hi Karen,

Saving and reusing mesh is a very advanced feature and does not have direct support in the UI. Instead one has to use command line arguments to the engine. Those command line arguments are documented here:

https://optics.ansys.com/hc/en-us/articles/360024812334-Running-simulations-using-the-Windows-command-prompt

The idea is that you can run a simulation with the option

-outmaterialfile 

and then you can run subsequent simulations with the command line argument

-inmaterialfile 

where it loads the mesh from instead of meshing.

This option can be useful and saves time when the geometry and the materials don't change and you just want to simulate different source settings (source positions, incident angle, ...). 

Additionally, I am not sure if this is also somthing that could be setup with S-matrix sweep tool in the GUI. Let me check this and come back to you.

Regards,
Amrita