# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new urban user classes LIU = User("low income urban", 100) User_list.append(LIU) #Create new appliances #Low Income Urban LIU_light_bulb = LIU.Appliance(LIU, 3, 20, 3, 120, 0.2, 10) LIU_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35, [6 * 60, 8 * 60]) LIU_Radio = LIU.Appliance(LIU, 1, 10, 2, 60, 0.1, 5) LIU_Radio.windows([6 * 60 + 30, 9 * 60], [18 * 60, 21 * 60], 0.35) LIU_TV = LIU.Appliance(LIU, 1, 70, 2, 90, 0.1, 5) LIU_TV.windows([0, 0], [18 * 60, 24 * 60], 0.35) LIU_Fan = LIU.Appliance(LIU, 1, 50, 2, 300, 0.2, 15, occasional_use=0.2) LIU_Fan.windows([7 * 60, 9 * 60], [17 * 60, 20 * 60], 0.35) LIU_Phone_charger = LIU.Appliance(LIU, 2, 7, 2, 240, 0.2, 10)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes MI = User("middle income", 100) User_list.append(MI) #Create new appliances #Middle-Income MI_light_bulb = MI.Appliance(MI, 3, 20, 3, 120, 0.2, 10) MI_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35, [6 * 60, 8 * 60]) MI_Radio = MI.Appliance(MI, 1, 10, 2, 60, 0.1, 5) MI_Radio.windows([6 * 60 + 30, 9 * 60], [18 * 60, 21 * 60], 0.35) MI_TV = MI.Appliance(MI, 1, 70, 2, 90, 0.1, 5) MI_TV.windows([0, 0], [18 * 60, 24 * 60], 0.35) MI_Fan = MI.Appliance(MI, 1, 50, 2, 300, 0.2, 15, occasional_use=0.2) MI_Fan.windows([7 * 60, 9 * 60], [17 * 60, 20 * 60], 0.35) MI_Phone_charger = MI.Appliance(MI, 2, 7, 2, 240, 0.2, 10)
# 09 April 2020 # Nicolò Stevanato - Politecnico di Milano - Fondazione Eni Enrico Mattei #%% Definition of the inputs from core import User, np User_list = [] ''' This File contains the average appliances that charcterize a Primary School in Kenya, according to PoliMi field campaign - 2020 ''' #Create new user classes School = User("school",10) User_list.append(School) #Create new appliances S_indoor_bulb = School.Appliance(School,90,12,2,360,0.2,120,wd_we_type = 0, occasional_use=0.5) S_indoor_bulb.windows([420,600],[840,1020],0.2) S_indoor_tubes = School.Appliance(School,130,30,2,360,0.2,120,wd_we_type = 0, occasional_use=0.5) S_indoor_tubes.windows([420,600],[840,1020],0.2) S_outdoor_bulb = School.Appliance(School,10,40,2,720,0,720, flat = 'yes') S_outdoor_bulb.windows([0,360],[1080,1440],0) S_Phone_charger = School.Appliance(School,14,7,2,300,0.2,60,wd_we_type = 0, occasional_use=0.5)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes S1 = User("School_1", 1) User_list.append(S1) # Tier 1 School #Create new appliances S1_light_bulb = S1.Appliance(S1, 2, 60, 1, 120, 0.2, 20, wd_we_type=0) S1_light_bulb.windows([8 * 60, 13 * 60], [0, 0], 0.05) S1_Phone_charger = S1.Appliance(S1, 1, 5, 1, 60, 0.2, 10, wd_we_type=0) S1_Phone_charger.windows([8 * 60, 13 * 60], [0, 0], 0.05) S1_Radio = S1.Appliance(S1, 1, 7, 1, 30, 0, 10, wd_we_type=0) S1_Radio.windows([8 * 60, 13 * 60], [0, 0], 0.05)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new urban user classes MIU = User("middle income urban", 100) User_list.append(MIU) #Create new appliances #Middle Income Urban MIU_light_bulb = MIU.Appliance(MIU, 4, 20, 3, 120, 0.2, 10) MIU_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35, [6 * 60, 8 * 60]) MIU_Stereo = MIU.Appliance(MIU, 1, 50, 2, 30, 0.2, 10) MIU_Stereo.windows([12 * 60, 15 * 60], [18 * 60, 24 * 60], 0.35) MIU_TV = MIU.Appliance(MIU, 1, 70, 2, 90, 0.1, 5) MIU_TV.windows([0, 0], [18 * 60, 24 * 60], 0.35) MIU_DVD = MIU.Appliance(MIU, 1, 20, 2, 60, 0.1, 5, occasional_use=0.5) MIU_DVD.windows([0, 0], [18 * 60, 24 * 60], 0.35) MIU_Decoder = MIU.Appliance(MIU, 1, 15, 2, 90, 0.1, 5, occasional_use=0.5) MIU_Decoder.windows([0, 0], [18 * 60, 24 * 60], 0.35)
# -*- coding: utf-8 -*- # 09 April 2020 # Nicolò Stevanato - Politecnico di Milano - Fondazione Eni Enrico Mattei #%% Definition of the inputs from core import User, np User_list = [] ''' This File contains the average appliances that charcterize a rural Health Centre in Kenya, according to PoliMi field campaign - 2020 ''' #Create new user classes Healthcenter = User("HealthCenter", 1) User_list.append(Healthcenter) #Create new appliances HC_indoor_bulb = Healthcenter.Appliance(Healthcenter, 27, 12, 1, 540, 0.2, 300) HC_indoor_bulb.windows([300, 1320], [0, 0], 0.35) HC_indoor_tubes = Healthcenter.Appliance(Healthcenter, 38, 30, 1, 540, 0.2, 300) HC_indoor_tubes.windows([300, 1320], [0, 0], 0.35) HC_outdoor_bulb = Healthcenter.Appliance(Healthcenter, 6, 30, 2,
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes HC = User("Health Centre", 1) User_list.append(HC) # All government health centres have a clinical officer as the in-charge and provide comprehensive primary care. #Create new appliances HC_light_bulb = HC.Appliance(HC, 30, 60, 1, 720, 0.2, 60) HC_light_bulb.windows([0, 1440], [0, 0], 0.35) HC_Phone_charger = HC.Appliance(HC, 6, 5, 1, 240, 0.2, 30) HC_Phone_charger.windows([480, 1200], [0, 0], 0.35) HC_VHF_Radio = HC.Appliance(HC, 2, 7, 1, 1440, 0,
# 09 April 2020 # Nicolò Stevanato - Politecnico di Milano - Fondazione Eni Enrico Mattei #%% Definition of the inputs from core import User, np User_list = [] ''' This File contains the average appliances that charcterize a SubCounty Hospital in Kenya, according to PoliMi field campaign - 2020 ''' #Create new user classes SCHospital = User("SCHospital",1) User_list.append(SCHospital) #Create new appliances SCH_indoor_bulb = SCHospital.Appliance(SCHospital, 60,12,1,960,0.2,720) SCH_indoor_bulb.windows([0,1440],[0,0],0) SCH_indoor_tubes = SCHospital.Appliance(SCHospital, 60,30,1,960,0.2,720) SCH_indoor_tubes.windows([0,1440],[0,0],0) SCH_outdoor_bulb = SCHospital.Appliance(SCHospital,20,30,2,720,0,720, 'yes', flat = 'yes') SCH_outdoor_bulb.windows([0,360],[1080,1440],0) SCH_radio = SCHospital.Appliance(SCHospital,6,7,1,300,0.2,180)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes HMI = User("higher middle income", 100) User_list.append(HMI) #Create new appliances #High-Middle Income HMI_light_bulb = HMI.Appliance(HMI, 4, 20, 3, 120, 0.2, 10) HMI_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35, [6 * 60, 8 * 60]) HMI_Fan = HMI.Appliance(HMI, 2, 50, 2, 300, 0.2, 15, occasional_use=0.4) HMI_Fan.windows([10 * 60, 18 * 60], [0, 0], 0.35) HMI_TV = HMI.Appliance(HMI, 1, 70, 2, 90, 0.1, 5) HMI_TV.windows([12 * 60, 15 * 60], [18 * 60, 24 * 60], 0.35) HMI_DVD = HMI.Appliance(HMI, 1, 20, 2, 60, 0.1, 5, occasional_use=0.33) HMI_DVD.windows([0, 0], [18 * 60, 24 * 60], 0.35) HMI_Stereo = HMI.Appliance(HMI, 1, 50, 2, 30, 0.2, 10, occasional_use=0.5)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes S2 = User("School_2", 1) User_list.append(S2) # Tier 2 School #Create new appliances S2_light_bulb = S2.Appliance(S2, 4, 60, 1, 180, 0.2, 30, wd_we_type=0) S2_light_bulb.windows([8 * 60, 13 * 60], [0, 0], 0.05) S2_Phone_charger = S2.Appliance(S2, 1, 5, 1, 60, 0.2, 10, wd_we_type=0) S2_Phone_charger.windows([8 * 60, 13 * 60], [0, 0], 0.05) S2_Radio = S2.Appliance(S2, 1, 7, 1, 30, 0.2,
# -*- coding: utf-8 -*- # 09 April 2020 # Nicolò Stevanato - Politecnico di Milano - Fondazione Eni Enrico Mattei #%% Definition of the inputs from core import User, np User_list = [] ''' This File contains the average appliances that charcterize a rural Dispensary in Kenya, according to PoliMi field campaign - 2020 ''' #Create new user classes Dispensary = User("Dispensary", 1) User_list.append(Dispensary) #Create new appliances Di_indoor_bulb = Dispensary.Appliance(Dispensary, 11, 12, 1, 300, 0.2, 120, wd_we_type=0) Di_indoor_bulb.windows([480, 1020], [0, 0], 0.2) Di_indoor_tubes = Dispensary.Appliance(Dispensary,
''' Input data definition ''' from core import User, np User_list = [] ''' This example input file represents an whole village-scale community, adapted from the data used for the Journal publication. It should provide a complete guidance to most of the possibilities ensured by RAMP for inputs definition, including specific modular duty cycles and cooking cycles. For examples related to "thermal loads", see the "input_file_2". ''' #Create new user classes HI = User("high income", 11, 3) User_list.append(HI) HMI = User("higher middle income", 38, 3) User_list.append(HMI) LMI = User("lower middle income", 34, 3) User_list.append(LMI) LI = User("low income", 45, 3) User_list.append(LI) Hospital = User("hospital", 1) User_list.append(Hospital) School = User("school", 1)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes S3 = User("School_3",1) User_list.append(S3) # Tier 3 School #Create new appliances S3_light_bulb = S3.Appliance(S3,6,60,1,300,0.2,30,wd_we_type=0) S3_light_bulb.windows([8*60,16*60],[0,0],0.05) S3_Phone_charger = S3.Appliance(S3,2,5,1,120,0.2,30,wd_we_type=0) S3_Phone_charger.windows([8*60,16*60],[0,0],0.05) S3_Radio = S3.Appliance(S3,1,7,1,30,0.2,10, occasional_use=(2/7),wd_we_type=0) S3_Radio.windows([8*60,16*60],[0,0],0.05) S3_Fan = S3.Appliance(S3,1,60,1,300,0.2,30,wd_we_type=0)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] ''' This example input file represents a single household user whose only load is the "shower". The example showcases how to model thermal loads by means of the thermal_P_var attribute. ''' #Create new user classes HH = User("generic households", 1) User_list.append(HH) #High-Income HH_shower = HH.Appliance(HH, 1, 11160, 2, 15, 0.1, 3, thermal_P_var=0.2) HH_shower.windows([390, 540], [1080, 1200], 0.2)
''' Input data definition ''' from core import User, np User_list = [] ''' This example input file represents an whole village-scale community, adapted from the data used for the Journal publication. It should provide a complete guidance to most of the possibilities ensured by RAMP for inputs definition, including specific modular duty cycles and cooking cycles. For examples related to "thermal loads", see the "input_file_2". ''' #Create new urban user classes HMIU = User("high-middle income urban", 100) User_list.append(HMIU) #Create new appliances #High Middle Income Urban HMIU_light_bulb = HMIU.Appliance(HMIU, 5, 20, 2, 120, 0.2, 10) HMIU_light_bulb.windows([1170, 1440], [0, 30], 0.35) HMIU_CFL = HMIU.Appliance(HMIU, 3, 8, 2, 120, 0.2, 10) HMIU_CFL.windows([1170, 1440], [0, 30], 0.35) HMIU_Fan = HMIU.Appliance(HMIU, 1, 50, 2, 200, 0.2, 15, occasional_use=0.4) HMIU_Fan.windows([8 * 60, 11 * 60], [18 * 60, 22 * 60], 0.35) HMIU_Air_Conditioner = HMIU.Appliance(HMIU,
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new urban user classes LMIU = User("low-middle income urban", 100) User_list.append(LMIU) #Create new appliances #Low-Middle Income Urban LMIU_light_bulb = LMIU.Appliance(LMIU, 4, 20, 3, 120, 0.2, 10) LMIU_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35, [6 * 60, 8 * 60]) LMIU_Radio = LMIU.Appliance(LMIU, 1, 10, 2, 60, 0.1, 5) LMIU_Radio.windows([6 * 60 + 30, 9 * 60], [18 * 60, 21 * 60], 0.35) LMIU_Stereo = LMIU.Appliance(LMIU, 1, 50, 2, 30, 0.2, 10) LMIU_Stereo.windows([12 * 60, 15 * 60], [18 * 60, 24 * 60], 0.35) LMIU_TV = LMIU.Appliance(LMIU, 1, 70, 2, 90, 0.1, 5) LMIU_TV.windows([0, 0], [18 * 60, 24 * 60], 0.35) LMIU_DVD = LMIU.Appliance(LMIU, 1, 20, 2, 60, 0.1, 5, occasional_use=0.33)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new urban user classes HIU = User("high income urban", 100) User_list.append(HIU) #Create new appliances #High-Income Urban HIU_light_bulb = HIU.Appliance(HIU, 4, 20, 2, 120, 0.2, 10) HIU_light_bulb.windows([1170, 1440], [0, 30], 0.35) HIU_CFL = HIU.Appliance(HIU, 6, 8, 2, 120, 0.2, 10) HIU_CFL.windows([1170, 1440], [0, 30], 0.35) HIU_Air_Conditioner = HIU.Appliance(HIU, 1, 1000, 2, 120, 0.2, 15, occasional_use=0.4)
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes LI = User("low income", 100) User_list.append(LI) #Create new appliances #Low-Income LI_light_bulb = LI.Appliance(LI, 2, 20, 2, 120, 0.2, 10) LI_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35) LI_Phone_charger = LI.Appliance(LI, 2, 7, 2, 240, 0.2, 10) LI_Phone_charger.windows([0, 24 * 60], [0, 0], 0)
""" # -*- coding: utf-8 -*- """ @author: Alejandro Soto """ from core import User, np User_list = [] #User classes definition HI = User("high income",0) User_list.append(HI) LI = User("low income",1) User_list.append(LI) #High-Income #indoor bulb HI_indoor_bulb = HI.Appliance(HI,3,7,1,320,0.6,190) HI_indoor_bulb.windows([1080,1440],[0,0]) #outdoor bulb HI_outdoor_bulb = HI.Appliance(HI,1,13,1,340,0.1,300) HI_outdoor_bulb.windows([1100,1440],[0,0])
# -*- coding: utf-8 -*- #%% Definition of the inputs ''' Input data definition ''' from core import User, np User_list = [] #Create new rural user classes HI = User("high income", 100) User_list.append(HI) #Create new appliances #High-Income HI_light_bulb = HI.Appliance(HI, 6, 20, 3, 120, 0.2, 10) HI_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35, [6 * 60, 8 * 60]) HI_Fan = HI.Appliance(HI, 2, 50, 2, 300, 0.2, 15, occasional_use=0.8) HI_Fan.windows([9 * 60, 21 * 60], [0, 0], 0.35) HI_TV = HI.Appliance(HI, 2, 70, 2, 90, 0.1, 5) HI_TV.windows([12 * 60, 15 * 60], [18 * 60, 24 * 60], 0.35) HI_Radio = HI.Appliance(HI, 1, 10, 2, 60, 0.1, 5) HI_Radio.windows([6 * 60 + 30, 9 * 60], [18 * 60, 21 * 60], 0.35) HI_DVD = HI.Appliance(HI, 1, 20, 2, 60, 0.1, 30) HI_DVD.windows([0, 0], [18 * 60, 24 * 60], 0.35)