Photovoltaics, the direct conversion of light from the sun into electricity, is an increasingly important means of distributed power generation. The SPICE modelling tool is typically used in the development of electrical and electronic circuits. When appl