pvpumpingsystem.pvpumpsystem.PVPumpSystem

class pvpumpingsystem.pvpumpsystem.PVPumpSystem(pvgeneration, motorpump, coupling='mppt', motorpump_model=None, mppt=None, pipes=None, reservoir=None, consumption=None, idname=None)

Class defining a PV pumping system made of:

pvgeneration

Note that the weather file used here should ideally not smooth the extreme conditions (avoid TMY or IWEC for example). The pvgeneration.modelchain.dc_model must be a Single Diode model if the system is directly-coupled

Type:pvpumpingsystem.PVGeneration,
motorpump

The pump used in the system.

Type:pvpumpingsystem.Pump
coupling

represents the type of coupling between pv generator and pump. Can be ‘mppt’ or ‘direct’

Type:str,
motorpump_model

The modeling method used to model the motorpump. Can be: ‘kou’, ‘arab’, ‘hamidat’ or ‘theoretical’. Overwrite the motorpump.modeling_method attribute if not None.

Type:str, default None
mppt

Maximum power point tracker of the system.

Type:pvpumpingsystem.MPPT
pipes
Type:pvpumpingsystem.PipeNetwork
reservoir
Type:pvpumpingsystem.Reservoir
consumption
Type:pvpumpingsystem.Consumption
llp

Loss of Load Probability, i.e. Water shortage probability. It is None until computed by run_model(), and then it ranges between 0 and 1.

Type:None or float,
initial_investment

Cost of the system at the installation [USD]. It is None until computed by run_model()

Type:None or float,
__init__(pvgeneration, motorpump, coupling='mppt', motorpump_model=None, mppt=None, pipes=None, reservoir=None, consumption=None, idname=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(pvgeneration, motorpump[, …]) Initialize self.
calc_efficiency() Computes the efficiencies between PV array output and motorpump output, between irradiance and PV output, and global efficiency.
calc_flow([friction, atol, stop]) Computes the flow at the output of the PVPS, and assigns the value to the attribute ‘flow’.
calc_reservoir([starting_soc]) Computes the water volume in the reservoir and extra or lacking water compared to the consumption at any time step.
define_motorpump_model(model)
operating_point([plot, nb_pts, stop]) Finds the IV operating point(s) of the PV array and the pump (load).
run_model([friction, starting_soc]) Comprehensive modeling of the PVPS.