Generator and Storage TrackMeter no change/crash

asked 2021-02-12 16:45:44 -0600

Determinant's avatar

updated 2021-04-01 10:58:09 -0600

I've modeled a PV with battery storage two ways. First by having the PV and battery operate based on the whole facility's loads by setting the Generator Operation Scheme Type toBaseLoad and the Storage Operation Scheme to FacilityDemandLeveling in the ElectricLoadCenter:Distribution object. Works just as expected. But if I try to operate the object by setting it to track a particular meter it doesn't operate as expected.

If I change only the Generator Operation Scheme Type toTrackMeter the ElectricityPurchased:Facilityand ElectricitySurplusSold:Facility are exactly the same for every hour as BaseLoad. I've verified the meter does not track the whole facility's electricity.

If I change the Storage Operation Scheme to TrackMeterDemandStoreExcessOnSite I get the below error even though I have a name in the field for the meter:

** Fatal ** ElectPowerLoadCenter::setupLoadCenterMeterIndices  Did not find Meter named: in ElectricLoadCenter:Distribution named LOADCENTER

Here's how I'm specifying the objects:

ElectricLoadCenter:Distribution,
    LoadCenter,              !- Name
    ELCGen,                  !- Generator List Name
    TrackMeter,              !- Generator Operation Scheme Type
    0,                       !- Generator Demand Limit Scheme Purchased Electric Demand Limit {W}
    ,                        !- Generator Track Schedule Name Scheme Schedule Name
    ResElecTotal,  !- Generator Track Meter Scheme Meter Name
    DirectCurrentWithInverterDCStorage,  !- Electrical Buss Type
    PVWattsInverter,         !- Inverter Name
    BatterySimple,           !- Electrical Storage Object Name
    ,                        !- Transformer Object Name
    TrackMeterDemandStoreExcessOnSite,  !- Storage Operation Scheme
    ResElecTotal,            !- Storage Control Track Meter Name
    StorageConverter,        !- Storage Converter Object Name
    0.95,                    !- Maximum Storage State of Charge Fraction
    0.2,                     !- Minimum Storage State of Charge Fraction
    ,                        !- Design Storage Control Charge Power {W}
    ,                        !- Storage Charge Power Fraction Schedule Name
    ,                        !- Design Storage Control Discharge Power {W}
    ,                        !- Storage Discharge Power Fraction Schedule Name
    210000,                  !- Storage Control Utility Demand Target {W}
    Always On;               !- Storage Control Utility Demand Target Fraction Schedule Name

Meter:CustomDecrement,
    ResElecTotal,               !- Name
    Electricity,             !- Fuel Type
    Electricity:Facility,     !- Source Meter Name
    ,                        !- Key Name 1
    NRElecClg,               !- Output Variable or Meter Name 1
    ,                        !- Key Name 1
    NRElecHtg,               !- Output Variable or Meter Name 1
    ,                        !- Key Name 1
    NRElecFans,              !- Output Variable or Meter Name 1
    ,                        !- Key Name 1
    NRElecPumps,             !- Output Variable or Meter Name 1
    ,                        !- Key Name 1
    NRElecWH,                !- Output Variable or Meter Name 1
    ,                        !- Key Name 1
    NRElecLightsSpc,         !- Output Variable or Meter Name 1
    ,                        !- Key Name 2
    NRElecLightsCirc,        !- Output Variable or Meter Name 2
    ,                        !- Key Name 1
    NRElecEquipSpc,          !- Output Variable or Meter Name 1
    ,                        !- Key Name 2
    NRElecEquipElev;         !- Output Variable or Meter Name 2
edit retag flag offensive close merge delete

Comments

Which version of EnergyPlus are you using?

This part of the severe error makes it sound like EnergyPlus is expecting one of your blank input fields to be a meter name: Did not find Meter named: in ElectricLoadCenter:Distribution named LOADCENTER

Aaron Boranian's avatar Aaron Boranian  ( 2021-02-13 10:20:23 -0600 )edit

Can you paste the definition of the "ResElecTotal" meter too?

Julien Marrec's avatar Julien Marrec  ( 2021-02-15 07:55:21 -0600 )edit

Version 9.0. I've added ResElecTotal. Unfortunately it's a Meter:CustomDecrement and I'd have to add a lot of Meter:Customs to show everything. @"Aaron Boranian" it absolutely sounds like that, right?

Determinant's avatar Determinant  ( 2021-02-15 10:35:35 -0600 )edit

@Determinant have you tried setting * for the Key Name input fields instead of leaving those blank? That would provide all the cases where each custom meter is measuring energy use.

Aaron Boranian's avatar Aaron Boranian  ( 2021-02-16 14:08:27 -0600 )edit

Just tried it with *, still get same error, but thanks for the idea!

Determinant's avatar Determinant  ( 2021-02-19 18:04:56 -0600 )edit