Ejemplo n.º 1
0
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,300,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,1,1000,2,120,0.2,15, occasional_use = 0.2)
HMIU_Air_Conditioner.windows([720,900],[1020,1260],0.35)

HMIU_TV = HMIU.Appliance(HMIU,1,70,2,90,0.1,5)
HMIU_TV.windows([720,900],[1170,1440],0.35)

HMIU_DVD = HMIU.Appliance(HMIU,1,20,2,90,0.1,30)
Scenario 13: BSA + Iron (1).
Scerario 14: BSA + Mill (1).

* With seasonal variation
** Occasional use

Cold Months: May-Aug Std Cycle 8:00-18:00 Above 10 degrees
Warm Months: Jan-Apr Std Cycle 0:00-23:59 Above 10 degrees 
Hot Nonths: Sep-Dec  Std Cycle 0:00-10:00; 15:01-23:59 Above 10 degrees 
                    Int Cycle 10:01-15:00
'''

#A
#indoor bulb
#1
HI_Radio = HI.Appliance(HI, 1, 7, 1, 305, 0.3, 110)
HI_Radio.windows([420, 1050], [0, 0])
#2
HI_Radio = HI.Appliance(HI, 1, 7, 1, 330, 0.3, 110)
HI_Radio.windows([420, 1050], [0, 0])

HI_Radio = HI.Appliance(HI, 1, 7, 1, 355, 0.3, 110)
HI_Radio.windows([420, 1050], [0, 0])
'''
HI_Radio = HI.Appliance(HI,1,7,1,280,0.3,110)
HI_Radio.windows([420,708],[0,0])
'''

#B
#indoor bulb
LI_indoor_bulb = LI.Appliance(LI, 3, 7, 2, 287, 0.4, 124)
Ejemplo n.º 3
0
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,
                                       17,
                                       30,
                                       1,
                                       300,
                                       0.2,
                                       120,
                                       wd_we_type=0)
Di_indoor_tubes.windows([480, 1020], [0, 0], 0.2)
Ejemplo n.º 4
0
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)

MIU_Fan = MIU.Appliance(MIU,1,50,2,300,0.2,15,occasional_use = 0.2)
Ejemplo n.º 5
0
'''

from core import User, np

User_list = []

#Create new rural user classes

S5 = User("School_5", 1)
User_list.append(S5)

# Tier 5 School

#Create new appliances

S5_light_bulb = S5.Appliance(S5, 15, 60, 1, 480, 0.1, 60, wd_we_type=0)
S5_light_bulb.windows([8 * 60, 16 * 60], [0, 0], 0.05)

S5_Phone_charger = S5.Appliance(S5, 8, 5, 1, 400, 0.2, 60, wd_we_type=0)
S5_Phone_charger.windows([8 * 60, 16 * 60], [0, 0], 0.05)

S5_Radio = S5.Appliance(S5, 1, 7, 1, 60, 0.2, 10, wd_we_type=0)
S5_Radio.windows([8 * 60, 16 * 60], [0, 0], 0.05)

S5_Fan = S5.Appliance(S5, 2, 60, 1, 480, 0.2, 60, wd_we_type=0)
S5_Fan.windows([8 * 60, 16 * 60], [0, 0], 0.05)

S5_Computer_Staff = S5.Appliance(S5,
                                 4,
                                 70,
                                 1,
Ejemplo n.º 6
0
Input data definition 
'''

from core import User, np
User_list = []

#Create new rural user classes

M_NH = User("Maternity and Nursing House", 1)
User_list.append(M_NH)

# Maternity and Nursing House: These are owned privately by individuals or churches and offer services roughly similar to those available at a sub-district or district hospital.

#Create new appliances

M_NH_light_bulb = M_NH.Appliance(M_NH, 20, 60, 1, 720, 0.2, 60)
M_NH_light_bulb.windows([0, 1440], [0, 0], 0.35)

M_NH_Phone_charger = M_NH.Appliance(M_NH, 6, 5, 1, 240, 0.2, 30)
M_NH_Phone_charger.windows([480, 1200], [0, 0], 0.35)

M_NH_VHF_Radio = M_NH.Appliance(M_NH,
                                1,
                                7,
                                1,
                                1440,
                                0,
                                1440,
                                fixed='yes',
                                flat='yes')
M_NH_VHF_Radio.windows([0, 1440], [0, 0], 0.0)
Ejemplo n.º 7
0
Input data definition 
'''

from core import User, np
User_list = []

#Create new rural user classes

S4 = User("School_4", 1)
User_list.append(S4)

# Tier 4 School

#Create new appliances

S4_light_bulb = S4.Appliance(S4, 10, 60, 1, 480, 0.1, 60, wd_we_type=0)
S4_light_bulb.windows([8 * 60, 16 * 60], [0, 0], 0.05)

S4_Phone_charger = S4.Appliance(S4, 4, 5, 1, 180, 0.2, 60, wd_we_type=0)
S4_Phone_charger.windows([8 * 60, 16 * 60], [0, 0], 0.05)

S4_Radio = S4.Appliance(S4,
                        1,
                        7,
                        1,
                        30,
                        0.2,
                        10,
                        occasional_use=(2 / 7),
                        wd_we_type=0)
S4_Radio.windows([8 * 60, 16 * 60], [0, 0], 0.05)
Ejemplo n.º 8
0
#%% Definition of the inputs
'''
Input data definition 
'''

from core import User, np, pd
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)

HH_shower_P = pd.read_csv('TimeSeries/shower_P.csv')

#High-Income
HH_shower = HH.Appliance(HH,
                         1,
                         HH_shower_P,
                         2,
                         15,
                         0.1,
                         3,
                         thermal_P_var=0.2,
                         P_series=True)
HH_shower.windows([390, 540], [1080, 1200], 0.2)
Ejemplo n.º 9
0
#%% 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)
HIU_Air_Conditioner.windows([720, 900], [1020, 1260], 0.35)

HIU_TV = HIU.Appliance(HIU, 2, 70, 2, 90, 0.1, 5)
HIU_TV.windows([720, 900], [1170, 1440], 0.35)

HIU_DVD = HIU.Appliance(HIU, 1, 20, 2, 60, 0.1, 30)
HIU_DVD.windows([0, 0], [1170, 1440], 0.35)

HIU_Speaker = HIU.Appliance(HIU, 1, 50, 2, 30, 0.2, 10)
Ejemplo n.º 10
0
# -*- coding: utf-8 -*-

#%% Definition of the inputs
'''
Input data definition 
'''

from core import User, np
User_list = []

#Create new rural user classes

LMI = User("lower middle income", 100)
User_list.append(LMI)

#Create new appliances

#Lower-Middle Income
LMI_light_bulb = LMI.Appliance(LMI, 3, 20, 3, 120, 0.2, 10)
LMI_light_bulb.windows([18 * 60, 24 * 60], [0, 30], 0.35, [6 * 60, 8 * 60])

LMI_Radio = LMI.Appliance(LMI, 1, 10, 2, 60, 0.1, 5)
LMI_Radio.windows([6 * 60 + 30, 9 * 60], [18 * 60, 21 * 60], 0.35)

LMI_Phone_charger = LMI.Appliance(LMI, 2, 7, 2, 240, 0.2, 10)
LMI_Phone_charger.windows([0, 24 * 60], [0, 0], 0)
Ejemplo n.º 11
0
#%% 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)
# 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)
LIU_Phone_charger.windows([0, 24 * 60], [0, 0], 0)
Ejemplo n.º 12
0
#%% 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)
# 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)
MI_Phone_charger.windows([0, 24 * 60], [0, 0], 0)
Ejemplo n.º 13
0
# -*- 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, 0], 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)
Ejemplo n.º 14
0
'''

from core import User, np

User_list = []

#Create new rural user classes

HH = User("Hospital", 1)
User_list.append(HH)

# They usually have the resources to provide comprehensive medical and surgical services. They are managed by medical superintendents.

#Create new appliances

HH_light_bulb = HH.Appliance(HH, 60, 60, 1, 900, 0.2, 60)
HH_light_bulb.windows([0, 1440], [0, 0], 0.35)

HH_Phone_charger = HH.Appliance(HH, 10, 5, 1, 480, 0.2, 30)
HH_Phone_charger.windows([0, 1440], [0, 0], 0.35)

HH_VHF_Radio = HH.Appliance(HH,
                            2,
                            7,
                            1,
                            1440,
                            0,
                            1440,
                            fixed='yes',
                            flat='yes')
HH_VHF_Radio.windows([0, 1440], [0, 0], 0.0)
Ejemplo n.º 15
0
#%% 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.8)
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)
MI_Phone_charger.windows([0, 24 * 60], [0, 0], 0)
Ejemplo n.º 16
0
#%% 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.6)
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)
LIU_Phone_charger.windows([0, 24 * 60], [0, 0], 0)
Scenario 12: BSA + Blender (1).
Scenario 13: BSA + Iron (1).
Scerario 14: BSA + Mill (1).

* With seasonal variation
** Occasional use

Cold Months: May-Aug Std Cycle 8:00-18:00 Above 10 degrees
Warm Months: Jan-Apr Std Cycle 0:00-23:59 Above 10 degrees 
Hot Nonths: Sep-Dec  Std Cycle 0:00-10:00; 15:01-23:59 Above 10 degrees 
                    Int Cycle 10:01-15:00
'''

#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])

HI_Radio = HI.Appliance(HI, 1, 7, 1, 280, 0.3, 110)
HI_Radio.windows([420, 708], [0, 0])

#tv
HI_TV = HI.Appliance(HI, 1, 60, 3, 300, 0.38, 114)
HI_TV.windows([1140, 1440], [651, 1139], 0.35, [300, 650])

#phone charger
HI_Phone_charger = HI.Appliance(HI, 2, 5, 3, 250, 0.4, 95)
Ejemplo n.º 18
0
'''

#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)
# 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)
# 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)
# S_Phone_charger.windows([480,720],[840,1020],0.35)

# S_PC = School.Appliance(School,50,100,2,180,0.2,120, occasional_use = 0.7,wd_we_type = 0)
# S_PC.windows([600,720],[840,1020],0.35)

# S_PC = School.Appliance(School,1,100,1,540,0.2,360,wd_we_type = 0)
# S_PC.windows([480,1020],[0,0],0.2)

# S_laptop = School.Appliance(School,10,65,1,240,0.2,120,wd_we_type = 0)
# S_laptop.windows([480,990],[0,0],0.2)

# S_printer = School.Appliance(School,1,40,2,30,0.2,1,wd_we_type = 0)