fan_constant_volume_apply_prototype_fan_pressure_rise is checking whether the fan is inside a ZoneHVACComponent, or an airloophvac, or uses 0 otherwise.
A Fan inside a PIU is NEITHER. It nevertheless responds positively to containingHVACComponent
https://github.com/NREL/openstudio-standards/blob/4c2b381058050dfef65dc973fefa6ac65748696a/lib/openstudio-standards/prototypes/common/objects/Prototype.FanConstantVolume.rb#L31-L52
m = Model.new
fan = FanConstantVolume.new(m)
c = CoilHeatingElectric.new(m)
piu = AirTerminalSingleDuctParallelPIUReheat.new(m, m.alwaysOnDiscreteSchedule, fan, c)
raise if fan.containingZoneHVACComponent.is_initialized
raise unless fan.containingHVACComponent.is_initialized
Context:
- Found using create_typical_building_from_model measure from ComStock.