Accurate modelling of photovoltaic (PV) modules is essential for the design and optimization of solar energy systems. This paper presents a smart and reconfigurable PV modelling engine developed in the MATLAB/Simulink environment using only manufacturer datasheet parameters. The model is based on a single-diode equivalent circuit, where unknown parameters are estimated using a nonlinear Newton–Raphson iterative approach.
The proposed framework generates current–voltage (I–V) and power–voltage (P–V) characteristics under varying irradiance and temperature conditions. It also enables flexible analysis of PV array configurations by varying series and parallel connections, allowing performance evaluation for different load requirements. In addition, the model supports maximum power point identification for MPPT applications. Validation results show strong agreement with datasheet characteristics, demonstrating the accuracy and effectiveness of the proposed approach.