Skip to content

Address Coil:Cooling:DX Doesn't Use the Minimum Outside Air Temperature for Compressor Operation Field #11131

Merged
mitchute merged 12 commits intodevelopfrom
coil_cooling_dx_min_OAT
Sep 30, 2025
Merged

Address Coil:Cooling:DX Doesn't Use the Minimum Outside Air Temperature for Compressor Operation Field #11131
mitchute merged 12 commits intodevelopfrom
coil_cooling_dx_min_OAT

Conversation

@Nigusse
Copy link
Contributor

@Nigusse Nigusse commented Jul 24, 2025

Pull request overview

Description of the purpose of this PR

Pull Request Author

  • Title of PR should be user-synopsis style (clearly understandable in a standalone changelog context)
  • Label the PR with at least one of: Defect, Refactoring, NewFeature, Performance, and/or DoNoPublish
  • Pull requests that impact EnergyPlus code must also include unit tests to cover enhancement or defect repair
  • Author should provide a "walkthrough" of relevant code changes using a GitHub code review comment process
  • If any diffs are expected, author must demonstrate they are justified using plots and descriptions
  • If changes fix a defect, the fix should be demonstrated in plots and descriptions
  • If any defect files are updated to a more recent version, upload new versions here or on DevSupport
  • If IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange label
  • If structural output changes, add to output rules file and add OutputChange label
  • If adding/removing any LaTeX docs or figures, update that document's CMakeLists file dependencies

Reviewer

  • Perform a Code Review on GitHub
  • If branch is behind develop, merge develop and build locally to check for side effects of the merge
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified
  • Check that performance is not impacted (CI Linux results include performance check)
  • Run Unit Test(s) locally
  • Check any new function arguments for performance impacts
  • Verify IDF naming conventions and styles, memos and notes and defaults
  • If new idf included, locally check the err file and other outputs

@Nigusse Nigusse added the Defect Includes code to repair a defect in EnergyPlus label Jul 25, 2025
@Nigusse
Copy link
Contributor Author

Nigusse commented Jul 25, 2025

Ran a defect for two different values of the Minimum Outdoor Dry-Bulb Temperature for Compressor Operation {C} input field; ran for a default value of -25.0C and 25.0C. The plots below demonstrate the fix. The broken orange line shows the DX cooling coil is off when the outside air temperature is below the OA temperature limit of 25.0C.

image

@Nigusse Nigusse added this to the EnergyPlus 25.2 milestone Jul 25, 2025
@Nigusse
Copy link
Contributor Author

Nigusse commented Jul 25, 2025

Uploaded test file.

UnitarySystem_VSCoolingCoilidf.txt

Copy link
Contributor Author

@Nigusse Nigusse left a comment

Choose a reason for hiding this comment

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

Enabled the Coil:Cooling:DX coil object operation control using the outside air temperature minimum limit.


if ((speedNum == 0) || ((speedNum == 1) && (speedRatio == 0.0)) || (inletNode.MassFlowRate == 0.0)) {
if ((speedNum == 0) || ((speedNum == 1) && (speedRatio == 0.0)) || (inletNode.MassFlowRate == 0.0) ||
(state.dataEnvrn->OutDryBulbTemp < this->minOutdoorDrybulb)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Coil:Cooling:DX cooling coil object operation is disabled when the outside air temperature is below the minimum limit allowed for compressor operation.

Real64 ratedAirVolFlowEMSOverrideValue = 0.0;
bool ratedTotCapFlowEMSOverrideON = false;
Real64 ratedTotCapFlowEMSOverrideValue = 0.0;
Real64 minOutdoorDrybulb = 0.0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Defined member variable and set value to 0.0. Hmmm, maybe I should have set to the default value.

this->alternateMode2.minOutdoorDrybulb = this->normalMode.minOutdoorDrybulb;
this->myOneTimeMinOATFlag = false;
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The OA temperature minimum limit values propagated to operating mode variables. This is one time setup.

EXPECT_EQ(performance->normalMode.minOutdoorDrybulb, 5.0);
EXPECT_EQ(performance->alternateMode.minOutdoorDrybulb, 5.0);
EXPECT_EQ(performance->alternateMode2.minOutdoorDrybulb, 5.0);
EXPECT_EQ(thisCoil.totalCoolingEnergyRate, 0.0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified an existing unit test to demonstrate the fix.

CoilCoolingDXCurveFitOperatingMode normalMode;
CoilCoolingDXCurveFitOperatingMode alternateMode; // enhanced dehumidifcation or Subcool mode
CoilCoolingDXCurveFitOperatingMode alternateMode2; // Reheat mode
bool myOneTimeMinOATFlag = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A new flag variable is defined and set true for controlling a onetime run of the oneTimeMinOATSetup() function.

@nrel-bot-2c
Copy link

@Nigusse @Myoldmopar it has been 30 days since this pull request was last updated.

@mitchute mitchute self-requested a review September 24, 2025 18:38
@mitchute
Copy link
Collaborator

One more round of CI to cleanup final issues, then merging (hopefully).

@mitchute mitchute merged commit 1820e01 into develop Sep 30, 2025
11 checks passed
@mitchute mitchute deleted the coil_cooling_dx_min_OAT branch September 30, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Defect Includes code to repair a defect in EnergyPlus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coil:Cooling:DX doesn't use MinOAT or AvailSched inputs

5 participants