Cover Page


Simplified Green Codes



Wiley Logo









To my daughter Rayna who will be in a dire need for green energy when she understands the contents of this book and to my wife Aida.

Tamer Khatib

To my daughters Gretchen and Viviane and to my wife Claudia.

Wilfried Elmenreich


Dr. Tamer Khatib, Energy Engineering and Environment Department, An‐Najah National University, Nablus, Palestine

Tamer is a photovoltaic power systems professional. He holds a B.Sc. degree in electrical power systems from An‐Najah National University, Palestine, as well as a M.Sc. and a Ph.D. degrees in photovoltaic power systems from National University of Malaysia, Malaysia. In addition, he holds a habilitation degree in renewable and sustainable energy from the University of Klagenfurt, Austria. Currently he is an assistant professor at Energy Engineering and Environment Department, An‐Najah National University, Nablus, Palestine. So far, he has published over 85 published research articles, meanwhile his current h‐index is 14. Moreover, he has supervised six Ph.D. and four M.Sc. researches. He is a senior member of IEEE Power and Energy Society and member of the International Solar Energy Society.

Professor Dr. Wilfried Elmenreich, Smart Grids Group, Alpen‐Adria‐Universität Klagenfurt, Klagenfurt, Austria

Wilfried Elmenreich studied computer science at the Vienna University of Technology where he received his master’s degree in 1998. He became a research and teaching assistant at the Institute of Computer Engineering at Vienna University of Technology in 1999. He received his doctoral degree on the topic of time‐triggered sensor fusion in 2002 with distinction. From 1999 to 2007 he was the chief developer of the time‐triggered fieldbus protocol TTP/A and the Smart Transducer Interface standard. Elmenreich was a visiting researcher at Vanderbilt University, Nashville, Tennessee, in 2005 and at the CISTER/IPP‐HURRAY Research Unit at the Polytechnic Institute of Porto in 2007. By the end of 2007, he moved to the Alpen‐Adria‐Universität Klagenfurt to become a senior researcher at the Institute of Networked and Embedded Systems. Working in the area of cooperative relaying, he published two patents together. In 2008, he received habilitation in the area of computer engineering from Vienna University of Technology. In winter term 2012/2013 he was professor of complex systems engineering at the University of Passau. Since April 2013, he holds a professorship for Smart Grids at Alpen‐Adria‐Universität Klagenfurt. His research projects affiliate him also with the Lakeside Labs research cluster in Klagenfurt. He is a member of the senate of the Alpen‐Adria‐Universität Klagenfurt, senior member of IEEE, and counselor of Klagenfurt’s IEEE student branch. In 2012, he organized the international Advent Programming Contest. Wilfried was editor of four books and published over 100 papers in the field of networked and embedded systems.


Recently, photovoltaic system theory became an important aspect that is considered in educational and technical institutions. Therefore, the theory of photovoltaic systems has been assembled and introduced in a number of elegant books. In the meanwhile, the modeling methodology of these systems must be also given a focus as the simulation of these systems is an essential part of the educational and the technical processes in order to understand the dynamic behavior of these systems. Thus, this book aims to present simplified coded models for these systems’ component using Matlab. The choice of Matlab codes stands behind the desire of giving the student or the engineer the ability of modifying system configuration, parameters, and rating freely. This book comes with five chapters covering system’s component from the solar source until the end user including energy sources, storage, and power electronic devices. Moreover, common control methodologies applied to these systems are also modeled. In addition to that auxiliary components to these systems such as wind turbine, diesel generators and pumps are considered as well.

In general the readership of this book includes researchers, students, and engineers who work in the field of renewable energy and specifically in photovoltaic system. Moreover, the book can be used mainly or partially as a textbook for the following courses:

  • Modeling of photovoltaic systems
  • Modeling of solar radiation components
  • Computer application for photovoltaic systems
  • Photovoltaic theory

The authors of this book believe that this book will helpful for any researcher who is interested in developing Matlab codes for photovoltaic systems, whereas many of the basic parts of system models are provided.


The authors would like to thank Wiley publishing house’s editorial team including but not limited to Brett Kurzman, Kathleen Pagliaro, and Divya Narayanan for their kind cooperation. In addition to that, the authors would like to acknowledge the valued contribution of Dr. Ammar Mohammed Ameen, Dr. Dhiaa Halboot Muhsen, Eng. Ibrahim A. Ibrahim, Dr. Aida Fazliana Abdul Kadir, Dr. Manfred Rabl‐Pochacker, Dr. Andrea Monacchi, Dr. Dominik Egarter, Ms. Kornelia Lienbacher, and Professor Dr. Azah Mohamed to this book.