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

Revision history [back]

click to hide/show revision 1
initial version

OpenStudio Measure - Weather Output via EMS

Hey folks,

I've been trying to output the following weather variables via EMS:

  • Output:Variable,*,Site Wind Speed,hourly; !- Zone Average [m/s]
  • Output:Variable,*,Site Wind Direction,hourly; !- Zone Average [deg]
  • Output:Variable,*,Site Sky Temperature,hourly; !- Zone Average [C]
  • Output:Variable,*,Site Horizontal Infrared Radiation Rate per Area,hourly; !- Zone Average [W/m2]
  • Output:Variable,*,Site Diffuse Solar Radiation Rate per Area,hourly; !- Zone Average [W/m2]
  • Output:Variable,*,Site Direct Solar Radiation Rate per Area,hourly; !- Zone Average [W/m2]
  • Output:Variable,*,Site Precipitation Depth,hourly; !- Zone Sum [m]

Is this possible via an OpenStudio measure? I was only able to output the environment temperature from the outdoor air. node. When I try the same thing for the above fields, the simulation errors out because of an invalid keyName. The OpenStudio measure code I'm using is given below:

outVarName = "Site Wind Direction"
keyName = "*"
outputVariable = OpenStudio::Model::OutputVariable.new(outVarName,model)
outputVariable.setKeyValue("#{keyName}")
outputVariable.setReportingFrequency(report_freq)
outputVariable.setName(outVarName)
outputVariable.setExportToBCVTB(true)

OpenStudio Measure - Weather Output via EMS

Hey folks,

I've been trying to output the following weather variables via EMS:

  • Output:Variable,*,Site Wind Speed,hourly; !- Zone Average [m/s]
  • Output:Variable,*,Site Wind Direction,hourly; !- Zone Average [deg]
  • Output:Variable,*,Site Sky Temperature,hourly; !- Zone Average [C]
  • Output:Variable,*,Site Horizontal Infrared Radiation Rate per Area,hourly; !- Zone Average [W/m2]
  • Output:Variable,*,Site Diffuse Solar Radiation Rate per Area,hourly; !- Zone Average [W/m2]
  • Output:Variable,*,Site Direct Solar Radiation Rate per Area,hourly; !- Zone Average [W/m2]
  • Output:Variable,*,Site Precipitation Depth,hourly; !- Zone Sum [m]

Is this possible via an OpenStudio measure? I was only able to output the environment temperature from the outdoor air. node. When I try the same thing for the above fields, the simulation errors out because of an invalid keyName. The OpenStudio measure code I'm using is given below:

outVarName = "Site Wind Direction"
keyName = "*"
outputVariable = OpenStudio::Model::OutputVariable.new(outVarName,model)
outputVariable.setKeyValue("#{keyName}")
outputVariable.setReportingFrequency(report_freq)
outputVariable.setName(outVarName)
outputVariable.setExportToBCVTB(true)