@@ -4527,7 +4527,7 @@ namespace UnitarySystems {
45274527 } else {
45284528 auto const &thisHeatCoil = state.dataVariableSpeedCoils->VarSpeedCoil(this->m_HeatingCoilIndex);
45294529 this->m_NumOfSpeedHeating = thisHeatCoil.NumOfSpeeds;
4530- this->m_heatingCoilAvailSched = Sched::GetScheduleAlwaysOn(state) ;
4530+ this->m_heatingCoilAvailSched = thisHeatCoil.availSched ;
45314531 this->m_MaxHeatAirVolFlow = thisHeatCoil.RatedAirVolFlowRate;
45324532 if (this->m_MaxHeatAirVolFlow == DataSizing::AutoSize) {
45334533 this->m_RequestAutoSize = true;
@@ -4695,7 +4695,7 @@ namespace UnitarySystems {
46954695 errFlag = false;
46964696 } else {
46974697 auto const &thisHeatCoil = state.dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(this->m_HeatingCoilIndex);
4698- this->m_heatingCoilAvailSched = Sched::GetScheduleAlwaysOn(state) ;
4698+ this->m_heatingCoilAvailSched = thisHeatCoil.availSched ;
46994699 this->m_DesignHeatingCapacity = thisHeatCoil.RatedCapHeat;
47004700 this->m_MaxHeatAirVolFlow = thisHeatCoil.RatedAirVolFlowRate;
47014701 if (this->m_MaxHeatAirVolFlow == DataSizing::AutoSize) {
@@ -4721,7 +4721,7 @@ namespace UnitarySystems {
47214721 errFlag = false;
47224722 } else {
47234723 auto const &thisHeatCoil = state.dataWaterToAirHeatPump->WatertoAirHP(this->m_HeatingCoilIndex);
4724- this->m_heatingCoilAvailSched = Sched::GetScheduleAlwaysOn(state) ;
4724+ this->m_heatingCoilAvailSched = thisHeatCoil.availSched ;
47254725 this->m_DesignHeatingCapacity = thisHeatCoil.HeatingCapacity;
47264726 HeatingCoilInletNode = thisHeatCoil.AirInletNodeNum;
47274727 HeatingCoilOutletNode = thisHeatCoil.AirOutletNodeNum;
@@ -5065,7 +5065,14 @@ namespace UnitarySystems {
50655065 }
50665066
50675067 } else if (Util::SameString(ChildCoolingCoilType, "COIL:COOLING:DX:VARIABLESPEED")) {
5068- this->m_coolingCoilAvailSched = Sched::GetScheduleAlwaysOn(state);
5068+ int childCCIndex = VariableSpeedCoils::GetCoilIndexVariableSpeed(state, ChildCoolingCoilType, ChildCoolingCoilName, errFlag);
5069+ if (errFlag) {
5070+ ShowContinueError(state, std::format("Occurs in {} = {}", cCurrentModuleObject, thisObjectName));
5071+ errFlag = false;
5072+ errorsFound = true;
5073+ } else {
5074+ this->m_coolingCoilAvailSched = state.dataVariableSpeedCoils->VarSpeedCoil(childCCIndex).availSched;
5075+ }
50695076 this->m_MaxCoolAirVolFlow =
50705077 VariableSpeedCoils::GetCoilAirFlowRateVariableSpeed(state, ChildCoolingCoilType, ChildCoolingCoilName, errFlag);
50715078 if (errFlag) {
@@ -5225,7 +5232,7 @@ namespace UnitarySystems {
52255232 CoolingCoilInletNode = thisCoolCoil.AirInletNodeNum;
52265233 CoolingCoilOutletNode = thisCoolCoil.AirOutletNodeNum;
52275234 this->m_CondenserNodeNum = thisCoolCoil.CondenserInletNodeNum;
5228- this->m_coolingCoilAvailSched = Sched::GetScheduleAlwaysOn(state) ;
5235+ this->m_coolingCoilAvailSched = thisCoolCoil.availSched ;
52295236 this->m_NumOfSpeedCooling = thisCoolCoil.NumOfSpeeds;
52305237 if (this->m_NumOfSpeedCooling > 1) {
52315238 this->m_MultiOrVarSpeedCoolCoil = true;
@@ -5340,7 +5347,7 @@ namespace UnitarySystems {
53405347 errFlag = false;
53415348 } else {
53425349 auto const &thisCoolCoil = state.dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(this->m_CoolingCoilIndex);
5343- this->m_coolingCoilAvailSched = Sched::GetScheduleAlwaysOn(state) ;
5350+ this->m_coolingCoilAvailSched = thisCoolCoil.availSched ;
53445351 this->m_DesignCoolingCapacity = thisCoolCoil.RatedCapCoolTotal;
53455352
53465353 // this isn't likely to work on getInput calls but is what happened before
@@ -5390,7 +5397,7 @@ namespace UnitarySystems {
53905397 errFlag = false;
53915398 } else {
53925399 auto const &thisCoolCoil = state.dataWaterToAirHeatPump->WatertoAirHP(this->m_CoolingCoilIndex);
5393- this->m_coolingCoilAvailSched = Sched::GetScheduleAlwaysOn(state) ;
5400+ this->m_coolingCoilAvailSched = thisCoolCoil.availSched ;
53945401 this->m_DesignCoolingCapacity = thisCoolCoil.CoolingCapacity;
53955402 CoolingCoilInletNode = thisCoolCoil.AirInletNodeNum;
53965403 CoolingCoilOutletNode = thisCoolCoil.AirOutletNodeNum;
@@ -5445,7 +5452,7 @@ namespace UnitarySystems {
54455452 errFlag = false;
54465453 } else {
54475454 auto const &thisCoolCoil = state.dataPackagedThermalStorageCoil->TESCoil(this->m_CoolingCoilIndex);
5448- this->m_coolingCoilAvailSched = Sched::GetScheduleAlwaysOn(state) ;
5455+ this->m_coolingCoilAvailSched = thisCoolCoil.availSched ;
54495456 this->m_MaxCoolAirVolFlow = thisCoolCoil.RatedEvapAirVolFlowRate;
54505457 if (thisCoolCoil.CoolingOnlyModeIsAvailable) {
54515458 this->m_DesignCoolingCapacity = thisCoolCoil.CoolingOnlyRatedTotCap;
0 commit comments