-
Notifications
You must be signed in to change notification settings - Fork 400
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
Correct Input Field Description in Component Sizing Information for Multi-Speed DX Heating Coils #10612
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code change walk through.
- This change corrects the indices of numeric field names of multi-speed DX heating coils. This update was probably missed when a new field was added for the HSPF2 calculation.
@@ -8290,7 +8290,7 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) | |||
CompType = thisDXCoil.DXCoilType; | |||
// Sizing rated air flow rate | |||
if (Mode == thisDXCoil.NumOfSpeeds) { | |||
FieldNum = 12 + (Mode - 1) * 5; | |||
FieldNum = 12 + (Mode - 1) * 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected indices to Field Names of multi-speed DX Heating Coils.
@@ -8313,7 +8313,7 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) | |||
bPRINT = true; | |||
} | |||
} else { | |||
FieldNum = 12 + (Mode - 1) * 5; | |||
FieldNum = 12 + (Mode - 1) * 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -8407,7 +8407,7 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) | |||
if (Mode == thisDXCoil.NumOfSpeeds) { | |||
SizingMethod = HVAC::HeatingCapacitySizing; | |||
state.dataSize->DataFlowUsedForSizing = thisDXCoil.MSRatedAirVolFlowRate(Mode); | |||
FieldNum = 10 + (Mode - 1) * 5; | |||
FieldNum = 10 + (Mode - 1) * 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -8448,7 +8448,7 @@ void SizeDXCoil(EnergyPlusData &state, int const DXCoilNum) | |||
} else { | |||
PrintFlag = true; | |||
SizingMethod = HVAC::HeatingCapacitySizing; | |||
FieldNum = 10 + (Mode - 1) * 5; | |||
FieldNum = 10 + (Mode - 1) * 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -107,7 +107,7 @@ TEST_F(EnergyPlusFixture, DXCoils_Test1) | |||
|
|||
state->dataDXCoils->DXCoilNumericFields.allocate(state->dataDXCoils->NumDXCoils); | |||
state->dataDXCoils->DXCoilNumericFields(2).PerfMode.allocate(1); | |||
state->dataDXCoils->DXCoilNumericFields(2).PerfMode(1).FieldNames.allocate(17); | |||
state->dataDXCoils->DXCoilNumericFields(2).PerfMode(1).FieldNames.allocate(18); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified array size allocation.
Component Sizing Information, Coil:Heating:DX:MultiSpeed, ASHP HTG COIL, Design Size Speed 1 Rated Air Flow Rate [m3/s], 0.87500 | ||
Component Sizing Information, Coil:Heating:DX:MultiSpeed, ASHP HTG COIL, Design Size Speed 1 Rated Waste Heat Fraction of Power Input [W], 32731.91226 | ||
Component Sizing Information, Coil:Heating:DX:MultiSpeed, ASHP HTG COIL, Design Size Speed 2 Gross Rated Heating Capacity [W], 32731.91226 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified the text to match the correct input field description in the eio output file.
EIO file results comparison based on the defect file: Component Sizing Information Before the Fix:
Component Sizing Information After the Fix:
|
Defect file: |
Diffs are expected in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good (even is they are a bit awkward). eio and table diffs are as expected. This is good to go. Thanks @Nigusse
Pull request overview
EIO
andhtml
output files for multi-speed dx heating coils. Text diffs are expected.NOTE: ENHANCEMENTS MUST FOLLOW A SUBMISSION PROCESS INCLUDING A FEATURE PROPOSAL AND DESIGN DOCUMENT PRIOR TO SUBMITTING CODE
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.