First time here? Check out the Help page!
1 | initial version |
It is okay to set the "Outdoor Air Equipment List Name" input field to "DOAS OA System Equipment" before the corresponding outdoor air equipment list object is created. EnergyPlus doesn't care if the outdoor air equipment list is defined above or below the outdoor air system that references the equipment list. You'll just need to be sure that this measure or another measure eventually does add an outdoor air equipment list object with the same "DOAS OA System Equipment" name. You could also use a variable within this measure (oa_equip_list_name
, for example) to be applied in both places of the model.
string_object = "
AirLoopHVAC:OutdoorAirSystem,
DOAS OA System, !- Name
DOAS OA System Controllers, !- Controller List Name
#{oa_equip_list_name}, !- Outdoor Air Equipment List Name
DOAS Availability Managers; !- Availability Manager List Name
AirLoopHVAC:OutdoorAirSystem:EquipmentList,
#{oa_equip_list_name}, !- Name
HeatExchanger:AirToAir:FlatPlate, !- Component 1 Object Type
OA Heat Recovery 1; !- Component 1 Name
"
idfObject = OpenStudio::IdfObject::load(string_object)
object = idfObject.get
wsObject = workspace.addObject(object)
Note that #{variable}
is how you insert a variable within a string. I would recommend reviewing the EnergyPlus Measures section of OpenStudio's Measure Writing Guide for more details.