lib/openstudio-standards/standards/Standards.HeatExchangerSensLat.rb in openstudio-standards-0.1.15 vs lib/openstudio-standards/standards/Standards.HeatExchangerSensLat.rb in openstudio-standards-0.2.0.rc1
- old
+ new
@@ -1,22 +1,33 @@
-# Reopen the OpenStudio class to add methods to apply standards to this object
-class OpenStudio::Model::HeatExchangerAirToAirSensibleAndLatent
+class Standard
+ # @!group HeatExchangerSensLat
+
# Sets the minimum effectiveness of the heat exchanger per
# the standard.
- def apply_efficiency(template)
- # Assumed to be sensible and latent at all flow
- min_effct = 0.5
+ def heat_exchanger_air_to_air_sensible_and_latent_apply_efficiency(heat_exchanger_air_to_air_sensible_and_latent)
+ # Assumed to be sensible and latent at all flow
+ min_effct = heat_exchanger_air_to_air_sensible_and_latent_minimum_efficiency(heat_exchanger_air_to_air_sensible_and_latent)
- setSensibleEffectivenessat100HeatingAirFlow(min_effct)
- setLatentEffectivenessat100HeatingAirFlow(min_effct)
- setSensibleEffectivenessat75HeatingAirFlow(min_effct)
- setLatentEffectivenessat75HeatingAirFlow(min_effct)
- setSensibleEffectivenessat100CoolingAirFlow(min_effct)
- setLatentEffectivenessat100CoolingAirFlow(min_effct)
- setSensibleEffectivenessat75CoolingAirFlow(min_effct)
- setLatentEffectivenessat75CoolingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat100HeatingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat100HeatingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat75HeatingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat75HeatingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat100CoolingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat100CoolingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setSensibleEffectivenessat75CoolingAirFlow(min_effct)
+ heat_exchanger_air_to_air_sensible_and_latent.setLatentEffectivenessat75CoolingAirFlow(min_effct)
- OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.HeatExchangerAirToAirSensibleAndLatent', "For #{name}: Set sensible and latent effectiveness to #{(min_effct * 100).round}%.")
+ OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.HeatExchangerAirToAirSensibleAndLatent', "For #{heat_exchanger_air_to_air_sensible_and_latent.name}: Set sensible and latent effectiveness to #{(min_effct * 100).round}%.")
return true
+ end
+
+ # Defines the minimum sensible and latent effectiveness of
+ # the heat exchanger. Assumed to apply to sensible and latent
+ # effectiveness at all flow rates.
+ #
+ # @param heat_exchanger_air_to_air_sensible_and_latent [OpenStudio::Model::HeatExchangerAirToAirSensibleAndLatent] the heat exchanger
+ def heat_exchanger_air_to_air_sensible_and_latent_minimum_efficiency(heat_exchanger_air_to_air_sensible_and_latent)
+ min_effct = 0.5
+ return min_effct
end
end