Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

I just added an updated Annual End Use Breakdown measure to BCL. it includes air an plant loop summaries. As shown below it does link the chiller loop to plant loop.

image description

The code below is within a loop of all supply side components for the chiller loop. Once a ChillerElectricEIR is found then component.secondaryPlantLoop returns an optional.

elsif component.to_ChillerElectricEIR.is_initialized
  component = component.to_ChillerElectricEIR.get
  sizing_source_units = "W"
  sizing_target_units = "Btu/h"
  if component.referenceCapacity.is_initialized
    sizing_ip = OpenStudio.convert(component.referenceCapacity.get,sizing_source_units,sizing_target_units).get
    sizing_ip_neat = OpenStudio.toNeatString(sizing_ip,2,true)
  else
    sizing_ip_neat = "Autosized"
  end
  value = component.referenceCOP
  value_neat = OpenStudio.toNeatString(value,2,true)
  description = "Reference COP"
  @output_data_plant_loops[:data] <<  [component.iddObject.name,sizing_ip_neat,sizing_target_units,description,value_neat,"",""]

  # second line to indicate if water or air cooled
  if component.secondaryPlantLoop.is_initialized
    @output_data_plant_loops[:data] <<  ["#{component.iddObject.name} (cont)","","","Chiller Source",component.secondaryPlantLoop.get.name,"",""]
  else
    @output_data_plant_loops[:data] <<  ["#{component.iddObject.name} (cont)","","","Chiller Source","Air Cooled","",""]
  end

The code for this is in the os_lib_reporting.rb file in the resources folder of the measure.

I just added an updated Annual End Use Breakdown measure to BCL. it includes air an plant loop summaries. As shown below it does link the chiller loop to plant loop.

image description

The code below is within a loop of all supply side components for the chiller loop. Once a ChillerElectricEIR is found then component.secondaryPlantLoop returns an optional.

elsif component.to_ChillerElectricEIR.is_initialized
  component = component.to_ChillerElectricEIR.get
  sizing_source_units = "W"
  sizing_target_units = "Btu/h"
  if component.referenceCapacity.is_initialized
    sizing_ip = OpenStudio.convert(component.referenceCapacity.get,sizing_source_units,sizing_target_units).get
    sizing_ip_neat = OpenStudio.toNeatString(sizing_ip,2,true)
  else
    sizing_ip_neat = "Autosized"
  end
  value = component.referenceCOP
  value_neat = OpenStudio.toNeatString(value,2,true)
  description = "Reference COP"
  @output_data_plant_loops[:data] <<  [component.iddObject.name,sizing_ip_neat,sizing_target_units,description,value_neat,"",""]

  # second line to indicate if water or air cooled
  if component.secondaryPlantLoop.is_initialized
    @output_data_plant_loops[:data] <<  ["#{component.iddObject.name} (cont)","","","Chiller Source",component.secondaryPlantLoop.get.name,"",""]
  else
    @output_data_plant_loops[:data] <<  ["#{component.iddObject.name} (cont)","","","Chiller Source","Air Cooled","",""]
  end

The code for this is in the os_lib_reporting.rb os_lib_reporting.rb file in the resources folder of the measure.

I just added an updated Annual End Use Breakdown measure to BCL. it includes air an and plant loop summaries. As shown below it does link the chiller loop to plant condenser loop.

image description

The code below is within a loop of all supply side components for the chiller loop. Once a ChillerElectricEIR is found then component.secondaryPlantLoop returns an optional.

elsif component.to_ChillerElectricEIR.is_initialized
  component = component.to_ChillerElectricEIR.get
  sizing_source_units = "W"
  sizing_target_units = "Btu/h"
  if component.referenceCapacity.is_initialized
    sizing_ip = OpenStudio.convert(component.referenceCapacity.get,sizing_source_units,sizing_target_units).get
    sizing_ip_neat = OpenStudio.toNeatString(sizing_ip,2,true)
  else
    sizing_ip_neat = "Autosized"
  end
  value = component.referenceCOP
  value_neat = OpenStudio.toNeatString(value,2,true)
  description = "Reference COP"
  @output_data_plant_loops[:data] <<  [component.iddObject.name,sizing_ip_neat,sizing_target_units,description,value_neat,"",""]

  # second line to indicate if water or air cooled
  if component.secondaryPlantLoop.is_initialized
    @output_data_plant_loops[:data] <<  ["#{component.iddObject.name} (cont)","","","Chiller Source",component.secondaryPlantLoop.get.name,"",""]
  else
    @output_data_plant_loops[:data] <<  ["#{component.iddObject.name} (cont)","","","Chiller Source","Air Cooled","",""]
  end

The code for this is in the os_lib_reporting.rb file in the resources folder of the measure.