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

How to write a new measure for HVAC systems

Hello guys, I am going to write a new measure for the HVAC systems, which do not exist in the BCL. Although I have read " OpenStudio Measure Writer's Reference Guide" and "Building Energy Modeling With OpenStudio" book, I cannot understand many parts of HVAC codes. currently, I am working on "Replace HVAC with WSHP and DOAS" measure. " OpenStudio Measure Writer's Reference Guide" explains that various methods can be used for different goals, and objects and classes are available in OpenStudio SDK documentation. For example, .get, .set, .empty?, .setDisplayName, ... are mentioned methods we can use for our desired targets. However, many unfamiliar methods are not mentioned in " OpenStudio Measure Writer's Reference Guide", and I have been faced with them in HVAC measures code. As an example, in "Replace HVAC with WSHP and DOAS", at the start point, some libraries are loaded, .handle.to_s (spaceType.handle.to_s) method (line 35), .sortZones (OsLib_HVAC.sortZones) method (line 264), .assignHVACSchedules (OsLib_HVAC..assignHVACSchedules) method (line 279), OsLib_HVAC.createHotWaterPlant, etc. **

My question is how to find the libraries and methods that I see in the existing measure or need to write a new measure.

I will appreciate it if anyone can help me to find the answer to my question.

How to write a new measure for HVAC systems

Hello guys, I am going to write a new measure for the HVAC systems, which do not exist in the BCL. Although I have read " OpenStudio Measure Writer's Reference Guide" and "Building Energy Modeling With OpenStudio" book, I cannot understand many parts of HVAC codes. currently, I am working on "Replace HVAC with WSHP and DOAS" measure. " OpenStudio Measure Writer's Reference Guide" explains that various methods can be used for different goals, and objects and classes are available in OpenStudio SDK documentation. For example, .get, .set, .empty?, .setDisplayName, ... are mentioned methods we can use for our desired targets. However, many unfamiliar methods are not mentioned in " OpenStudio Measure Writer's Reference Guide", and I have been faced with them in HVAC measures code. As an example, in "Replace HVAC with WSHP and DOAS", at the start point, some libraries are loaded, .handle.to_s (spaceType.handle.to_s) method (line 35), .sortZones (OsLib_HVAC.sortZones) method (line 264), .assignHVACSchedules (OsLib_HVAC..assignHVACSchedules) method (line 279), OsLib_HVAC.createHotWaterPlant, etc. **

My question is how to find the libraries and methods that I see in the existing measure or need to write a new measure.

I will appreciate it if anyone can help me to find the answer to my question.