Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non zero power output for input with number of appliances = 0 #15

Open
dhungelgd opened this issue Jun 29, 2022 · 1 comment
Open

Non zero power output for input with number of appliances = 0 #15

dhungelgd opened this issue Jun 29, 2022 · 1 comment

Comments

@dhungelgd
Copy link
Collaborator

The refactored code seems to produce peculiar results for number of appliances input = 0. Sometimes, no result is obtained at all and the program stucks, whereas sometiomes a non zero profile is created.

grafik
This is the output profile created for the following input

#Create new user classes
HI = User("high income",48)
User_list.append(HI)

#High-Income
HI_indoor_bulb1 = HI.Appliance(HI,n=0, P=15, w=3, t = 120, r_t = 0, c = 1)
HI_indoor_bulb1.windows([420,1079],[0,0],0.15,[0,0])

@dhungelgd
Copy link
Collaborator Author

No output, however, when the following input is given

HI_Freezer2 = HI.Appliance(HI,n=0,P=200,w=1,t=1440,r_t=0,c=30,fixed='yes',fixed_cycle=3,thermal_P_var=0)
HI_Freezer2.windows([0,1440],[0,0],0)
HI_Freezer2.specific_cycle_1(200,20,5,10)
HI_Freezer2.specific_cycle_2(200,15,5,15)
HI_Freezer2.specific_cycle_3(200,10,5,20)
HI_Freezer2.cycle_behaviour([480,1200],[0,0],[300,479],[0,0],[0,299],[1201,1440])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant