Ansys Learning Forum Forums Discuss Simulation Photonics Missing script content in the old post Reply To: Missing script content in the old post

Guilin Sun
Ansys Employee

Unfortunately the new Forum policy does not allow us to share the script.

Basically, the work flow is like this:

1: with the scatter, you do the simulation, make sure you use override mesh to have the TFSF uniform meshed.

2: get the E and H field components from the monitors;

3: witht the same mesh in the previous simulation, simply disable the scatter, and run the reference simulation

4: get the E and H field data

5: get the difference of the field data. and then do the integration. 

The rest is to follow the script in the scattering example.

 

Â