Photovoltaic system for self-consumption in an industry