yes, please refer to this exmaple https://optics.ansys.com/hc/en-us/articles/360042165534-Planar-silicon-solar-cell
As for the diverging issue, please visit this article https://optics.ansys.com/hc/en-us/articles/8355464963987-Troubleshooting-convergence-errors-in-CHARGE