Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

It seems like you are trying to create ModelObjects using your IDF file values. You are not using the correct constructors to create ModelObjects for the schedule, or the cooling coil. Most likely the same is happening for the supply fan and your cooling coil.

As an example, for your cooling coil you would need to do:

  unless library_strings.getString(18).get.empty? then
    model_cooling_coil = OpenStudio::Model::CoilCoolingDXVariableRefrigerantFlow.new(model)
    model_cooling_coil.setName(library_strings.getString(11).get)
    # Most likely you would want to add more coil properties here
    model_vrf_indoor_unit.setCoolingCoil(model_cooling_coil)
  end

It seems like you are trying to create ModelObjects using your IDF file values. You are not using the correct constructors to create ModelObjects for the schedule, or the cooling coil. Most likely the same is happening for the supply fan and your cooling heating coil.

As an example, for your cooling coil you would need to do:

  unless library_strings.getString(18).get.empty? then
    model_cooling_coil = OpenStudio::Model::CoilCoolingDXVariableRefrigerantFlow.new(model)
    model_cooling_coil.setName(library_strings.getString(11).get)
    # Most likely you would want to add more coil properties here
    model_vrf_indoor_unit.setCoolingCoil(model_cooling_coil)
  end