Skip to content

Commit

Permalink
Use historial HX AirToAirSensibleAndLatent effectiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed May 6, 2024
1 parent 0074d7c commit 9226f02
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions model/simulationtests/autosize_hvac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ def curve_quadratic(model, c_1constant, c_2x, c_3xPOW2, minx, maxx, miny, maxy)

# OA equipment
erv = OpenStudio::Model::HeatExchangerAirToAirSensibleAndLatent.new(model)
if Gem::Version.new(OpenStudio.openStudioVersion) >= Gem::Version.new('3.8.0')
erv.assignHistoricalEffectivenessCurves
end
erv.addToNode(oa_system.outboardOANode.get)
spm_oa_pretreat = OpenStudio::Model::SetpointManagerOutdoorAirPretreat.new(model)
spm_oa_pretreat.setMinimumSetpointTemperature(-99.0)
Expand Down
4 changes: 3 additions & 1 deletion model/simulationtests/coilsystem_waterhx.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@
plant.addDemandBranchForComponent(water_coil)
coil.remove()

hx = coil_system.heatExchanger()
hx = coil_system.heatExchanger().to_HeatExchangerAirToAirSensibleAndLatent().get()
hx.setName("CoilSystemWaterHX HX")
if openstudio.VersionString(openstudio.openStudioVersion()) >= openstudio.VersionString("3.8.0"):
hx.assignHistoricalEffectivenessCurves()

# Rename some nodes and such, for ease of debugging
airloop.supplyInletNode().setName("#{airloop.name()} Supply Inlet Node")
Expand Down
5 changes: 4 additions & 1 deletion model/simulationtests/coilsystem_waterhx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@
plant.addDemandBranchForComponent(water_coil)
coil.remove

hx = coil_system.heatExchanger
hx = coil_system.heatExchanger.to_HeatExchangerAirToAirSensibleAndLatent.get
hx.setName('CoilSystemWaterHX HX')
if Gem::Version.new(OpenStudio.openStudioVersion) >= Gem::Version.new('3.8.0')
hx.assignHistoricalEffectivenessCurves
end

# Rename some nodes and such, for ease of debugging
airloop.supplyInletNode.setName("#{airloop.name} Supply Inlet Node")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@

# Equipment
heatexchanger_airtoair_sensibleandlatent = openstudio.model.HeatExchangerAirToAirSensibleAndLatent(model)
if openstudio.VersionString(openstudio.openStudioVersion()) >= openstudio.VersionString("3.8.0"):
heatexchanger_airtoair_sensibleandlatent.assignHistoricalEffectivenessCurves()
fan = openstudio.model.FanSystemModel(model)
heatexchanger_airtoair_sensibleandlatent.addToNode(oas.outboardOANode().get())
fan.addToNode(oas.outboardOANode().get())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@

# Equipment
heatexchanger_airtoair_sensibleandlatent = OpenStudio::Model::HeatExchangerAirToAirSensibleAndLatent.new(model)
if Gem::Version.new(OpenStudio.openStudioVersion) >= Gem::Version.new('3.8.0')
heatexchanger_airtoair_sensibleandlatent.assignHistoricalEffectivenessCurves
end
fan = OpenStudio::Model::FanSystemModel.new(model)
heatexchanger_airtoair_sensibleandlatent.addToNode(oas.outboardOANode.get)
fan.addToNode(oas.outboardOANode.get)
Expand Down
2 changes: 2 additions & 0 deletions model/simulationtests/fan_systemmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@
exhaustFan = openstudio.model.FanSystemModel(model)

heatExchanger = openstudio.model.HeatExchangerAirToAirSensibleAndLatent(model)
if openstudio.VersionString(openstudio.openStudioVersion()) >= openstudio.VersionString("3.8.0"):
heatExchanger.assignHistoricalEffectivenessCurves()
heatExchanger.setSupplyAirOutletTemperatureControl(False)

zoneHVACEnergyRecoveryVentilator = openstudio.model.ZoneHVACEnergyRecoveryVentilator(
Expand Down
3 changes: 3 additions & 0 deletions model/simulationtests/fan_systemmodel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@
exhaustFan = OpenStudio::Model::FanSystemModel.new(model)

heatExchanger = OpenStudio::Model::HeatExchangerAirToAirSensibleAndLatent.new(model)
if Gem::Version.new(OpenStudio.openStudioVersion) >= Gem::Version.new('3.8.0')
heatExchanger.assignHistoricalEffectivenessCurves
end
heatExchanger.setSupplyAirOutletTemperatureControl(false)

zoneHVACEnergyRecoveryVentilator = OpenStudio::Model::ZoneHVACEnergyRecoveryVentilator.new(model, heatExchanger, supplyFan, exhaustFan)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
oa_node = s.airLoopHVACOutdoorAirSystem().get().outboardOANode().get()

hx = openstudio.model.HeatExchangerAirToAirSensibleAndLatent(model)
if openstudio.VersionString(openstudio.openStudioVersion()) >= openstudio.VersionString("3.8.0"):
hx.assignHistoricalEffectivenessCurves()

hx.addToNode(oa_node)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
oa_node = s.airLoopHVACOutdoorAirSystem.get.outboardOANode.get

hx = OpenStudio::Model::HeatExchangerAirToAirSensibleAndLatent.new(model)
if Gem::Version.new(OpenStudio.openStudioVersion) >= Gem::Version.new('3.8.0')
hx.assignHistoricalEffectivenessCurves
end

hx.addToNode(oa_node)

Expand Down

0 comments on commit 9226f02

Please sign in to comment.