Skip to content

Commit

Permalink
UpdateCoolingPanel mods
Browse files Browse the repository at this point in the history
OO changes to UpdateCoolingPanel.  No diffs in output for sample file.
  • Loading branch information
RKStrand committed Nov 14, 2017
1 parent af76cfe commit b4ce0dc
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/EnergyPlus/ChilledCeilingPanelSimple.cc
Expand Up @@ -1466,17 +1466,22 @@ namespace CoolingPanelSimple {
LastSysTimeElapsed( CoolingPanelNum ) = SysTimeElapsed;
LastTimeStepSys( CoolingPanelNum ) = TimeStepSys;

WaterInletNode = CoolingPanel( CoolingPanelNum ).WaterInletNode;
WaterOutletNode = CoolingPanel( CoolingPanelNum ).WaterOutletNode;
auto & ThisCP( CoolingPanel( CoolingPanelNum ) );

WaterInletNode = ThisCP.WaterInletNode;
WaterOutletNode = ThisCP.WaterOutletNode;

auto & ThisInNode( Node( WaterInletNode ) );
auto & ThisOutNode( Node( WaterOutletNode ) );

// Set the outlet water nodes for the panel
SafeCopyPlantNode( WaterInletNode, WaterOutletNode );
Node( WaterOutletNode ).Temp = CoolingPanel( CoolingPanelNum ).WaterOutletTemp;
Node( WaterOutletNode ).Enthalpy = CoolingPanel( CoolingPanelNum ).WaterOutletEnthalpy;
Node( WaterInletNode ).MassFlowRate = CoolingPanel( CoolingPanelNum ).WaterMassFlowRate;
Node( WaterOutletNode ).MassFlowRate = CoolingPanel( CoolingPanelNum ).WaterMassFlowRate;
Node( WaterInletNode ).MassFlowRateMax = CoolingPanel( CoolingPanelNum ).WaterMassFlowRateMax;
Node( WaterOutletNode ).MassFlowRateMax = CoolingPanel( CoolingPanelNum ).WaterMassFlowRateMax;
ThisOutNode.Temp = ThisCP.WaterOutletTemp;
ThisOutNode.Enthalpy = ThisCP.WaterOutletEnthalpy;
ThisInNode.MassFlowRate = ThisCP.WaterMassFlowRate;
ThisOutNode.MassFlowRate = ThisCP.WaterMassFlowRate;
ThisInNode.MassFlowRateMax = ThisCP.WaterMassFlowRateMax;
ThisOutNode.MassFlowRateMax = ThisCP.WaterMassFlowRateMax;

}

Expand Down

3 comments on commit b4ce0dc

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

150945455-Cooling-Panel-Mods (RKStrand) - i386-Windows-7-VisualStudio-14: Build Failed

Build Badge Test Badge

@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.

150945455-Cooling-Panel-Mods (RKStrand) - x86_64-MacOS-10.9-clang: Build Failed

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

150945455-Cooling-Panel-Mods (RKStrand) - Win64-Windows-7-VisualStudio-14: Build Failed

Build Badge Test Badge

Please sign in to comment.