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

IdealAirLoads for ThermalZone with OpenStudio SDK

asked 2015-01-13 13:41:54 -0600

updated 2020-03-10 09:53:41 -0600

I'm trying to use the ZoneHVAC:IdealLoadsAirSystem system in the OpenStudio SDK through use of openstudio::model::ThermalZone::setUseIdealAirLoads(True). I want to be able to access the sizing information from the EnergyPlus simulation and am not clear on how this may be accessed within OpenStudio.

Is the sizing information (e.g. Design Cooling Air Flow Rate) that would normally be found in the HVAC Sizing Summary report accessible through the OpenStudio objects? It is not clear to me whether this information is contained in the SQL file and is linked to the model with openstudio::model::setSqlFile(sqlFile). Any assistance is greatly appreciated.

Also, I wanted to note that I am using the python bindings to the SDK in version 1.5.4.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-01-14 10:29:40 -0600

OpenStudio Model API doesn't provide methods to access this information directly but you can use the SqlFile class outside of Model to do what you need to do. In Ruby it would look something like this.

sql = OpenStudio::SqlFile.new 'path/to/energyplusrun/eplusout.sql'
sql.execAndReturnFirstDouble("select Value from TabularDataWithStrings WHERE ReportName='HVACSizingSummary' and ReportForString='Entire Facility' and TableName='Zone Cooling' and ColumnName='Calculated Design Air Flow' and RowName='STORY 1 CORE THERMAL ZONE';").get

This is assuming your tabular html data looks something like the screenshot. You may adjust the names to get other data in a similar way.

image description

edit flag offensive delete link more

Comments

Thanks Kyle. This works perfectly! I would be excited to see this report more fully integrated into the SDK in the future. Sizing information is crucial to design professionals during life cycle cost analysis, so we are constantly using it to make energy and financial decisions. I'm happy I have a way to access the information easily, though.

jmcneill's avatar jmcneill  ( 2015-01-14 11:17:32 -0600 )edit

We are actually working on this. Stay tuned!

Kyle Benne's avatar Kyle Benne  ( 2015-01-14 12:38:22 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 2015-01-13 13:41:54 -0600

Seen: 244 times

Last updated: Jan 14 '15