MCPcopy Create free account
hub / github.com/NatLabRockies/EnergyPlus / processInputSpec

Method processInputSpec

src/EnergyPlus/UnitarySystem.cc:3700–7312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3698 } // namespace UnitarySystems
3699
3700 void UnitarySys::processInputSpec(EnergyPlusData &state,
3701 const UnitarySysInputSpec &input_data,
3702 int sysNum,
3703 bool &errorsFound,
3704 bool const ZoneEquipment,
3705 int const ZoneOAUnitNum)
3706 {
3707 static constexpr std::string_view routineName = "UnitarySys::processInputSpec";
3708
3709 using namespace OutputReportPredefined;
3710
3711 static constexpr std::string_view unitarySysHeatPumpPerformanceObjectType("UnitarySystemPerformance:Multispeed");
3712
3713 std::string const &cCurrentModuleObject = input_data.system_type;
3714 Node::ConnectionObjectType objType =
3715 static_cast<Node::ConnectionObjectType>(getEnumValue(Node::ConnectionObjectTypeNamesUC, Util::makeUPPER(input_data.system_type)));
3716 std::string const &thisObjectName = input_data.name;
3717
3718 ErrorObjectHeader eoh{routineName, cCurrentModuleObject, thisObjectName};
3719
3720 this->Name = Util::makeUPPER(thisObjectName);
3721 sysNum = getUnitarySystemIndex(state, thisObjectName);
3722 this->m_UnitarySysNum = sysNum;
3723
3724 if (ZoneEquipment) {
3725 this->m_IsZoneEquipment = true;
3726 }
3727 if (state.dataUnitarySystems->getInputOnceFlag) {
3728 this->AirInNode = Node::GetOnlySingleNode(state,
3729 input_data.air_inlet_node_name,
3730 errorsFound,
3731 objType,
3732 thisObjectName,
3733 Node::FluidType::Air,
3734 Node::ConnectionType::Inlet,
3735 Node::CompFluidStream::Primary,
3736 Node::ObjectIsParent);
3737 } else {
3738 this->AirInNode = Util::FindItemInList(input_data.air_inlet_node_name, state.dataLoopNodes->NodeID);
3739 }
3740
3741 if (state.dataUnitarySystems->getInputOnceFlag) {
3742 this->AirOutNode = Node::GetOnlySingleNode(state,
3743 input_data.air_outlet_node_name,
3744 errorsFound,
3745 objType,
3746 thisObjectName,
3747 Node::FluidType::Air,
3748 Node::ConnectionType::Outlet,
3749 Node::CompFluidStream::Primary,
3750 Node::ObjectIsParent);
3751 } else {
3752 this->AirOutNode = Util::FindItemInList(input_data.air_outlet_node_name, state.dataLoopNodes->NodeID);
3753 }
3754
3755 // need to read in all information needed to SetupOutputVariable in setupAllOutputVars
3756 // as soon as all systems are read in, regardless if all information is available, reports will be set up.
3757 // make sure we have all the information needed to process reports (see IF blocks in setupAllOutputVars).

Callers 5

getDXCoilSystemDataMethod · 0.80
TEST_FFunction · 0.80

Calls 15

setSystemParamsMethod · 0.95
getEnumValueFunction · 0.85
makeUPPERFunction · 0.85
getUnitarySystemIndexFunction · 0.85
GetOnlySingleNodeFunction · 0.85
getDesignSpecMSHPIndexFunction · 0.85
SameStringFunction · 0.85
GetHeatingCoilTypeNumFunction · 0.85
GetCoilTypeNumFunction · 0.85
GetCoilGroupTypeNumFunction · 0.85
ShowFatalErrorFunction · 0.85
formatFunction · 0.85

Tested by

no test coverage detected