Measures/m_11_example_11_performance_curve_result_override/measure.rb
# define the arguments that the user will input
define the arguments that the user will input
define the arguments that the user will input
def arguments(model)
    args = OpenStudio::Measure::OSArgumentVector.new
	verbose_info_statements = OpenStudio::Ruleset::OSArgument::makeBoolArgument("verbose_info_statements", false)
	verbose_info_statements.setDisplayName("Check to allow measure to generate verbose runner.registerInfo statements.")
	verbose_info_statements.setDefaultValue(false)
	args << verbose_info_statements
    dx_single_speed_clg_coils_handles = OpenStudio::StringVector.new
    dx_single_speed_clg_coils_display_names = OpenStudio::StringVector.new
    model.getZoneHVACPackagedTerminalHeatPumps.each do |zoneHVACPackagedTerminalHeatPump|
      dx_cooling_coil = zoneHVACPackagedTerminalHeatPump.coolingCoil.to_CoilCoolingDXSingleSpeed.get 
      dx_single_speed_clg_coils_handles << dx_cooling_coil.handle.to_s
      dx_single_speed_clg_coils_display_names << dx_cooling_coil.name.to_s
    end 
    building = model.getBuilding
    dx_single_speed_clg_coils_handles << building.handle.to_s
    dx_single_speed_clg_coils_display_names << '*All Single Speed DX Cooling Coils*'    
    coil_cooling_DX_single_speed_objects = OpenStudio::Ruleset::OSArgument::makeChoiceArgument("coil_cooling_DX_single_speed_objects", dx_single_speed_clg_coils_handles, dx_single_speed_clg_coils_display_names,true)
    coil_cooling_DX_single_speed_objects.setDisplayName("Choose a Single Speed DX Cooling Coil belonging to a PTHP object to apply CoolCapFT curve to.")
    coil_cooling_DX_single_speed_objects.setDefaultValue('*All Single Speed DX Cooling Coils*') 
    args << coil_cooling_DX_single_speed_objects
    oa_db_curve_threshold_temp = OpenStudio::Ruleset::OSArgument::makeDoubleArgument("oa_db_curve_threshold_temp",true)
    oa_db_curve_threshold_temp.setDisplayName("The Outdoor Dry Bulb Temp (Deg F) below which the 'CoolCapFT' curve will be enabled.")
    oa_db_curve_threshold_temp.setDefaultValue(87.8)
    args << oa_db_curve_threshold_temp
    c2_a = OpenStudio::Ruleset::OSArgument::makeDoubleArgument("c2_a",true)
    c2_a.setDisplayName("The value of a in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'.")
    c2_a.setDefaultValue(0.942567793) 
    args << c2_a
    c2_b = OpenStudio::Ruleset::OSArgument::makeDoubleArgument("c2_b",true)
    c2_b.setDisplayName("The value of b in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'.")
    c2_b.setDefaultValue(-0.009543347) 
    args << c2_b
    c2_c = OpenStudio::Ruleset::OSArgument::makeDoubleArgument("c2_c",true)
    c2_c.setDisplayName("The value of c in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'.")
    c2_c.setDefaultValue(0.000683770)
    args << c2_c
    c2_d = OpenStudio::Ruleset::OSArgument::makeDoubleArgument("c2_d",true)
    c2_d.setDisplayName("The value of d in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'.")
    c2_d.setDefaultValue(-0.011042676)
    args << c2_d
    c2_e = OpenStudio::Ruleset::OSArgument::makeDoubleArgument("c2_e",true)
    c2_e.setDisplayName("The value of e in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'.")
    c2_e.setDefaultValue(0.000005249)
    args << c2_e
    c2_f = OpenStudio::Ruleset::OSArgument::makeDoubleArgument("c2_f",true)
    c2_f.setDisplayName("The value of f in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'.")
    c2_f.setDefaultValue(-0.000009720)
    args << c2_f
    int_var_avail_dict_rep_chs = OpenStudio::StringVector.new
    int_var_avail_dict_rep_chs << 'None'
    int_var_avail_dict_rep_chs << 'NotByUniqueKeyNames'
    int_var_avail_dict_rep_chs << 'Verbose'
    internal_variable_availability_dictionary_reporting = OpenStudio::Measure::OSArgument.makeChoiceArgument('internal_variable_availability_dictionary_reporting', int_var_avail_dict_rep_chs, true)
    internal_variable_availability_dictionary_reporting.setDisplayName('Level of output reporting related to the EMS internal variables that are available.')
    internal_variable_availability_dictionary_reporting.setDefaultValue('None')
    args << internal_variable_availability_dictionary_reporting
    ems_runtime_language_debug_level_chs = OpenStudio::StringVector.new
    ems_runtime_language_debug_level_chs << 'None'
    ems_runtime_language_debug_level_chs << 'ErrorsOnly'
    ems_runtime_language_debug_level_chs << 'Verbose'
    ems_runtime_language_debug_output_level = OpenStudio::Measure::OSArgument.makeChoiceArgument('ems_runtime_language_debug_output_level', ems_runtime_language_debug_level_chs, true)
    ems_runtime_language_debug_output_level.setDisplayName('Level of output reporting related to the execution of EnergyPlus Runtime Language, written to .edd file.')
    ems_runtime_language_debug_output_level.setDefaultValue('None')
    args << ems_runtime_language_debug_output_level
    actuator_avail_dict_rep_chs = OpenStudio::StringVector.new
    actuator_avail_dict_rep_chs << 'None'
    actuator_avail_dict_rep_chs << 'NotByUniqueKeyNames'
    actuator_avail_dict_rep_chs << 'Verbose'
    actuator_availability_dictionary_reporting = OpenStudio::Measure::OSArgument.makeChoiceArgument('actuator_availability_dictionary_reporting', actuator_avail_dict_rep_chs, true)
    actuator_availability_dictionary_reporting.setDisplayName('Level of output reporting related to the EMS actuators that are available.')
    actuator_availability_dictionary_reporting.setDefaultValue('None')
    args << actuator_availability_dictionary_reporting
    return args
  end
def arguments ( model ) args = OpenStudio :: Measure :: OSArgumentVector . new verbose_info_statements = OpenStudio :: Ruleset :: OSArgument :: makeBoolArgument ( "verbose_info_statements" , false ) verbose_info_statements . setDisplayName ( "Check to allow measure to generate verbose runner.registerInfo statements." ) verbose_info_statements . setDefaultValue ( false ) args << verbose_info_statements dx_single_speed_clg_coils_handles = OpenStudio :: StringVector . new dx_single_speed_clg_coils_display_names = OpenStudio :: StringVector . new model . getZoneHVACPackagedTerminalHeatPumps . each do | zoneHVACPackagedTerminalHeatPump | dx_cooling_coil = zoneHVACPackagedTerminalHeatPump . coolingCoil . to_CoilCoolingDXSingleSpeed . get dx_single_speed_clg_coils_handles << dx_cooling_coil . handle . to_s dx_single_speed_clg_coils_display_names << dx_cooling_coil . name . to_s end building = model . getBuilding dx_single_speed_clg_coils_handles << building . handle . to_s dx_single_speed_clg_coils_display_names << '*All Single Speed DX Cooling Coils*' coil_cooling_DX_single_speed_objects = OpenStudio :: Ruleset :: OSArgument :: makeChoiceArgument ( "coil_cooling_DX_single_speed_objects" , dx_single_speed_clg_coils_handles , dx_single_speed_clg_coils_display_names , true ) coil_cooling_DX_single_speed_objects . setDisplayName ( "Choose a Single Speed DX Cooling Coil belonging to a PTHP object to apply CoolCapFT curve to." ) coil_cooling_DX_single_speed_objects . setDefaultValue ( '*All Single Speed DX Cooling Coils*' ) args << coil_cooling_DX_single_speed_objects oa_db_curve_threshold_temp = OpenStudio :: Ruleset :: OSArgument :: makeDoubleArgument ( "oa_db_curve_threshold_temp" , true ) oa_db_curve_threshold_temp . setDisplayName ( "The Outdoor Dry Bulb Temp (Deg F) below which the 'CoolCapFT' curve will be enabled." ) oa_db_curve_threshold_temp . setDefaultValue ( 87.8 ) args << oa_db_curve_threshold_temp c2_a = OpenStudio :: Ruleset :: OSArgument :: makeDoubleArgument ( "c2_a" , true ) c2_a . setDisplayName ( "The value of a in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'." ) c2_a . setDefaultValue ( 0.942567793 ) args << c2_a c2_b = OpenStudio :: Ruleset :: OSArgument :: makeDoubleArgument ( "c2_b" , true ) c2_b . setDisplayName ( "The value of b in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'." ) c2_b . setDefaultValue ( - 0.009543347 ) args << c2_b c2_c = OpenStudio :: Ruleset :: OSArgument :: makeDoubleArgument ( "c2_c" , true ) c2_c . setDisplayName ( "The value of c in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'." ) c2_c . setDefaultValue ( 0.000683770 ) args << c2_c c2_d = OpenStudio :: Ruleset :: OSArgument :: makeDoubleArgument ( "c2_d" , true ) c2_d . setDisplayName ( "The value of d in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'." ) c2_d . setDefaultValue ( - 0.011042676 ) args << c2_d c2_e = OpenStudio :: Ruleset :: OSArgument :: makeDoubleArgument ( "c2_e" , true ) c2_e . setDisplayName ( "The value of e in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'." ) c2_e . setDefaultValue ( 0.000005249 ) args << c2_e c2_f = OpenStudio :: Ruleset :: OSArgument :: makeDoubleArgument ( "c2_f" , true ) c2_f . setDisplayName ( "The value of f in curve 'a + b (Twb;i) + c (Twb;i) + d (Tc;i) + e (Tc;i) + f (Twb;i) (Tc;i)'." ) c2_f . setDefaultValue ( - 0.000009720 ) args << c2_f int_var_avail_dict_rep_chs = OpenStudio :: StringVector . new int_var_avail_dict_rep_chs << 'None' int_var_avail_dict_rep_chs << 'NotByUniqueKeyNames' int_var_avail_dict_rep_chs << 'Verbose' internal_variable_availability_dictionary_reporting = OpenStudio :: Measure :: OSArgument . makeChoiceArgument ( 'internal_variable_availability_dictionary_reporting' , int_var_avail_dict_rep_chs , true ) internal_variable_availability_dictionary_reporting . setDisplayName ( 'Level of output reporting related to the EMS internal variables that are available.' ) internal_variable_availability_dictionary_reporting . setDefaultValue ( 'None' ) args << internal_variable_availability_dictionary_reporting ems_runtime_language_debug_level_chs = OpenStudio :: StringVector . new ems_runtime_language_debug_level_chs << 'None' ems_runtime_language_debug_level_chs << 'ErrorsOnly' ems_runtime_language_debug_level_chs << 'Verbose' ems_runtime_language_debug_output_level = OpenStudio :: Measure :: OSArgument . makeChoiceArgument ( 'ems_runtime_language_debug_output_level' , ems_runtime_language_debug_level_chs , true ) ems_runtime_language_debug_output_level . setDisplayName ( 'Level of output reporting related to the execution of EnergyPlus Runtime Language, written to .edd file.' ) ems_runtime_language_debug_output_level . setDefaultValue ( 'None' ) args << ems_runtime_language_debug_output_level actuator_avail_dict_rep_chs = OpenStudio :: StringVector . new actuator_avail_dict_rep_chs << 'None' actuator_avail_dict_rep_chs << 'NotByUniqueKeyNames' actuator_avail_dict_rep_chs << 'Verbose' actuator_availability_dictionary_reporting = OpenStudio :: Measure :: OSArgument . makeChoiceArgument ( 'actuator_availability_dictionary_reporting' , actuator_avail_dict_rep_chs , true ) actuator_availability_dictionary_reporting . setDisplayName ( 'Level of output reporting related to the EMS actuators that are available.' ) actuator_availability_dictionary_reporting . setDefaultValue ( 'None' ) args << actuator_availability_dictionary_reporting return args end
define the arguments that the user will input
define the arguments that the user will input
# Add a check box for specifying verbose info statements # Choice List Argument for Qualifying DX Cooling Coil Object (should be a member of a PTHP zone equipment object)  # end loop through coil_cooling_DX_single_speed objects    # Make an argument for CoilCoolingDXSingleSpeeds objects #make an argument for the OA DB temp below which the capacity of the DX cooling coil changes # Double Precision Argument for C2A Replacement HPACCoolCapFT biquadratic curve attribute # Double Precision Argument for C2B Replacement HPACCoolCapFT biquadratic curve attribute # Double Precision Argument for C2C Replacement HPACCoolCapFT biquadratic curve attribute # Double Precision Argument for C2D Replacement HPACCoolCapFT biquadratic curve attribute # Double Precision Argument for C2E Replacement HPACCoolCapFT biquadratic curve attribute # Double Precision Argument for C2F Replacement HPACCoolCapFT biquadratic curve attribute # make a choice argument for setting EMS InternalVariableAvailabilityDictionaryReporting value # make a choice argument for setting EMSRuntimeLanguageDebugOutputLevel value # make a choice argument for setting EMS ActuatorAvailabilityDictionaryReportingvalue
model
<not_specific>