Although we haven't used COMSOL we have recently published a 1D time dependent drift diffusion code in Matlab to simulate the behaviour of hybrid perovskite solar cells containing mobile ions, which influence hysteresis. The efficiency you get out will depend on the input parameters!
If you'd like to use the code it is available here: https://github.com/barnesgroupICL/Driftfusion