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

JEplus - painful transition from rvi to rvx

asked 2016-06-06 13:09:03 -0600

andrea.botti's avatar

updated 2016-06-06 14:06:49 -0600

Hello there, in order to start using jEPlus v1.6 I understand I need to move from rvi to rvx for collecting results.

I am a bit confused on how to do this, as well as on some apparently unwanted consequences.

My rvi file, called "A0_v4.rvi" had the following content:

eplusout.eso
eplusout.csv
Site Outdoor Air Drybulb Temperature
Zone Air Temperature
Zone Operative Temperature
Zone Air Relative Humidity
Zone Exterior Windows Total Transmitted Beam Solar Radiation Rate
Zone Exterior Windows Total Transmitted Beam Solar Radiation Rate
Interior Windows Total Transmitted Beam Solar Radiation Rate
0
!-sqlite
! Output file name; Column headers; SQL command
constructions; botti; SELECT * FROM Constructions   
!-end sqlite

I have addedd an rvx "A0_v4.rvx" file as follows:

{
    "notes" : "First RVX test",

    "rvis" : [ 
        { 
            "fileName" : "A0_v4.rvi",
            "tableName" : "BottiRVXResults"
        }
    ],
    "csvs" : [
        {...
        }
    ]
}

As a result of that, the "SimResults.csv" file is not generated any more, plus all simulations folder names would change from a parametername_parametervalue structure (i.e. "EP_G-T_0-W_0-CH_0-WWR_0-X0_0-Z0_0-X2_0-Z2_0") to an incremental number kind-of-name (i.e. "EP_G000000000,1,2" etc).

Can you please advise how I should fix this?

Thanks, Anddrea

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-06-06 14:43:01 -0600

Yi Zhang's avatar

Hi Andrea,

Sorry about the pain :-) RVI still works in v1.6 if you are collecting only annual results. For other report frequencies, you need to specify it in the RVX:

{
    "notes" : "First RVX test",

    "rvis" : [ 
        { 
            "fileName" : "A0_v4.rvi",
            "tableName" : "BottiRVXResults",
            "frequency" : "Hourly",
            "usedInCalc" : true
        }
    ],
    "csvs" : [
        {...
        }
    ]
}

If you need the output table to be named "SimResults.csv", just set "tableName" to "SimResults". The case naming convention of jEPlus switches from parameter indexes to serial numbers if the project has 7 or more parameters. This is for preventing long path names, which can cause problems for large projects.

Regards,

Yi

edit flag offensive delete link more

Comments

Yi, thank you very much for your reply. I am still struggling to make it work though. The rvi file I have attached works for version 1.5.2, and it successfully creates a SimResults.csv file.

The same rvi files, however, does not work for for version 1.6.3, and the amended rvx as per your suggestion generates the error message: "Cannot read rvi/rvx file. RVX is not available. No simulations results will be collected". Any ideas why?

andrea.botti's avatar andrea.botti  ( 2016-06-07 05:47:11 -0600 )edit

There are probably syntax error in your RVX file. It is quite easy to miss a comma here or there. Copy and paste the contents of the RVX to here: http://jsonlint.com/, it will tell you what's wrong.

Yi Zhang's avatar Yi Zhang  ( 2016-06-07 06:20:24 -0600 )edit

Yi, apologies for being a pain, but I have checked the rvx file at http://jsonlint.com/ and the json is valid! Still, results are not being collected.

{
    "notes": "First RVX test",

    "rvis": [{
        "fileName": "A0_v4.rvi",
        "tableName": "BottiRVXResults",
        "frequency": "Hourly",
        "usedInCalc": true
    }],
    "csvs": [{
        "fileName": "A0_v4.rvi",
        "tableName": "BottiRVXResults",
        "frequency": "Hourly",
        "usedInCalc": true
    }]
}
andrea.botti's avatar andrea.botti  ( 2016-06-07 07:45:59 -0600 )edit

Ah, are you using the "csvs" object? It is for reading results from the eplustbl.csv file. If not, just delete the whole "csvs" part and the preceding comma.

Yi Zhang's avatar Yi Zhang  ( 2016-06-07 08:19:42 -0600 )edit

Yi, thanks for your reply. This has solved my issue. I will try to explore more functions of the rvx format, particularly Python scripts.

andrea.botti's avatar andrea.botti  ( 2016-06-09 07:27:01 -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

1 follower

Stats

Asked: 2016-06-06 13:09:03 -0600

Seen: 461 times

Last updated: Jun 06 '16