Skip to content

Commit

Permalink
Initial upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lgu1234 committed May 10, 2023
1 parent c52794b commit 9ffbd6e
Show file tree
Hide file tree
Showing 15 changed files with 12,733 additions and 132 deletions.

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions idd/Energy+.idd.in
Original file line number Diff line number Diff line change
Expand Up @@ -36447,10 +36447,18 @@ ZoneHVAC:WaterToAirHeatPump,
\note Constant results in 100% water flow regardless of compressor PLR
\note Cycling results in water flow that matches compressor PLR
\note ConstantOnDemand results in 100% water flow whenever the coil is on, but is 0% whenever the coil has no load
A20; \field Design Specification ZoneHVAC Sizing Object Name
A20, \field Design Specification ZoneHVAC Sizing Object Name
\note Enter the name of a DesignSpecificationZoneHVACSizing object.
\type object-list
\object-list DesignSpecificationZoneHVACSizingName
A21, \field Design Specification Multispeed Object Type
\type choice
\key UnitarySystemPerformance:Multispeed
\note Enter the type of performance specification object used to describe the multispeed coil or fan.
A22; \field Design Specification Multispeed Object Name
\type object-list
\object-list UnitarySystemPerformaceNames
\note Enter the name of the performance specification object used to describe the multispeed coil or fan.

ZoneHVAC:Dehumidifier:DX,
\memo This object calculates the performance of zone (room) air dehumidifiers.
Expand Down Expand Up @@ -42334,14 +42342,21 @@ ZoneHVAC:TerminalUnit:VariableRefrigerantFlow,
\default 21.0
\units C
\note Supplemental heater will not operate when outdoor temperature exceeds this value.
A19; \field Controlling Zone or Thermostat Location
A19, \field Controlling Zone or Thermostat Location
\type object-list
\object-list ZoneNames
\note Used only for AirloopHVAC equipment on a main branch and defines zone name where thermostat is located.
\note Not required for zone equipment. Leave blank if terminal unit is used in AirLoopHVAC:OutdoorAirSystem:EquipmentList.
\note Required when terminal unit is used on main AirloopHVAC branch and coils are not set point controlled.
\note When terminal unit is used in air loop and is load controlled, this zone's thermostat will control operation.

A20, \field Design Specification Multispeed Object Type
\type choice
\key UnitarySystemPerformance:Multispeed
\note Enter the type of performance specification object used to describe the multispeed coil or fan.
A21; \field Design Specification Multispeed Object Name
\type object-list
\object-list UnitarySystemPerformaceNames
\note Enter the name of the performance specification object used to describe the multispeed coil or fan.

\group Zone HVAC Radiative/Convective Units

Expand Down
10 changes: 10 additions & 0 deletions src/EnergyPlus/HVACFan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,16 @@ namespace HVACFan {
}
}

int FanSystem::fanNumOfSpeed() const
{
return m_numSpeeds;
}

Real64 FanSystem::AirMassFlowRateAtSpeed(int const SpeedNum)
{
return m_massFlowAtSpeed[SpeedNum];
}

// void
// FanSystem::fanIsSecondaryDriver()
//{
Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/HVACFan.hh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ namespace HVACFan {

void FanInputsForDesignHeatGain(EnergyPlusData &state, Real64 &deltaP, Real64 &motEff, Real64 &totEff, Real64 &motInAirFrac);

int fanNumOfSpeed() const;

Real64 AirMassFlowRateAtSpeed(int const SpeedNum);

// void
// fanIsSecondaryDriver();

Expand Down
588 changes: 468 additions & 120 deletions src/EnergyPlus/HVACVariableRefrigerantFlow.cc

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/EnergyPlus/HVACVariableRefrigerantFlow.hh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include <EnergyPlus/PlantComponent.hh>
#include <EnergyPlus/SingleDuct.hh>
#include <EnergyPlus/StandardRatings.hh>
#include <EnergyPlus/UnitarySystem.hh>

namespace EnergyPlus {

Expand Down Expand Up @@ -754,6 +755,20 @@ namespace HVACVariableRefrigerantFlow {
int coolCoilAirOutNode = 0; // cooling coil air outlet node number
int heatCoilAirInNode = 0; // heating coil air inlet node number
int heatCoilAirOutNode = 0; // heating coil air outlet node number
std::string DesignSpecMultispeedHPType; // Multiuple performance object type
std::string DesignSpecMultispeedHPName; // Multiuple performance object name
int DesignSpecMSHPIndex = -1; // Multiuple performance index
int NumOfSpeedHeating = 0; // Number of heating speed
int NumOfSpeedCooling = 0; // Number of cooling speed
int HeatSpeedNum = 0; // Heating speed number
int CoolSpeedNum = 0; // Cooling speed number
std::vector<Real64> CoolVolumeFlowRate;
std::vector<Real64> CoolMassFlowRate;
std::vector<Real64> HeatVolumeFlowRate;
std::vector<Real64> HeatMassFlowRate;
int SpeedNum = 0;
Real64 SpeedRatio = 0.0;
Real64 CycRatio = 0.0;

// Methods for New VRF Model: Fluid Temperature Control
//******************************************************************************
Expand Down
Loading

1 comment on commit 9ffbd6e

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MultispeedFans (lgu1234) - x86_64-MacOS-10.17-clang-13.0.0: OK (3246 of 3376 tests passed, 311 test warnings)

Messages:\n

  • 292 tests had: ESO small diffs.
  • 176 tests had: MTR small diffs.
  • 25 tests had: ERR diffs.
  • 125 tests had: Table big diffs.
  • 53 tests had: EIO diffs.
  • 8 tests had: AUD diffs.
  • 5 tests had: BND diffs.
  • 39 tests had: MTD diffs.
  • 78 tests had: RDD diffs.
  • 4 tests had: Table small diffs.
  • 10 tests had: ESO big diffs.
  • 2 tests had: EDD diffs.
  • 19 tests had: MDD diffs.
  • 6 tests had: MTR big diffs.
  • 1 test had: JSON big diffs.
  • 1 test had: JSON small diffs.
  • 2 tests had: SSZ big diffs.
  • 2 tests had: ZSZ big diffs.

Failures:\n

regression Test Summary

  • Passed: 640
  • Failed: 130

Build Badge Test Badge

Please sign in to comment.