NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
494 stars 189 forks source link

Dynamically generate proposed idd #3962

Closed tijcolem closed 4 years ago

tijcolem commented 4 years ago

E+ expands the extensible fields even with it uses the \begin-extensible code for the benefit of idfeditor. One idea is to leave the fields expanded in the proposed idd just like they are in E+, but make our code generator smart enough to detect the situation and not generate enums for all of those fields. I guess another option which Tim and I did not talk about it is enhancing idf editor to not require the extensible to be fully expanded, and then "fix" the EnergyPlus idd

jmarrec commented 4 years ago

Differences

Changes that could probably be done at E+ level

Changes that could be either at E+ level or in OpenStudio parser

Changes that should be in the OpenStudio parser

Examples

Regular extensible

 A4  , \field Time 1
       \begin-extensible
       \note "until" includes the time entered.
       \units hh:mm
 N1  , \field Value Until Time 1
 A5  , \field Time 2
       \note "until" includes the time entered.
       \units hh:mm
 N2  , \field Value Until Time 2
 A6  , \field Time 3
       \note "until" includes the time entered.
       \units hh:mm

Variant:

  N2,  \field Value 1
       \begin-extensible
       \default 0.0
        N3,N4,         N5,N6,N7,N8,         N9,N10,N11,N12,      N13,N14,N15,N16,     N17,N18,N19,N20, \note fields as indicated
  N21,N22,N23,N24,

A couple of weird things:

\begin-extensible is placed on the second occurrence

Site:SpectrumData,

  A2, \field Spectrum Data Type
      \required-field
      \type choice
      \key Solar
      \key Visible
  N1, \field Wavelength
      \type real
      \units micron
  N2, \field Spectrum
      \type real
  N3, \field Wavelength
      \type real
      \units micron
  N4, \field Spectrum
      \type real
  N5, \field Wavelength
      \begin-extensible
      \type real
      \units micron
  N6, \field Spectrum
      \type real
  N7, N8,       \note fields as indicated

FluidProperties:GlycolConcentration (https://github.com/NREL/EnergyPlus/issues/7244)

FluidProperties:GlycolConcentration,
       \memo glycol and what concentration it is
  A1,  \field Name
       \required-field
       \note In EnergyPlus IDD 9.1.0, reference FluidAndGlycolNames is added but causing problems because we expect both
       \note FluidProperties:Name and FluidProperties:GlycolConcentration to have the same name
  A2,  \field Glycol Type
tijcolem commented 4 years ago

We'll be closing this issue in favor of focusing time on the new epJSON format for E+.