Guilin Sun
Ansys Employee

I am sorry to hear this. Usually you can open the analysis group, check the script and see what it is computing. you can also refer to this example  

Diffraction grating  and copy its analysis group.

Make sure the PML is extended outside of PML, long simulation time with small autoshutoff min in case there is strong resonance.