airloop from scratch
OK, I am stumped. I am trying to write a measure that creates an air loop for a RTU challenge unit (Carrier WeatherExpert 50LCF...). This is a very high efficiency unit that DOE challenged manufacturers to design and build a few years ago. For this, I need to assign custom performance curves to a variable speed DX cooling coil and use a variable speed supply fan.
I can create the air loop HVAC via
air_loop_HVAC = OpenStudio::Model::AirLoopHVAC.new(model)
and assign a sizing system to it via
sizing_system = OpenStudio::Model::SizingSystem.new(model,air_loop_HVAC)
I can also create a cooling coil via
cooling_coil = OpenStudio::Model::CoilCoolingDXVariableSpeed.new(model)
a heating coil via
heating_coil = OpenStudio::Model::CoilHeatingElectric.new(model)
and a supply air fan via
supply_air_fan = OpenStudio::Model::FanVariableVolume.new(model)
I am not sure I am doing the outdoor air system controller and outdoor air system right via
outdoor_air_system_controller = OpenStudio::Model::ControllerOutdoorAir.new(model)
and
outdoor_air_system = OpenStudio::Model::AirLoopHVACOutdoorAirSystem.new(model,outdoor_air_system_controller)
But where I am stuck is how to assign the cooling coil, heating coil, supply air fan and outdoor air system to the air loop HVAC? For example, an AirLoopHVACUnitarySystem has a setCoolingCoil(), setHeatingCoil() and setSupplyFan() method, but the AirLoopHVAC I am using here does not!? How can I combine it all together in an AirLoopHVAC? And also add a setpoint manager to it in the end? All in a Ruby measure for OpenStudio, of course. Thanks.