Translations:Dimensionner la récupération d'eau de pluie pour être autonome/199/en

  1. hypothesis storage 2/3 full at t0

water=(2/3)*volume0 resultsurfvolume=(volume0,surf0)

  1. iteration loop

listsurf0=[surf0*(1+i*0.33) for i in range(0,999)] listvolume0=[volume0*(1+i*0.5) for i in range(0,999)] listeday=list(resultday) listemonth=list(resultdaymonthindex.index) listresult=[]

  1. function to check surface volume

def iterv(data, v0,s0):

   "function to check surface volume"
   water=(2/3)*v0
   for k in range(0,len(data)):
       recupday=data[k]*s0
       #print(f'recupday:{recupday}')
       if listemonth[k] in range(moisdebutete, moisfinete + 1):
           consoday = waterconsojour + waterconsojourete
       else:
           consoday = waterconsojour
       water=water+recupday-consoday
       #print(f'water:{water}')
       if water>v0:
           print("storage full")
           water=v0 #hypothesis overflow ok
           continue
       if water<0:
           print("storage empty")
           #time.sleep(1)
           return (0,0)
   print("surface and volume allow to meet the consumption need on the dataset")
   return (v0,s0)