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

Can I access hour of day, day and month by external interface from EnergyPlus?

asked 2016-12-21 03:30:38 -0600

Mike06 gravatar image

updated 2017-04-16 11:37:13 -0600

If I want to perform code in the external programme (like MATLAB) during every time-step, depending on e.g. the time of the day, can I get that variable from EnergyPlus? Or do I have to derive that information from the overall simulation time (either in BCVTB or MATLAB)?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-12-14 06:09:26 -0600

Samuel de Vries gravatar image

updated 2017-12-14 06:10:05 -0600

A bit of a late addition, but for future reference: the built in variables for the designation of time within Erl can requested as EMS ouput variables and exported to BCVTB via the external interface. These variables can be found in the EMS manual (p.11). In this instance you would probably be interested in 'Hour' (whole hours) and 'Minute' or 'CurrentTime' (gives fractional hours). The day can be requested through 'DayOfMonth', 'DayOfWeek' or 'DayOfYear'.

edit flag offensive delete link more
1

answered 2016-12-28 11:14:50 -0600

dalin_si gravatar image

You can check a co-simulation platform called MLE+ https://github.com/mlab-upenn/mlep_v1.1

edit flag offensive delete link more

Comments

thanks. I am already running a co-simulation with BCVTB (Ptolemy II), but wondered, if EnergyPlus would be able to write the hour of the day and the day itself as an output variable (which I then could use), instead of deriving it from the simulation time of the co-simulation. with mle+ I found out that it is not updated anymore and would not run with current MATLAB and EnergyPlus versions.

Mike06 gravatar image Mike06  ( 2016-12-29 14:07:30 -0600 )edit

Thank you for your infomation

dalin_si gravatar image dalin_si  ( 2016-12-29 16:11:17 -0600 )edit
1

If EnergyPlus can report your desired output variables as double values then you should be able to exchange them with the BCVTB.

Thierry Nouidui gravatar image Thierry Nouidui  ( 2017-01-09 13:57:36 -0600 )edit

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2016-12-21 03:30:38 -0600

Seen: 422 times

Last updated: Dec 14 '17