onstove.Biogas.get_collection_time#

Biogas.get_collection_time(model: onstove.OnStove)[source]#

Calculates the daily time of collection based on friction (hour/meter), the available biogas energy from each cell (MJ/yr/meter, 1000000 represents meters per km2) and the required energy per household (MJ/yr). The function does not return anything but saves the time of collection in the time_of_collection of the Biogas class.

Parameters:
model: OnStove model

Instance of the OnStove model containing the main data of the study case. See onstove.OnStove.