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

How to model defrost cycles in EnergyPlus

asked 2025-04-28 20:08:22 -0500

lrsanchez510's avatar

updated 2025-05-01 10:17:05 -0500

Hello, I am quite new to EnergyPlus modeling and am working on a project where I am trying to understand the impact of urban microclimate-adjusted weather files, produced through the Urban Weather Generator tool, on air source heat pump performance. To start, I am using the DOE reference model for a midrise apartment building. In OpenStudio I used the measure add_apszhp_to_each_zone to swap out all existing HVAC systems for air source heat pumps. This works and I am able to run my simulations in EnergyPlus through the run_ep_from_python functions. I am able to retrieve the timeseries output variables I need, being: "Cooling:Electricity J" and "Heating:Electricity J" from the output .csv file. This is great, because I can see how annual hourly energy consumption varies for the same building model across various microclimate weather files (different locations within the same city).

However, to truly model how microclimate influences air source heat pump performance, I want to capture the role of defrost cycling and its impact on energy consumption. The logic here is that during the winter, different microclimate relative humiditiy levels, on top of other localized environmental features, will influence the operation of defrost cycling, impacting the accumulation of frost on the outdoor coil. What I would like to do is plot defrost cycle energy consumption and use throughout the winter, which to my understanding would require the output variables:

  • 'Output:Variable,*,Heat Exchanger Defrost Time Fraction,hourly; !- HVAC Average []'
  • 'Output:Variable,*,Heating Coil Defrost Electricity Rate,hourly; !- HVAC Average [W]'
  • 'Output:Variable,*,Heating Coil Defrost Electricity Energy,hourly; !- HVAC Sum [J]'

which I see listed in my simulation output .rdd file.

Though when I try to actually plot these defrost output time series variables, from the output .eso file, converted to a .csv file, these output variables are not to be found, which I am confused about. For reference, here is how I am defining defrost cycling operation in my IDF for the object Coil:Heating:DX:SingleSpeed:

  Coil:Heating:DX:SingleSpeed,
G N1 Apartment ZN Coil Heating DX Single Speed,  !- Name
Always On Discrete,      !- Availability Schedule Name
Autosize,                !- Gross Rated Heating Capacity {W}
3.1,                     !- Gross Rated Heating COP {W/W}
Autosize,                !- Rated Air Flow Rate {m3/s}
773.3,                   !- 2017 Rated Supply Fan Power Per Volume Flow Rate {W/(m3/s)}
934.4,                   !- 2023 Rated Supply Fan Power Per Volume Flow Rate {W/(m3/s)}
Node 163,                !- Air Inlet Node Name
Node 164,                !- Air Outlet Node Name
Curve Cubic 34,          !- Heating Capacity Function of Temperature Curve Name
Curve Cubic 35,          !- Heating Capacity Function of Flow Fraction Curve Name
Curve Cubic 36,          !- Energy Input Ratio Function of Temperature Curve Name
Curve Quadratic 59,      !- Energy Input Ratio Function of Flow Fraction Curve Name
Curve Quadratic 60,      !- Part Load Fraction Correlation Curve Name
FlatDefrostEIRCurve,     !- Defrost Energy Input Ratio Function of Temperature Curve Name
-8,                      !- Minimum Outdoor Dry-Bulb Temperature for Compressor Operation {C}
,                        !- Outdoor Dry-Bulb Temperature to Turn On Compressor {C}
5,                       !- Maximum Outdoor Dry-Bulb Temperature for Defrost Operation {C ...
(more)
edit retag flag offensive close merge delete

Comments

1

I don't think anything is obviously wrong with what you're doing. If the outputs are listed in the RDD file, then they should show up in the csv file. You might need to provide your IDF if you want someone to help.

shorowit's avatar shorowit  ( 2025-04-29 17:38:44 -0500 )edit

@shorowit Thanks for clarifying this. I was wondering just that, if I saw the defrost output variables of interest listed in the RDD file were in fact part of the simulation, and not just strings that were just printed, but not actually a part of the simulation. Good to know there is nothing that stands out as wrong about my IDF. I am happy to share it, but is there a best means to do this? Should I upload here or link to a drive with the IDF?

lrsanchez510's avatar lrsanchez510  ( 2025-04-30 13:23:10 -0500 )edit

You can upload it to Google Drive or Dropbox, for example, and then link to it here.

shorowit's avatar shorowit  ( 2025-04-30 14:43:45 -0500 )edit

@shorowit OK, I just updated my post to add a Google Drive link to my IDF. Thanks.

lrsanchez510's avatar lrsanchez510  ( 2025-05-01 10:18:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2025-05-01 10:59:38 -0500

I'm not sure what you are doing wrong but it worked for me. I added these objects to your IDF:

Output:Variable,*,Heating Coil Defrost Electricity Rate,Timestep; !- HVAC Average [W]
Output:Variable,*,Heating Coil Defrost Electricity Energy,Timestep; !- HVAC Sum [J]
OutputControl:Files,Yes;

(The last object allows EnergyPlus to natively write the CSV file directly without having to convert the data from the ESO file.)

When I ran the file, defrost outputs for each heating coil were in the eplusout.csv file. Here's one example:

image description

edit flag offensive delete link more

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

3 followers

Stats

Asked: 2025-04-28 20:08:22 -0500

Seen: 142 times

Last updated: May 03