Skip to content

Commit

Permalink
Fix #3426 : write fan:onoff nodes in ZoneHVACUnitHeater (+ add OS_ASS…
Browse files Browse the repository at this point in the history
…ERT inc ase new types are supported in the future)
  • Loading branch information
jmarrec committed Oct 6, 2021
1 parent fce86c6 commit 7bb8983
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "../../model/CoilHeatingWater.hpp"
#include "../../model/CoilHeatingWater_Impl.hpp"
#include <utilities/idd/ZoneHVAC_UnitHeater_FieldEnums.hxx>
#include <utilities/idd/Fan_OnOff_FieldEnums.hxx>
#include <utilities/idd/Fan_ConstantVolume_FieldEnums.hxx>
#include <utilities/idd/Fan_VariableVolume_FieldEnums.hxx>
#include <utilities/idd/Fan_SystemModel_FieldEnums.hxx>
Expand Down Expand Up @@ -145,6 +146,11 @@ namespace energyplus {
} else if (_supplyAirFan->iddObject().type() == IddObjectType::Fan_SystemModel) {
_supplyAirFan->setString(Fan_SystemModelFields::AirInletNodeName, *s);
_supplyAirFan->setString(Fan_SystemModelFields::AirOutletNodeName, fanOutletNodeName);
} else if (_supplyAirFan->iddObject().type() == IddObjectType::Fan_OnOff) {
_supplyAirFan->setString(Fan_OnOffFields::AirInletNodeName, *s);
_supplyAirFan->setString(Fan_OnOffFields::AirOutletNodeName, fanOutletNodeName);
} else {
OS_ASSERT(false); // We're missing a fan type!
}
}
}
Expand Down Expand Up @@ -201,6 +207,8 @@ namespace energyplus {
} else if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_Water) {
_heatingCoil->setString(Coil_Heating_WaterFields::AirInletNodeName, fanOutletNodeName);
_heatingCoil->setString(Coil_Heating_WaterFields::AirOutletNodeName, *s);
} else {
OS_ASSERT(false); // We're missing a coil type!
}
}
}
Expand Down

0 comments on commit 7bb8983

Please sign in to comment.