Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coil:CoolingDX measures fail on CreteTypical models #64

Open
craig-simmons opened this issue Jan 31, 2024 · 0 comments
Open

Coil:CoolingDX measures fail on CreteTypical models #64

craig-simmons opened this issue Jan 31, 2024 · 0 comments

Comments

@craig-simmons
Copy link

craig-simmons commented Jan 31, 2024

The current code gets to the DX coils through the AirLoopHVAC objects and expects the coils to be a direct component of the loop.. Currently CreateTypical (via Standards?) implements AirLoopHVACUnitarySystem objects and the coils are not added. For my purposes I just added to the code below and found the coils directly model.getCoilCoolingDXSingleSpeeds and added them all to the coils array because I just wanted to change them all. But a more robust solution is needed to support the current input structure that allows for specific coils to be changed based on the AirLoopHVAC they're associated with.

Current code sample from lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb (lines 131 - 141)

      loops = model.getAirLoopHVACs /n
      # loop through air loops
      loops.each do |loop|
        supply_components = loop.supplyComponents
        # find coils on loops
        supply_components.each do |supply_component|
          unless supply_component.to_CoilCoolingDXSingleSpeed.empty?
            coils << supply_component.to_CoilCoolingDXSingleSpeed.get
          end
        end
      end

Code I added (immediately after the above lines) to catch all coils in the model:

      dxcoils = model.getCoilCoolingDXSingleSpeeds
      dxcoils.each do |dxcoil|
        coils << dxcoil
      end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant