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

Parametric Analysis Tool in SI

asked 2014-12-07 08:43:12 -0600

updated 2017-08-20 15:06:26 -0600

Hello,
Is it possible to change the results from PAT to the metric Units (SI)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-12-08 08:56:54 -0600

updated 2015-04-06 14:50:38 -0600

OpenStudio does have an SI/IP switch for model input but currently all output is in SI. In the OpenStudio application simulation results are shown using a reporting measure that makes an HTML file. It would be very easy for someone to update those to be SI instead of IP. Here is a link](https://bcl.nrel.gov/node/39420) to the standard report on BCL. Unfortunately it isn't so easy for PAT. We do eventually want to have customizable PAT, but I don't have a timeline for either that or native unit switching for reporting measures.

Here is one work around. While our reporting measures generally write to HTML, you can write to csv and other formats. You could write a reporting measure to gather what you want from each simulation and then combine then in Excel to create a custom analysis report.

Updated content below:

I should add that in general, writing a measure in SI will actually be easier than in IP. The OSM model, just like an IDF model stores everything in SI units. So when you see a measure with IP argument units and also IP output, we had to do unit conversion on both ends of the measure. It needs to be SI during the body of the measure because that's what the API expects you to pass in for an object value, and that is what will be returned if you do something like building.floorArea is an SI value.

You will see a lot of code like what is shown below. You could remove these if you want to stay in IP throughout the entire process. This page shows some example unit strings for the convert method.

value_ip = OpenStudio::convert(value_si,"m^2","ft^2").get
edit flag offensive delete link more

Comments

Perfect David! Thank you!

I'm beginning to study how to write measures and I hope help with these questions.

Thanks!

Geraldo Pithon's avatar Geraldo Pithon  ( 2014-12-08 17:26:28 -0600 )edit

David/Dan. Do you have an example reporting measure that writes energy summary results for PAT simulations?

DavidReddy's avatar DavidReddy  ( 2015-07-14 19:47:26 -0600 )edit

Any reporting measure will work, the one David linked to above is a good one. You can access the html output files by going to the directory structure or by right clicking on a design alternative in the results tab.

macumber's avatar macumber  ( 2015-07-15 08:51:06 -0600 )edit

Thanks Dan, but I incorrectly worded my question: Do you have an example of a reporting measure that writes csv format energy summary results from simulations? Ideally, a CSV file of key annual energy results (kWh, kW, therm, etc); one set of model results per line/row. This is the format output by eQUEST in its 'Parms.csv' file. It would be useful to create a report that is in the same or similar format so we can more quickly adapt internal results viewing/reporting spreadsheets to OS/E+ output. Just wanted to ask in case something has already been developed.

DavidReddy's avatar DavidReddy  ( 2015-07-15 10:12:31 -0600 )edit

Ah yes, this is the idea of running a measure on the entire PAT project right? We have discussed this but there aren't currently any plans to implement this. We will be reworking PAT in the upcoming year so this might be on the table.

macumber's avatar macumber  ( 2015-07-15 10:51:54 -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

3 followers

Stats

Asked: 2014-12-07 08:43:12 -0600

Seen: 614 times

Last updated: Apr 06 '15