@@ -2583,7 +2583,24 @@ void ElectricEIRChillerSpecs::update(EnergyPlusData &state, Real64 const MyLoad,
25832583 Real64 ReportingConstant = state.dataHVACGlobal ->TimeStepSysSec ;
25842584
25852585 if (MyLoad >= 0 || !RunFlag) { // Chiller not running so pass inlet states to outlet states
2586- // Set node conditions
2586+ // if (MyLoad >= 0 || !RunFlag || this->QEvaporator <= 0.0) { // Chiller not running so pass inlet states to outlet states
2587+ // if ((MyLoad < 0 && RunFlag) && (this->CondMassFlowRate >= DataBranchAirLoopPlant::MassFlowTolerance ||
2588+ // this->EvapMassFlowRate >= DataBranchAirLoopPlant::MassFlowTolerance)) {
2589+ // if (!state.dataGlobal->WarmupFlag && !state.dataGlobal->DoingHVACSizingSimulations &&
2590+ // state.dataPlnt->PlantLoop(this->CWPlantLoc.loopNum).LoopSide(this->CWPlantLoc.loopSideNum).FlowLock == DataPlant::FlowLock::Locked)
2591+ // { ShowWarningError(state, "Chiller off due to this->QEvaporator <= 0.0 rule"); ShowContinueErrorTimeStamp(
2592+ // state,
2593+ // format("MyLoad={}, RunFlag={}, this->QEvaporator={}, this->QCondenser={}, this->EvapMassFlowRate={},
2594+ // this->CondMassFlowRate={}",
2595+ // MyLoad,
2596+ // RunFlag,
2597+ // this->QEvaporator,
2598+ // this->QCondenser,
2599+ // this->EvapMassFlowRate,
2600+ // this->CondMassFlowRate));
2601+ // }
2602+ // }
2603+ // Set node conditions
25872604 state.dataLoopNodes ->Node (this ->EvapOutletNodeNum ).Temp = state.dataLoopNodes ->Node (this ->EvapInletNodeNum ).Temp ;
25882605 state.dataLoopNodes ->Node (this ->CondOutletNodeNum ).Temp = state.dataLoopNodes ->Node (this ->CondInletNodeNum ).Temp ;
25892606 if (this ->CondenserType != DataPlant::CondenserType::WaterCooled) {
@@ -2680,6 +2697,28 @@ void ElectricEIRChillerSpecs::update(EnergyPlusData &state, Real64 const MyLoad,
26802697 this ->HeatRecMassFlow = state.dataLoopNodes ->Node (this ->HeatRecInletNodeNum ).MassFlowRate ;
26812698 }
26822699 }
2700+ if (((this ->EvapMassFlowRate < DataBranchAirLoopPlant::MassFlowTolerance) ||
2701+ (this ->CondMassFlowRate < DataBranchAirLoopPlant::MassFlowTolerance)) &&
2702+ (this ->EvapInletTemp != this ->EvapOutletTemp )) {
2703+ if (!state.dataGlobal ->WarmupFlag && !state.dataGlobal ->DoingHVACSizingSimulations &&
2704+ state.dataPlnt ->PlantLoop (this ->CWPlantLoc .loopNum ).LoopSide (this ->CWPlantLoc .loopSideNum ).FlowLock == DataPlant::FlowLock::Locked) {
2705+ ShowWarningError (state,
2706+ format (" Chiller should be off, evap flow rate={}, but EvapInletTemp={} is != EvapOutletTemp={}" ,
2707+ this ->EvapMassFlowRate ,
2708+ this ->EvapInletTemp ,
2709+ this ->EvapOutletTemp ));
2710+ ShowContinueErrorTimeStamp (state,
2711+ format (" MyLoad={}, RunFlag={}, QEvaporator={}, QCondenser={}, EvapMassFlowRate={}, "
2712+ " CondMassFlowRate = {}, Power={} " ,
2713+ MyLoad,
2714+ RunFlag,
2715+ this ->QEvaporator ,
2716+ this ->QCondenser ,
2717+ this ->EvapMassFlowRate ,
2718+ this ->CondMassFlowRate ,
2719+ this ->Power ));
2720+ }
2721+ }
26832722}
26842723
26852724bool ElectricEIRChillerSpecs::thermosiphonDisabled (EnergyPlusData &state)
0 commit comments