Skip to content

Commit

Permalink
Fix fan in ft.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Jan 17, 2025
1 parent ea8aa9a commit 388a25c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ namespace energyplus {
IdfObject idfObject = createRegisterAndNameIdfObject(openstudio::IddObjectType::AirLoopHVAC_ExhaustSystem, modelObject);

// Fan Object Type: Required String
const std::string fanObjectType = modelObject.fanObjectType();
idfObject.setString(AirLoopHVAC_ExhaustSystemFields::FanObjectType, fanObjectType);

// Fan Name: Required Object
HVACComponent fan = modelObject.fan();
if (boost::optional<IdfObject> wo_ = translateAndMapModelObject(fan)) {
idfObject.setString(AirLoopHVAC_ExhaustSystemFields::FanObjectType, wo_->iddObject().name());
idfObject.setString(AirLoopHVAC_ExhaustSystemFields::FanName, wo_->nameString());
}

Expand Down

0 comments on commit 388a25c

Please sign in to comment.