Skip to content

Commit

Permalink
get the model from objects
Browse files Browse the repository at this point in the history
  • Loading branch information
eringold committed May 17, 2024
1 parent 77cba4e commit bcf3722
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def heat_exchanger_air_to_air_sensible_and_latent_apply_effectiveness(heat_excha
heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat100HeatingAirFlow(full_htg_lat_eff)
heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat100CoolingAirFlow(full_cool_sens_eff)
heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat100CoolingAirFlow(full_cool_lat_eff)
if model.version < OpenStudio::VersionString.new('3.8.0')
if heat_exchanger_air_to_air_sensible_and_latent.model.version < OpenStudio::VersionString.new('3.8.0')
heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat75HeatingAirFlow(part_htg_sens_eff)
heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat75HeatingAirFlow(part_htg_lat_eff)
heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat75CoolingAirFlow(part_cool_sens_eff)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def air_loop_hvac_apply_energy_recovery_ventilator_efficiency(erv, erv_type: 'ER
erv.setLatentEffectivenessat100CoolingAirFlow(0.0)
erv.setSensibleEffectivenessat75HeatingAirFlow(0.887)
erv.setSensibleEffectivenessat75CoolingAirFlow(0.887)
if model.version < OpenStudio::VersionString.new('3.8.0')
if erv.model.version < OpenStudio::VersionString.new('3.8.0')
erv.setLatentEffectivenessat75HeatingAirFlow(0.0)
erv.setLatentEffectivenessat75CoolingAirFlow(0.0)
end
Expand All @@ -834,7 +834,7 @@ def air_loop_hvac_apply_energy_recovery_ventilator_efficiency(erv, erv_type: 'ER
erv.setSensibleEffectivenessat100CoolingAirFlow(0.75)
erv.setLatentEffectivenessat100CoolingAirFlow(0.0)
erv.setSensibleEffectivenessat75CoolingAirFlow(0.78)
if model.version < OpenStudio::VersionString.new('3.8.0')
if erv.model.version < OpenStudio::VersionString.new('3.8.0')
erv.setLatentEffectivenessat75HeatingAirFlow(0.0)
erv.setLatentEffectivenessat75CoolingAirFlow(0.0)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def heat_exchanger_air_to_air_sensible_and_latent_apply_effectiveness(heat_excha
heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat100HeatingAirFlow(erv_info['LatentEffectivenessat100HeatingAirFlow'])
heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat100CoolingAirFlow(erv_info['SensibleEffectivenessat100CoolingAirFlow'])
heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat100CoolingAirFlow(erv_info['LatentEffectivenessat100CoolingAirFlow'])
if model.version < OpenStudio::VersionString.new('3.8.0')
if heat_exchanger_air_to_air_sensible_and_latent.model.version < OpenStudio::VersionString.new('3.8.0')
heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat75HeatingAirFlow(erv_info['SensibleEffectivenessat75HeatingAirFlow'])
heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat75HeatingAirFlow(erv_info['LatentEffectivenessat75HeatingAirFlow'])
heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat75CoolingAirFlow(erv_info['SensibleEffectivenessat75CoolingAirFlow'])
Expand Down

0 comments on commit bcf3722

Please sign in to comment.