hongyuanjia / epluspar

Conduct parametric analysis on EnergyPlus models in R
https://hongyuanjia.github.io/epluspar
Other
9 stars 0 forks source link

Custom:meter cannot be loaded in $output() #34

Open fabienrouault opened 1 year ago

fabienrouault commented 1 year ago

Hello @hongyuanjia,

Before any comments, I want to thank you and your collaborators for your great job with the packages eplusr and epluspar. These tools are very useful.

I am trying to carry out a Bayesian calibration with epluspar. However, I am facing a problem with adding the following custom meter in $output() :

Meter:Custom, CustomLights, !- Name Electricity, !- Resource Type Depto201_8376d7ca, !- Key Name 1 Zone Lights Electricity Energy, !- Output Variable or Meter Name 1 Depto202_065db6d5, !- Key Name 2 Zone Lights Electricity Energy, !- Output Variable or Meter Name 2 Depto203_ee2eff98, !- Key Name 3 Zone Lights Electricity Energy, !- Output Variable or Meter Name 3 Depto204_b3ba733f, !- Key Name 4 Zone Lights Electricity Energy, !- Output Variable or Meter Name 4 Depto205_ca4768b6, !- Key Name 5 Zone Lights Electricity Energy, !- Output Variable or Meter Name 5 Depto206_2149faff, !- Key Name 6 Zone Lights Electricity Energy; !- Output Variable or Meter Name 6

When I run a simulation with the seed .idf file the custom meter is present in the mdd file :

══ EnergyPlus Meter Data Dictionary File ════════════════════════════════════════════════════════════════════════════════════════════════════════

── Details ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── index reported_time_step report_type variable units 1: 623 Zone Meter CUSTOMLIGHTS

However, when I try to add it with $output() I have the following error :

Error: Invaid variable name found in input 'key_value': 'CUSTOMLIGHTS'.

The custom does not appear in the data frame mdd <- bc$read_mdd().

Custom meters is very useful to calibrate the model using measured data from submetering data.

Best regards

Fabien

hongyuanjia commented 1 year ago

Good to know those packages help! This is a reasonable feature request. I will work on it this week.