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

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

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 close merge delete

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.

( 2021-05-25 04:26:29 -0500 )edit

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

( 2021-05-25 07:07:49 -0500 )edit

Sort by » oldest newest most voted

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

more

much appreciated

( 2021-05-29 02:13:56 -0500 )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

( 2021-05-31 10:17:52 -0500 )edit