MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / addSystemType4

Function addSystemType4

src/model/HVACTemplates.cpp:305–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 Loop addSystemType4(Model& model) {
306 Model tempModel;
307
308 Schedule _alwaysOnSchedule = model.alwaysOnDiscreteSchedule();
309
310 AirLoopHVAC airLoopHVAC(model);
311 airLoopHVAC.setName("Packaged Rooftop Heat Pump");
312 // when an airloophvac is contructed, its constructor automatically creates a sizing:system object
313 // the default sizing:system contstructor makes a system:sizing object appropriate for a multizone VAV system
314 // this systems is a constant volume system with no VAV terminals, and needs different default settings
315
316 // get the sizing:system object associated with the airloophvac
317 SizingSystem sizingSystem = airLoopHVAC.sizingSystem();
318
319 //set the default parameters correctly for a constant volume system with no VAV terminals
320 sizingSystem.setTypeofLoadtoSizeOn("Sensible");
321 sizingSystem.autosizeDesignOutdoorAirFlowRate();
322 sizingSystem.setCentralHeatingMaximumSystemAirFlowRatio(1.0);
323 sizingSystem.setPreheatDesignTemperature(7.0);
324 sizingSystem.setPreheatDesignHumidityRatio(0.008);
325 sizingSystem.setPrecoolDesignTemperature(12.8);
326 sizingSystem.setPrecoolDesignHumidityRatio(0.008);
327 sizingSystem.setCentralCoolingDesignSupplyAirTemperature(12.8);
328 sizingSystem.setCentralHeatingDesignSupplyAirTemperature(40.0);
329 sizingSystem.setSizingOption("NonCoincident");
330 sizingSystem.setAllOutdoorAirinCooling(false);
331 sizingSystem.setAllOutdoorAirinHeating(false);
332 sizingSystem.setCentralCoolingDesignSupplyAirHumidityRatio(0.0085);
333 sizingSystem.setCentralHeatingDesignSupplyAirHumidityRatio(0.0080);
334 sizingSystem.setCoolingDesignAirFlowMethod("DesignDay");
335 sizingSystem.setCoolingDesignAirFlowRate(0.0);
336 sizingSystem.setHeatingDesignAirFlowMethod("DesignDay");
337 sizingSystem.setHeatingDesignAirFlowRate(0.0);
338 sizingSystem.setSystemOutdoorAirMethod("ZoneSum");
339
340 FanConstantVolume supplyFan(model, _alwaysOnSchedule);
341 supplyFan.setPressureRise(500);
342
343 CoilCoolingDXSingleSpeed coolingCoil = CoilCoolingDXSingleSpeed(model);
344
345 CoilHeatingDXSingleSpeed heatingCoil(model);
346
347 CoilHeatingElectric coilHeatingElectric = CoilHeatingElectric(model);
348
349 ControllerOutdoorAir controllerOutdoorAir = ControllerOutdoorAir(model);
350
351 AirLoopHVACOutdoorAirSystem outdoorAirSystem = AirLoopHVACOutdoorAirSystem(model, controllerOutdoorAir);
352
353 Node supplyOutletNode = airLoopHVAC.supplyOutletNode();
354 outdoorAirSystem.addToNode(supplyOutletNode);
355 coolingCoil.addToNode(supplyOutletNode);
356 heatingCoil.addToNode(supplyOutletNode);
357 coilHeatingElectric.addToNode(supplyOutletNode);
358 supplyFan.addToNode(supplyOutletNode);
359
360 AirTerminalSingleDuctConstantVolumeNoReheat terminal(model, _alwaysOnSchedule);
361
362 airLoopHVAC.addBranchForHVACComponent(terminal);

Callers

nothing calls this directly

Tested by

no test coverage detected