Skip to content

Commit

Permalink
MixedAir enum class EconomizerControl
Browse files Browse the repository at this point in the history
  • Loading branch information
jmythms committed Dec 4, 2020
1 parent eabe692 commit 0f63645
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 77 deletions.
22 changes: 11 additions & 11 deletions src/EnergyPlus/HVACStandAloneERV.cc
Original file line number Diff line number Diff line change
Expand Up @@ -908,52 +908,52 @@ namespace HVACStandAloneERV {

// Changed by AMIT for new implementation of the controller:outside air
if (Alphas(3) == "EXHAUSTAIRTEMPERATURELIMIT" && Alphas(4) == "EXHAUSTAIRENTHALPYLIMIT") {
thisOAController.Econo = MixedAir::DifferentialDryBulbAndEnthalpy;
thisOAController.Econo = MixedAir::EconomizerControl::DifferentialDryBulbAndEnthalpy;
} else if (Alphas(3) == "EXHAUSTAIRTEMPERATURELIMIT" && Alphas(4) == "NOEXHAUSTAIRENTHALPYLIMIT") {
thisOAController.Econo = MixedAir::DifferentialDryBulb;
thisOAController.Econo = MixedAir::EconomizerControl::DifferentialDryBulb;
} else if (Alphas(3) == "NOEXHAUSTAIRTEMPERATURELIMIT" && Alphas(4) == "EXHAUSTAIRENTHALPYLIMIT") {
thisOAController.Econo = MixedAir::DifferentialEnthalpy;
thisOAController.Econo = MixedAir::EconomizerControl::DifferentialEnthalpy;
} else if (Alphas(3) == "NOEXHAUSTAIRTEMPERATURELIMIT" && Alphas(4) == "NOEXHAUSTAIRENTHALPYLIMIT") {
if ((!lNumericBlanks(1)) || (!lNumericBlanks(3)) || (!lNumericBlanks(4)) || (!lAlphaBlanks(2))) {
// This means that any of the FIXED DRY BULB, FIXED ENTHALPY, FIXED DEW POINT AND DRY BULB OR
// ELECTRONIC ENTHALPY ECONOMIZER STRATEGY is present
thisOAController.Econo = MixedAir::FixedDryBulb;
thisOAController.Econo = MixedAir::EconomizerControl::FixedDryBulb;
}
} else if ((!lAlphaBlanks(3)) && (!lAlphaBlanks(4))) {
if ((lNumericBlanks(1)) && (lNumericBlanks(3)) && (lNumericBlanks(4)) && lAlphaBlanks(2)) {
ShowWarningError(state, CurrentModuleObject + " \"" + Alphas(1) + "\"");
ShowContinueError(state, "... Invalid " + cAlphaFields(3) + cAlphaFields(4) + " = " + Alphas(3) + Alphas(4));
ShowContinueError(state, "... Assumed NO EXHAUST AIR TEMP LIMIT and NO EXHAUST AIR ENTHALPY LIMIT.");
thisOAController.Econo = MixedAir::NoEconomizer;
thisOAController.Econo = MixedAir::EconomizerControl::NoEconomizer;
} else {
// This means that any of the FIXED DRY BULB, FIXED ENTHALPY, FIXED DEW POINT AND DRY BULB OR
// ELECTRONIC ENTHALPY ECONOMIZER STRATEGY is present
thisOAController.Econo = MixedAir::FixedDryBulb;
thisOAController.Econo = MixedAir::EconomizerControl::FixedDryBulb;
}
} else if ((lAlphaBlanks(3)) && (!lAlphaBlanks(4))) {
if ((lNumericBlanks(1)) && (lNumericBlanks(3)) && (lNumericBlanks(4)) && lAlphaBlanks(2)) {
ShowWarningError(state, CurrentModuleObject + " \"" + Alphas(1) + "\"");
ShowContinueError(state, "... Invalid " + cAlphaFields(4) + " = " + Alphas(4));
ShowContinueError(state, "... Assumed NO EXHAUST AIR ENTHALPY LIMIT.");
thisOAController.Econo = MixedAir::NoEconomizer;
thisOAController.Econo = MixedAir::EconomizerControl::NoEconomizer;
} else {
// This means that any of the FIXED DRY BULB, FIXED ENTHALPY, FIXED DEW POINT AND DRY BULB OR
// ELECTRONIC ENTHALPY ECONOMIZER STRATEGY is present
thisOAController.Econo = MixedAir::FixedDryBulb;
thisOAController.Econo = MixedAir::EconomizerControl::FixedDryBulb;
}
} else if ((!lAlphaBlanks(3)) && (lAlphaBlanks(4))) {
if ((lNumericBlanks(1)) && (lNumericBlanks(3)) && (lNumericBlanks(4)) && lAlphaBlanks(2)) {
ShowWarningError(state, CurrentModuleObject + " \"" + Alphas(1) + "\"");
ShowContinueError(state, "... Invalid " + cAlphaFields(3) + " = " + Alphas(3));
ShowContinueError(state, "... Assumed NO EXHAUST AIR TEMP LIMIT ");
thisOAController.Econo = MixedAir::NoEconomizer;
thisOAController.Econo = MixedAir::EconomizerControl::NoEconomizer;
} else {
// This means that any of the FIXED DRY BULB, FIXED ENTHALPY, FIXED DEW POINT AND DRY BULB OR
// ELECTRONIC ENTHALPY ECONOMIZER STRATEGY is present
thisOAController.Econo = MixedAir::FixedDryBulb;
thisOAController.Econo = MixedAir::EconomizerControl::FixedDryBulb;
}
} else { // NO Economizer
thisOAController.Econo = MixedAir::NoEconomizer;
thisOAController.Econo = MixedAir::EconomizerControl::NoEconomizer;
}

thisOAController.FixedMin = false;
Expand Down
Loading

0 comments on commit 0f63645

Please sign in to comment.