Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AirLoopHVACUnitarySystem set Method During XXX Operation - option #4905

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,34 @@ namespace energyplus {
unitarySystem.setString(AirLoopHVAC_UnitarySystemFields::CoolingCoilObjectType, _coolingCoil->iddObject().name());
unitarySystem.setString(AirLoopHVAC_UnitarySystemFields::CoolingCoilName, _coolingCoil->name().get());
}

// Supply Air Flow Rate Method During Cooling Operation
unitarySystem.setString(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRateMethod,
modelObject.supplyAirFlowRateMethodDuringCoolingOperation());

// Supply Air Flow Rate During Cooling Operation
if (modelObject.isSupplyAirFlowRateDuringCoolingOperationAutosized()) {
unitarySystem.setString(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRate, "Autosize");
} else if (auto val_ = modelObject.supplyAirFlowRateDuringCoolingOperation()) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRate, val_.get());
}

// Supply Air Flow Rate Per Floor Area During Cooling Operation
if (auto val_ = modelObject.supplyAirFlowRatePerFloorAreaDuringCoolingOperation()) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRatePerFloorArea, val_.get());
}

// Fraction of Autosized Design Cooling Supply Air Flow Rate
if (auto val_ = modelObject.fractionofAutosizedDesignCoolingSupplyAirFlowRate()) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingFractionofAutosizedCoolingSupplyAirFlowRate, val_.get());
}

// Design Supply Air Flow Rate Per Unit of Capacity During Cooling Operation
if (auto val_ = modelObject.designSupplyAirFlowRatePerUnitofCapacityDuringCoolingOperation()) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRatePerUnitofCapacity, val_.get());
}
} else {
unitarySystem.setString(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRateMethod, "None");
}

// Use DOAS DX Cooling Coil
Expand Down Expand Up @@ -272,37 +300,6 @@ namespace energyplus {
}
}

// Supply Air Flow Rate Method During Cooling Operation
s = modelObject.supplyAirFlowRateMethodDuringCoolingOperation();
if (s) {
unitarySystem.setString(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRateMethod, s.get());
}

// Supply Air Flow Rate During Cooling Operation
if (modelObject.isSupplyAirFlowRateDuringCoolingOperationAutosized()) {
unitarySystem.setString(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRate, "Autosize");
} else if ((d = modelObject.supplyAirFlowRateDuringCoolingOperation())) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRate, d.get());
}

// Supply Air Flow Rate Per Floor Area During Cooling Operation
d = modelObject.supplyAirFlowRatePerFloorAreaDuringCoolingOperation();
if (d) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRatePerFloorArea, d.get());
}

// Fraction of Autosized Design Cooling Supply Air Flow Rate
d = modelObject.fractionofAutosizedDesignCoolingSupplyAirFlowRate();
if (d) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingFractionofAutosizedCoolingSupplyAirFlowRate, d.get());
}

// Design Supply Air Flow Rate Per Unit of Capacity During Cooling Operation
d = modelObject.designSupplyAirFlowRatePerUnitofCapacityDuringCoolingOperation();
if (d) {
unitarySystem.setDouble(AirLoopHVAC_UnitarySystemFields::CoolingSupplyAirFlowRatePerUnitofCapacity, d.get());
}

// Supply Air Flow Rate Method During Heating Operation
s = modelObject.supplyAirFlowRateMethodDuringHeatingOperation();
if (s) {
Expand Down
Loading