You will need to use the script in FDTD "advanced power"
or detector simulation: https://optics.ansys.com/hc/en-us/articles/360042331634-10-V-Ge-on-Si-APD-with-Si-multiplication
One of the example files is FDTD simulation, so please refer to its analysis group:
Â