Skip to content

Commit

Permalink
Update DHS testfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dareumnam committed Jul 20, 2023
1 parent 1eb8432 commit 8dce206
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 41 deletions.
5 changes: 3 additions & 2 deletions src/EnergyPlus/PlantHeatExchangerFluidToFluid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,7 @@ void HeatExchangerStruct::calculateSteamToWaterHX(EnergyPlusData &state, Real64
Real64 MinCapRate = SupSideMdot * WaterLoopInletCp;
// The heat capacity rate of a fluid during a phase-change process must approach infinity since the temperature change is practically zero.
// Therefore, C_min/C_max = 0, and the noncondensing fluid (water) is the minimum fluid.
// TODO: Add reference

if (MinCapRate > 0.0) {
Real64 NTU = this->UA / MinCapRate;
Expand Down Expand Up @@ -2356,7 +2357,7 @@ void HeatExchangerStruct::calculateSteamToWaterHX(EnergyPlusData &state, Real64
0.0,
state.dataPlnt->PlantLoop(this->DemandSideLoop.loopNum).FluidIndex,
RoutineName);
Real64 SteamMdot = std::abs(this->HeatTransferRate / (LatentHeatSteam + CpWaterSubcool * this->DegOfSubcooling));
Real64 SteamMdot = std::abs(this->HeatTransferRate) / (LatentHeatSteam + CpWaterSubcool * this->DegOfSubcooling);

PlantUtilities::SetComponentFlowRate(
state, SteamMdot, this->DemandSideLoop.inletNodeNum, this->DemandSideLoop.outletNodeNum, this->DemandSideLoop);
Expand All @@ -2377,7 +2378,7 @@ void HeatExchangerStruct::calculateSteamToWaterHX(EnergyPlusData &state, Real64
state.dataLoopNodes->Node(this->DemandSideLoop.outletNodeNum).Temp = this->DemandSideLoop.OutletTemp;
state.dataLoopNodes->Node(this->SupplySideLoop.outletNodeNum).Temp = this->SupplySideLoop.OutletTemp;

this->HeatTransferEnergy = this->HeatTransferRate * state.dataHVACGlobal->TimeStepSysSec;
this->HeatTransferEnergy = this->HeatTransferRate * state.dataHVACGlobal->TimeStepSys * Constant::SecInHour;

if ((std::abs(this->HeatTransferRate) > DataHVACGlobals::SmallLoad) && (this->DemandSideLoop.InletMassFlowRate > 0.0) &&
(this->SupplySideLoop.InletMassFlowRate > 0.0)) {
Expand Down
3 changes: 2 additions & 1 deletion testfiles/SteamSystemAutoSize.idf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
!
! The building is oriented 30 degrees east of north.
!
! Floor Area: 463.6 m2 (5000 ft2)

! Floor Area: 463.6 m2 (5000 ft2)
! Number of Stories: 1
!
! Zone Description Details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
! DistrictHeatingSteam.idf
! Basic file description: 1 story building divided into 4 exterior and one interior conditioned zones and return plenum.
!
! Highlights: Steam Loop for Heating with a Steam Coil, Boiler, and Condensate Pump
! Highlights: Steam Loop for Heating with a Steam Coil, district steam heating, and Condensate Pump
!
! Simulation Location/Run: CHICAGO_IL_USA TMY2-94846, 2 design days, 2 run periods,
! Run Control executes the run periods using the weather file
Expand Down Expand Up @@ -84,10 +84,10 @@
! Central Air Handling Equipment: Yes
! System Equipment Autosize: Yes
! Purchased Cooling: None
! Purchased Heating: None
! Purchased Heating: DistrictHeating:Steam
! Coils: Coil:Cooling:Water, COIL:Steam:AirHeating
! Pumps: Pump:VariableSpeed
! Boilers: DistrictHeating:Steam
! Boilers: None
! Chillers: Chiller:Electric
!
! Results:
Expand All @@ -98,7 +98,7 @@
! Environmental Emissions: None
! Utility Tariffs: None

Version,22.2;
Version,23.2;

Building,
Building, !- Name
Expand Down Expand Up @@ -1804,67 +1804,67 @@

People,
SPACE1-1 People 1, !- Name
SPACE1-1, !- Zone or ZoneList Name
SPACE1-1, !- Zone or ZoneList or Space or SpaceList Name
OCCUPY-1, !- Number of People Schedule Name
people, !- Number of People Calculation Method
11, !- Number of People
, !- People per Zone Floor Area {person/m2}
, !- Zone Floor Area per Person {m2/person}
, !- People per Floor Area {person/m2}
, !- Floor Area per Person {m2/person}
0.3, !- Fraction Radiant
, !- Sensible Heat Fraction
ActSchd; !- Activity Level Schedule Name

People,
SPACE2-1 People 1, !- Name
SPACE2-1, !- Zone or ZoneList Name
SPACE2-1, !- Zone or ZoneList or Space or SpaceList Name
OCCUPY-1, !- Number of People Schedule Name
people, !- Number of People Calculation Method
5, !- Number of People
, !- People per Zone Floor Area {person/m2}
, !- Zone Floor Area per Person {m2/person}
, !- People per Floor Area {person/m2}
, !- Floor Area per Person {m2/person}
0.3, !- Fraction Radiant
, !- Sensible Heat Fraction
ActSchd; !- Activity Level Schedule Name

People,
SPACE3-1 People 1, !- Name
SPACE3-1, !- Zone or ZoneList Name
SPACE3-1, !- Zone or ZoneList or Space or SpaceList Name
OCCUPY-1, !- Number of People Schedule Name
people, !- Number of People Calculation Method
11, !- Number of People
, !- People per Zone Floor Area {person/m2}
, !- Zone Floor Area per Person {m2/person}
, !- People per Floor Area {person/m2}
, !- Floor Area per Person {m2/person}
0.3, !- Fraction Radiant
, !- Sensible Heat Fraction
ActSchd; !- Activity Level Schedule Name

People,
SPACE4-1 People 1, !- Name
SPACE4-1, !- Zone or ZoneList Name
SPACE4-1, !- Zone or ZoneList or Space or SpaceList Name
OCCUPY-1, !- Number of People Schedule Name
people, !- Number of People Calculation Method
5, !- Number of People
, !- People per Zone Floor Area {person/m2}
, !- Zone Floor Area per Person {m2/person}
, !- People per Floor Area {person/m2}
, !- Floor Area per Person {m2/person}
0.3, !- Fraction Radiant
, !- Sensible Heat Fraction
ActSchd; !- Activity Level Schedule Name

People,
SPACE5-1 People 1, !- Name
SPACE5-1, !- Zone or ZoneList Name
SPACE5-1, !- Zone or ZoneList or Space or SpaceList Name
OCCUPY-1, !- Number of People Schedule Name
people, !- Number of People Calculation Method
20, !- Number of People
, !- People per Zone Floor Area {person/m2}
, !- Zone Floor Area per Person {m2/person}
, !- People per Floor Area {person/m2}
, !- Floor Area per Person {m2/person}
0.3, !- Fraction Radiant
, !- Sensible Heat Fraction
ActSchd; !- Activity Level Schedule Name

Lights,
SPACE1-1 Lights 1, !- Name
SPACE1-1, !- Zone or ZoneList Name
SPACE1-1, !- Zone or ZoneList or Space or SpaceList Name
LIGHTS-1, !- Schedule Name
LightingLevel, !- Design Level Calculation Method
1584, !- Lighting Level {W}
Expand All @@ -1878,7 +1878,7 @@

Lights,
SPACE2-1 Lights 1, !- Name
SPACE2-1, !- Zone or ZoneList Name
SPACE2-1, !- Zone or ZoneList or Space or SpaceList Name
LIGHTS-1, !- Schedule Name
LightingLevel, !- Design Level Calculation Method
684, !- Lighting Level {W}
Expand All @@ -1892,7 +1892,7 @@

Lights,
SPACE3-1 Lights 1, !- Name
SPACE3-1, !- Zone or ZoneList Name
SPACE3-1, !- Zone or ZoneList or Space or SpaceList Name
LIGHTS-1, !- Schedule Name
LightingLevel, !- Design Level Calculation Method
1584, !- Lighting Level {W}
Expand All @@ -1906,7 +1906,7 @@

Lights,
SPACE4-1 Lights 1, !- Name
SPACE4-1, !- Zone or ZoneList Name
SPACE4-1, !- Zone or ZoneList or Space or SpaceList Name
LIGHTS-1, !- Schedule Name
LightingLevel, !- Design Level Calculation Method
684, !- Lighting Level {W}
Expand All @@ -1920,7 +1920,7 @@

Lights,
SPACE5-1 Lights 1, !- Name
SPACE5-1, !- Zone or ZoneList Name
SPACE5-1, !- Zone or ZoneList or Space or SpaceList Name
LIGHTS-1, !- Schedule Name
LightingLevel, !- Design Level Calculation Method
2964, !- Lighting Level {W}
Expand All @@ -1934,7 +1934,7 @@

ElectricEquipment,
SPACE1-1 ElecEq 1, !- Name
SPACE1-1, !- Zone or ZoneList Name
SPACE1-1, !- Zone or ZoneList or Space or SpaceList Name
EQUIP-1, !- Schedule Name
EquipmentLevel, !- Design Level Calculation Method
1056, !- Design Level {W}
Expand All @@ -1946,7 +1946,7 @@

ElectricEquipment,
SPACE2-1 ElecEq 1, !- Name
SPACE2-1, !- Zone or ZoneList Name
SPACE2-1, !- Zone or ZoneList or Space or SpaceList Name
EQUIP-1, !- Schedule Name
EquipmentLevel, !- Design Level Calculation Method
456, !- Design Level {W}
Expand All @@ -1958,7 +1958,7 @@

ElectricEquipment,
SPACE3-1 ElecEq 1, !- Name
SPACE3-1, !- Zone or ZoneList Name
SPACE3-1, !- Zone or ZoneList or Space or SpaceList Name
EQUIP-1, !- Schedule Name
EquipmentLevel, !- Design Level Calculation Method
1056, !- Design Level {W}
Expand All @@ -1970,7 +1970,7 @@

ElectricEquipment,
SPACE4-1 ElecEq 1, !- Name
SPACE4-1, !- Zone or ZoneList Name
SPACE4-1, !- Zone or ZoneList or Space or SpaceList Name
EQUIP-1, !- Schedule Name
EquipmentLevel, !- Design Level Calculation Method
456, !- Design Level {W}
Expand All @@ -1982,7 +1982,7 @@

ElectricEquipment,
SPACE5-1 ElecEq 1, !- Name
SPACE5-1, !- Zone or ZoneList Name
SPACE5-1, !- Zone or ZoneList or Space or SpaceList Name
EQUIP-1, !- Schedule Name
EquipmentLevel, !- Design Level Calculation Method
1976, !- Design Level {W}
Expand All @@ -1994,7 +1994,7 @@

ZoneInfiltration:DesignFlowRate,
SPACE1-1 Infil 1, !- Name
SPACE1-1, !- Zone or ZoneList Name
SPACE1-1, !- Zone or ZoneList or Space or SpaceList Name
INFIL-SCH, !- Schedule Name
flow/zone, !- Design Flow Rate Calculation Method
0.0167, !- Design Flow Rate {m3/s}
Expand All @@ -2008,7 +2008,7 @@

ZoneInfiltration:DesignFlowRate,
SPACE2-1 Infil 1, !- Name
SPACE2-1, !- Zone or ZoneList Name
SPACE2-1, !- Zone or ZoneList or Space or SpaceList Name
INFIL-SCH, !- Schedule Name
flow/zone, !- Design Flow Rate Calculation Method
0.00717, !- Design Flow Rate {m3/s}
Expand All @@ -2022,7 +2022,7 @@

ZoneInfiltration:DesignFlowRate,
SPACE3-1 Infil 1, !- Name
SPACE3-1, !- Zone or ZoneList Name
SPACE3-1, !- Zone or ZoneList or Space or SpaceList Name
INFIL-SCH, !- Schedule Name
flow/zone, !- Design Flow Rate Calculation Method
0.0167, !- Design Flow Rate {m3/s}
Expand All @@ -2036,7 +2036,7 @@

ZoneInfiltration:DesignFlowRate,
SPACE4-1 Infil 1, !- Name
SPACE4-1, !- Zone or ZoneList Name
SPACE4-1, !- Zone or ZoneList or Space or SpaceList Name
INFIL-SCH, !- Schedule Name
flow/zone, !- Design Flow Rate Calculation Method
0.00717, !- Design Flow Rate {m3/s}
Expand All @@ -2050,7 +2050,7 @@

ZoneInfiltration:DesignFlowRate,
SPACE5-1 Infil 1, !- Name
SPACE5-1, !- Zone or ZoneList Name
SPACE5-1, !- Zone or ZoneList or Space or SpaceList Name
INFIL-SCH, !- Schedule Name
flow/zone, !- Design Flow Rate Calculation Method
0.031089, !- Design Flow Rate {m3/s}
Expand Down Expand Up @@ -2299,7 +2299,7 @@
Sizing:Plant,
DistrictHeating Steam Loop, !- Plant or Condenser Loop Name
Steam, !- Loop Type
110, !- Design Loop Exit Temperature {C}
110, !- Design Loop Exit Temperature {C}
25; !- Loop Design Temperature Difference {deltaC}

NodeList,
Expand Down Expand Up @@ -2696,8 +2696,8 @@

PlantEquipmentList,
DistrictHeating Steam heating plant, !- Name
DistrictHeating:Steam, !- Equipment 1 Object Type
DistrictHeating Steam; !- Equipment 1 Name
DistrictHeating:Steam, !- Equipment 1 Object Type
DistrictHeating Steam; !- Equipment 1 Name

Connector:Splitter,
CHW Demand 1 ChW Splitter, !- Name
Expand Down Expand Up @@ -2786,7 +2786,7 @@
VAV SYS 1 OA System, !- Name
VAV SYS 1 OA System Controllers, !- Controller List Name
VAV SYS 1 OA System Equipment; !- Outdoor Air Equipment List Name
! VAV SYS 1 Availability Managers; !- Availability Manager List Name


OutdoorAir:NodeList,
VAV SYS 1 Outside Air Inlet; !- Node or NodeList Name 1
Expand Down

0 comments on commit 8dce206

Please sign in to comment.