Parametric Analysis Tool in SI
Hello,
Is it possible to change the results from PAT to the metric Units (SI)?
First time here? Check out the Help page!
Hello,
Is it possible to change the results from PAT to the metric Units (SI)?
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
Perfect David! Thank you!
I'm beginning to study how to write measures and I hope help with these questions.
Thanks!
David/Dan. Do you have an example reporting measure that writes energy summary results for PAT simulations?
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2014-12-07 08:43:12 -0600
Seen: 614 times
Last updated: Apr 06 '15