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

Hot to get Site Ground Temperature Building Surface

I am writing a measure to add SiteGroundTemperatureBuildingSurface. When reporting the initial condition I tried to use the size method to check if there is a ground temperature surface object in the model, but the size method did not work, I tried to replace it with #empty?, #is_initialized but neither worked. Which method should be used to check if there is an existing ground temperature surface object?

ground_surface = model.getSiteGroundTemperatureBuildingSurface
ground_surface .size

Hot to get Site Ground Temperature Building Surface

I am writing a measure to add SiteGroundTemperatureBuildingSurface. When reporting the initial condition I tried to use the size method to check if there is a ground temperature surface object in the model, but the size method did not work, I tried to replace it with #empty?, #is_initialized but neither worked. Which method should be used to check if there is an existing ground temperature surface object?

ground_surface = model.getSiteGroundTemperatureBuildingSurface
ground_surface .size

Hot How to get Site Ground Temperature Building Surface

I am writing a measure to add SiteGroundTemperatureBuildingSurface. When reporting the initial condition I tried to use the size method to check if there is a ground temperature surface object in the model, but the size method did not work, I tried to replace it with #empty?, #is_initialized but neither worked. Which method should be used to check if there is an existing ground temperature surface object?

ground_surface = model.getSiteGroundTemperatureBuildingSurface
ground_surface .size
ground_surface.size