Modeling of a photovoltaic field in malfunctioning