Skip to content

Commit

Permalink
WTT.hh rename TypeNum to WaterThermalTankType
Browse files Browse the repository at this point in the history
  • Loading branch information
jmythms committed Oct 9, 2021
1 parent 3719483 commit ed36c88
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 120 deletions.
4 changes: 2 additions & 2 deletions src/EnergyPlus/HeatBalFiniteDiffManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ namespace HeatBalFiniteDiffManager {

if (!state.dataIPShortCut->lAlphaFieldBlanks(1)) {
{
state.dataHeatBalFiniteDiffMgr->CondFDSchemeType =
static_cast<CondFDScheme>(getEnumerationValue(CondFDSchemeTypeNamesUC, UtilityRoutines::MakeUPPERCase(state.dataIPShortCut->cAlphaArgs(1))));
state.dataHeatBalFiniteDiffMgr->CondFDSchemeType = static_cast<CondFDScheme>(
getEnumerationValue(CondFDSchemeTypeNamesUC, UtilityRoutines::MakeUPPERCase(state.dataIPShortCut->cAlphaArgs(1))));
if (state.dataHeatBalFiniteDiffMgr->CondFDSchemeType == CondFDScheme::Unassigned) {
ShowSevereError(state,
cCurrentModuleObject + ": invalid " + state.dataIPShortCut->cAlphaFieldNames(1) +
Expand Down
5 changes: 3 additions & 2 deletions src/EnergyPlus/HeatBalanceAirManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,9 @@ void GetSimpleAirModelInputs(EnergyPlusData &state, bool &ErrorsFound) // IF err
}

{
state.dataHeatBal->ZoneAirBalance(Loop).BalanceMethod = static_cast<AirBalance>(getEnumerationValue(
DataHeatBalance::AirBalanceTypeNamesUC, UtilityRoutines::MakeUPPERCase(cAlphaArgs(3)))); // Air balance method type character input-->convert to enum
state.dataHeatBal->ZoneAirBalance(Loop).BalanceMethod = static_cast<AirBalance>(
getEnumerationValue(DataHeatBalance::AirBalanceTypeNamesUC,
UtilityRoutines::MakeUPPERCase(cAlphaArgs(3)))); // Air balance method type character input-->convert to enum
if (state.dataHeatBal->ZoneAirBalance(Loop).BalanceMethod == AirBalance::Unassigned) {
state.dataHeatBal->ZoneAirBalance(Loop).BalanceMethod = AirBalance::None;
ShowWarningError(state,
Expand Down
3 changes: 2 additions & 1 deletion src/EnergyPlus/Plant/PlantManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,8 @@ void GetPlantLoopData(EnergyPlusData &state)
if (NumAlphas >= PressSimAlphaIndex) {
MatchedPressureString = false;

this_loop.PressureSimType = static_cast<DataPlant::PressSimType>(getEnumerationValue(PressureSimTypeNamesUC, UtilityRoutines::MakeUPPERCase(Alpha(PressSimAlphaIndex))));
this_loop.PressureSimType = static_cast<DataPlant::PressSimType>(
getEnumerationValue(PressureSimTypeNamesUC, UtilityRoutines::MakeUPPERCase(Alpha(PressSimAlphaIndex))));
switch (this_loop.PressureSimType) {
// Check all types
case DataPlant::PressSimType::NoPressure:
Expand Down
3 changes: 2 additions & 1 deletion src/EnergyPlus/PlantCondLoopOperation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,8 @@ void InitLoadDistribution(EnergyPlusData &state, bool const FirstHVACIteration)
auto &this_equip_list(this_op_scheme.EquipList(ListNum));
for (int EquipNum = 1, EquipNum_end = this_equip_list.NumComps; EquipNum <= EquipNum_end; ++EquipNum) {
auto &this_equip(this_equip_list.Comp(EquipNum));
Type = static_cast<DataPlant::PlantEquipmentType>(getEnumerationValue(PlantEquipTypeNames, UtilityRoutines::MakeUPPERCase(this_equip.TypeOf)));
Type = static_cast<DataPlant::PlantEquipmentType>(
getEnumerationValue(PlantEquipTypeNames, UtilityRoutines::MakeUPPERCase(this_equip.TypeOf)));
errFlag1 = false;
PlantUtilities::ScanPlantLoopsForObject(state,
this_equip.Name,
Expand Down
3 changes: 2 additions & 1 deletion src/EnergyPlus/RoomAirModelManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,8 @@ namespace RoomAirModelManager {
state.dataRoomAirMod->RoomAirflowNetworkZoneInfo(ZoneNum).Node(RAFNNodeNum).HasIntGainsAssigned = true;
int numGainsFound = 0;
for (gainsLoop = 1; gainsLoop <= numInputGains; ++gainsLoop) {
TypeNum = getEnumerationValue(DataHeatBalance::IntGainTypeNamesUC, UtilityRoutines::MakeUPPERCase(state.dataIPShortCut->cAlphaArgs(gainsLoop * 2)));
TypeNum = getEnumerationValue(DataHeatBalance::IntGainTypeNamesUC,
UtilityRoutines::MakeUPPERCase(state.dataIPShortCut->cAlphaArgs(gainsLoop * 2)));
if (TypeNum >= 0) {
state.dataRoomAirMod->RoomAirflowNetworkZoneInfo(ZoneNum).Node(RAFNNodeNum).IntGain(gainsLoop).Type =
static_cast<DataHeatBalance::IntGainType>(TypeNum);
Expand Down
7 changes: 4 additions & 3 deletions src/EnergyPlus/UserDefinedComponents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@ namespace UserDefinedComponents {

{
state.dataUserDefinedComponents->UserPlantComp(CompLoop).Loop(ConnectionLoop).HowLoadServed =
static_cast<DataPlant::HowMet>(getEnumerationValue(DataPlant::HowMetTypeNamesUC, UtilityRoutines::MakeUPPERCase(cAlphaArgs(aArgCount + 2))));
static_cast<DataPlant::HowMet>(
getEnumerationValue(DataPlant::HowMetTypeNamesUC, UtilityRoutines::MakeUPPERCase(cAlphaArgs(aArgCount + 2))));
if (state.dataUserDefinedComponents->UserPlantComp(CompLoop).Loop(ConnectionLoop).HowLoadServed ==
DataPlant::HowMet::ByNominalCapLowOutLimit) {
// actuator for low out limit
Expand All @@ -667,8 +668,8 @@ namespace UserDefinedComponents {

{
state.dataUserDefinedComponents->UserPlantComp(CompLoop).Loop(ConnectionLoop).FlowPriority =
static_cast<DataPlant::LoopFlowStatus>(
getEnumerationValue(DataPlant::LoopFlowStatusTypeNamesUC, UtilityRoutines::MakeUPPERCase(cAlphaArgs(aArgCount + 3))));
static_cast<DataPlant::LoopFlowStatus>(getEnumerationValue(
DataPlant::LoopFlowStatusTypeNamesUC, UtilityRoutines::MakeUPPERCase(cAlphaArgs(aArgCount + 3))));
}

// find program manager for initial setup, begin environment and sizing of this plant connection
Expand Down
Loading

0 comments on commit ed36c88

Please sign in to comment.