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

BCVTB with EnergyPlus

asked 2019-04-15 10:06:31 -0600

Tanay's avatar

updated 2019-04-15 11:16:54 -0600

Hello All,

EnergyPlus Version: 9.0.1 BCVTB Version: 1.6.0 (April 20, 2016) Ptolemy 2 Version: 11.0 (devel)

I am new to BVCTB and EnergyPlus and trying to learn the SW by trying different examples.

Following one of the examples, I created a very simple EnergyPlus .idf file where I am trying to just plot the Output Variables on BCVTB Plotter.

https://imgur.com/XtptEGD

Following is the .cfg file I made,

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE BCVTB-variables SYSTEM "variables.dtd">
<BCVTB-variables>
  <!-- The elements received from the EnergyPlus -->
  <variable source="EnergyPlus">
   <EnergyPlus name="ENVIRONMENT" type="Site Outdoor Air Drybulb Temperature"/>     
  </variable>
  <variable source="EnergyPlus">
    <EnergyPlus name="ZSF1" type="Zone Air Temperature"/>
  </variable>
</BCVTB-variables>

In the IDF file, I have only three OutPut Variables

Output:Variable,*,Zone Air Temperature,Detailed;
Output:Variable,*,Site Outdoor Air Drybulb Temperature,Timestep;
Output:Variable,*,Zone Air Temperature,Timestep;

As I do not have any input to the EnergyPlus I did not use the ExternalInterface in the IDF.

Now, I checked the .IDF file runs perfectly okay in the EnergyPlus and produces outputs with no Severe Error. Also, when I run the file with BCVTB, it shows no error on EnergyPlus.

But, I am getting a SocketTimeoutException error and does not show any plot. It does not even open any plot window. I tried increasing the 'socketTimeout' to 10000 but still the same error.

So you know why do I have this error and how I can resolve it?

The link below have all the documents for the model (.idf, .xml, .cfg) https://drive.google.com/drive/folder...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-04-23 08:39:53 -0600

I didn't run your example but you wrote that you didn't use the ExternalInterface in the IDF. Looking at the IDF, I couldn't find any external interface objects. Consequently there is no data exchange between the BCVTB and your EnergyPlus model. I suggest to read the documentation of the BCVTB which explains why you need external interface objects and how you need to set them up for co-simulation.

edit flag offensive delete link more

Comments

If I understand correctly, even if I am not sending any data to the EnergyPlus from Ptolemy, I still need to have the ExternalInterface? I assumed that ExternalInterface is only when I want to pass some inputs to the EnergyPlus.

If that's the case, then I had the wrong understanding!

Tanay's avatar Tanay  ( 2019-04-24 02:01:12 -0600 )edit

You will also need the external interface to pass data from EnergyPlus to Ptolemy. These data are the ones, I believe, you would like to plot.

Thierry Nouidui's avatar Thierry Nouidui  ( 2019-04-27 13:14:19 -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: 2019-04-15 10:06:31 -0600

Seen: 624 times

Last updated: Apr 23 '19