Parametric Analysis Tool in SI
Hello,
Is it possible to change the results from PAT to the metric Units (SI)?
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?
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.
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.
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.