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

EnergyPlus Macro file #eval error for ! - Peak flow rate (m3/s)

asked 2021-05-22 11:22:46 -0600

gattd's avatar

updated 2021-05-25 04:26:52 -0600

EnergyPlus is giving an error as follows:

** Severe  ** <root>[WaterUse:Equipment][Level0:Bedroom Water Outlet] - Missing required property 'peak_flow_rate'.

when the numerical value of the peak flow rate value is replaced by an arithmetic operation using the built-in macro #eval[ ].

For example when #eval[0.0000067517*1 ] is input instead of 0.0000067517 for the peak flow rate, the severe error is output.

Is only a numerical value accepted for this input not a macro?

edit retag flag offensive close merge delete

Comments

Can you paste the E+ object you're using in full please? Then provide the corresponding object in expanded IDF. My money is on a missing comma or something.

Julien Marrec's avatar Julien Marrec  ( 2021-05-25 04:26:29 -0600 )edit

Many thanks: The Idf and Imf file I am using are in the following link: http://www.fileconvoy.com/dfl.php?id=...

gattd's avatar gattd  ( 2021-05-25 07:07:49 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-05-26 10:42:28 -0600

This is a whitespace problem. The process I used to debug was to run your unmethours.imf file through energyplus via the CLI energyplus -m -d out/ unmethours.imf (you can use EP-Launch too). The -m flag is used to tell E+ to run EPMacro prior to simulation. Anyways, you will find an eplusout.epidf that is the result of running the EPMacro over the IMF. That one indeed had an empty peak flow rate.

Turns out that #eval[0.0000067517*1] is NOT understood, but #eval[ 0.0000067517 * 1 ] is. So will #eval[0.0000067517 * 1]. Bottom line: the space around the arithmetic operator is mandatory.


Old:

WaterUse:Equipment,
  Level0:Bedroom Water Outlet,    ! - Component name
  ,                               ! - End use sub-category
  #eval[0.0000067517*1],        ! - Peak flow rate (m3/s)
  Hotel_EnsuiteBed_Occ,           ! - Flow rate fraction schedule
  Domestic hot water setpoint temperature: Always 55.00,  ! - Target temperature schedule
  ,                               ! - Hot water supply temperature schedule
  ,                               ! - Cold water supply temperature schedule
  ,                               ! - Zone name
  Off 24/7,                       ! - Sensible fraction schedule
  Off 24/7;                       ! - Latent fraction schedule

New:

WaterUse:Equipment,
  Level0:Bedroom Water Outlet,    ! - Component name
  ,                               ! - End use sub-category
  #eval[0.0000067517 * 1],        ! - Peak flow rate (m3/s)
  Hotel_EnsuiteBed_Occ,           ! - Flow rate fraction schedule
  Domestic hot water setpoint temperature: Always 55.00,  ! - Target temperature schedule
  ,                               ! - Hot water supply temperature schedule
  ,                               ! - Cold water supply temperature schedule
  ,                               ! - Zone name
  Off 24/7,                       ! - Sensible fraction schedule
  Off 24/7;                       ! - Latent fraction schedule
edit flag offensive delete link more

Comments

much appreciated

gattd's avatar gattd  ( 2021-05-29 02:13:56 -0600 )edit

Please mark the answer as accepted if it solved your problem so we know the question has been answered. thanks! cf help page: https://proxy.unmethours.com/help.html

Julien Marrec's avatar Julien Marrec  ( 2021-05-31 10:17:52 -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: 2021-05-22 11:22:46 -0600

Seen: 136 times

Last updated: Jun 03 '21