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

Reporting measure syntax

asked 2016-02-06 13:45:35 -0500

ngkhanh's avatar

updated 2016-02-06 13:51:34 -0500

Hello, 1.i do not fully understand the arguments in OpenStudio::IdfObject.load("Output:Variable,,Zone Mechanical Ventilation Current Density Volume Flow Rate,Hourly;") - Why second fields Variable,,Zone was skipped ? That idfobject.load is simillar with sql query or not ? Which query in SQLbrower i should make to get same result as OpenStudio::IdfObject.load ?

query = 'SELECT Value FROM tabulardatawithstrings WHERE ' query << "ReportName='AnnualBuildingUtilityPerformanceSummary' and " query << "ReportForString='Entire Facility' and " query << "TableName='Building Area' and " query << "RowName='Total Building Area' and " query << "ColumnName='Area' and " query << "Units='m2';

3. Have any difference to access OSM object (Model::Object) or WorkspaceObject (E+ object) to get input data when i code an reporting measure class OpenStudio::Ruleset::ReportingUserScript when compare with ModelUserScript and WorkspaceUserScript

edit retag flag offensive close merge delete

Comments

I think these questions are too dissimilar to be in the same thread.

Julien Marrec's avatar Julien Marrec  ( 2016-02-07 04:03:35 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-02-07 04:02:13 -0500

In 1. it is only loading the string as an IDF Object, like it would load from an IDF file.

It's loading the following Output:Variable

Output:Variable,
     *,                                                                                                  !- Key Value
     Zone Mechanical Ventilation Current Density Volume Flow Rate,    !- Variable Name
     Hourly;                                                                                         !- Reporting timestep

This just means it'll apply to all objects

You can have all keys listed in the standard output file by putting a “*” in this field or you can have specific items listed by putting in a key value. If this field is left blank, it will use a * as the default (i.e., you will get all variables of Variable Name).

edit flag offensive delete link more

Comments

Thank but what happens when we apply to different output as measure writing report described ?,i understand that we the same row as in IDF file with blank row described as ,,. if i want to add schedule option to above syntax : so ("Output:Variable,,Zone Mechanical Ventilation Current Density Volume Flow Rate,Hourly,schedulename;") and if we need a output:meter("Output:Meter,Name,Frequency;") or a output:table:timebins: ("output:table:timebins,keyvalue,variablename,Interval Start,IntervalSize,InternalCount,ScheduleName, variabletype(if have) ;")

ngkhanh's avatar ngkhanh  ( 2016-02-07 04:53:11 -0500 )edit

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2016-02-06 13:45:35 -0500

Seen: 140 times

Last updated: Feb 07 '16