2d Material Based Photodetectors Using Comsol