We use COMSOL Multiphysics software to model optical processes in media and the effects of light propagation in whispering gallery mode resonators (WGMRs). Although plane wave irradiating on resonator does not create resonances, it was shown that they can be obtained when focused tangentially on the perimeter of the resonator. We demonstrate that resonances can be excited in resonators by prism coupling when the incident angle of the light is larger than the angle of total internal reflection. We determined the optimal distance between the prism and the resonator to get the strongest resonances. Bio-sensing principle of WGMRs is shown by demonstrating that the shift of resonances increases with a larger number of "bio-molecules" attached to the surface of WGMR. Surface functionalization and surface roughness were explored.