First time here? Check out the Help page!
1 | initial version |
The ElectricEquipment End-Use Subcategory field is not exposed in the OpenStudio app. However, it can be set using the API. Here's an example using elevators.
# get model objects
objs = model.getElectricEquipments
# do stuff
objs.each do |obj|
eed = obj.electricEquipmentDefinition
if eed.name.to_s.include?('Elevators')
puts eed
obj.setEndUseSubcategory('Elevators')
puts obj
end
end
2 | No.2 Revision |
The ElectricEquipment I would create a separate Electric Equipment Definition and a schedule for each one from the OpenStudio Loads tab. If you want to sub-meter these use the End-Use Subcategory field field, which is not exposed in the OpenStudio app. However, it app but can be set using the API. Here's an example using elevators.
# get model objects
objs = model.getElectricEquipments
# do stuff
objs.each do |obj|
eed = obj.electricEquipmentDefinition
if eed.name.to_s.include?('Elevators')
puts eed
obj.setEndUseSubcategory('Elevators')
puts obj
end
end
3 | No.3 Revision |
I would create a separate Electric Equipment Definition and a schedule for each one from the OpenStudio Loads tab. If you want to sub-meter these use the End-Use Subcategory field, which is not exposed in the OpenStudio app but can be set using the API. These will show up in the End Uses By Subcategory
table in the EnergyPlus HTML results file. Here's an example using elevators.
# get model objects
objs = model.getElectricEquipments
# do stuff
objs.each do |obj|
eed = obj.electricEquipmentDefinition
if eed.name.to_s.include?('Elevators')
puts eed
obj.setEndUseSubcategory('Elevators')
puts obj
end
end
4 | No.4 Revision |
I would create a separate Electric Equipment Definition and a schedule for each one from the OpenStudio Loads tab. If you want to sub-meter these use the End-Use Subcategory field, which is not exposed in the OpenStudio app but can be set using the API. These will show up in the End Uses By Subcategory
table in the EnergyPlus HTML results file. Here's an example using elevators.
# get model objects
objs = model.getElectricEquipments
# do stuff
objs.each do |obj|
eed = obj.electricEquipmentDefinition
if eed.name.to_s.include?('Elevators')
puts eed
obj.setEndUseSubcategory('Elevators')
puts obj
end
end