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 188 forks source link

Wrap Coil:Cooling:DX:SingleSpeed:ThermalStorage #5059

Closed joseph-robertson closed 5 months ago

joseph-robertson commented 9 months ago

Pull request overview

Pull Request Author

Labels:

Review Checklist

This will not be exhaustively relevant to every PR.

joseph-robertson commented 7 months ago

@shorowit pointed out that it's not always appropriate to use idf testfile values. @DavidGoldwasser pointed out that there may be helpful curve information on other DX coil objects.

jmarrec commented 7 months ago

Make all non curve fields required so that, even when Mode=No, the fields are pre-populated in case Mode is switched to Yes?

I'm kinda torn on this one. There are three options:

Worth noting that I doubt this object will be commonly used by people, so factor that in.

@kbenne Can you please advise here?

joseph-robertson commented 7 months ago

My vote is leave the curves as optionals (so either bullet 2 or 3); it doesn't look the one testfile on the E+ repo with Coil:Cooling:DX:SingleSpeed:ThermalStorage has all the curve fields populated, so what would we set them to?

joseph-robertson commented 7 months ago

I don't see where ElectricLoadCenterDistribution's validityCheck even gets called?

jmarrec commented 7 months ago

I don't see where ElectricLoadCenterDistribution's validityCheck even gets called?

It isn't, but it should.

https://github.com/NREL/OpenStudio/blob/1ce97f5651ff868500e4168aaa8e0a441559edce/src/energyplus/ForwardTranslator/ForwardTranslateElectricLoadCenterDistribution.cpp#L132

jmarrec commented 6 months ago

@joseph-robertson One failing test

1056: [ RUN      ] ModelFixture.CoilCoolingDXSingleSpeedThermalStorage_clone
1056: /srv/jenkins/openstudio/docker-volumes/ubuntu-2004/src/model/test/CoilCoolingDXSingleSpeedThermalStorage_GTest.cpp:992: Failure
1056: Expected equality of these values:
1056:   0
1056:   model.getModelObjects<Curve>().size()
1056:     Which is: 3
1056: /srv/jenkins/openstudio/docker-volumes/ubuntu-2004/src/model/test/CoilCoolingDXSingleSpeedThermalStorage_GTest.cpp:993: Failure
1056: Expected equality of these values:
1056:   0
1056:   model.getConcreteModelObjects<CurveBiquadratic>().size()
1056:     Which is: 1
1056: /srv/jenkins/openstudio/docker-volumes/ubuntu-2004/src/model/test/CoilCoolingDXSingleSpeedThermalStorage_GTest.cpp:994: Failure
1056: Expected equality of these values:
1056:   0
1056:   model.getConcreteModelObjects<CurveQuadratic>().size()
1056:     Which is: 1
1056: /srv/jenkins/openstudio/docker-volumes/ubuntu-2004/src/model/test/CoilCoolingDXSingleSpeedThermalStorage_GTest.cpp:995: Failure
1056: Expected equality of these values:
1056:   0
1056:   model.getConcreteModelObjects<CurveTriquadratic>().size()
1056:     Which is: 1
1056: [  FAILED  ] ModelFixture.CoilCoolingDXSingleSpeedThermalStorage_clone (10 ms)
1056: [----------] 1 test from ModelFixture (11 ms total)
1056: 
1056: [----------] Global test environment tear-down
1056: [==========] 1 test from 1 test suite ran. (11 ms total)
1056: [  PASSED  ] 0 tests.
1056: [  FAILED  ] 1 test, listed below:
1056: [  FAILED  ] ModelFixture.CoilCoolingDXSingleSpeedThermalStorage_clone
ci-commercialbuildings commented 5 months ago

CI Results for faffcfd8b8a99621ca57752e0a741299701502d0: