-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fix crash with new Multi-speed Fans for WSHP Zone Equipment #10249
Conversation
@@ -142,6 +142,7 @@ namespace HVACFan { | |||
bool AirPathFlag; // Yes, this fan is a part of airpath | |||
int m_numSpeeds; // input for how many speed levels for discrete fan | |||
std::vector<Real64> m_massFlowAtSpeed; | |||
std::vector<Real64> m_flowFractionAtSpeed; // array of flow fractions for speed levels |
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.
moved to public access
@@ -6791,55 +6791,72 @@ namespace UnitarySystems { | |||
if (state.dataHVACFan->fanObjs[FanIndex]->speedControl == HVACFan::FanSystem::SpeedControlMethod::Discrete) { | |||
int NumSpeeds = state.dataHVACFan->fanObjs[FanIndex]->m_numSpeeds; | |||
if (NumSpeeds > 1) { |
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.
Made the following very targeted to these coil types, only for WSHP, only if air flow is not autoszied for both WSHP parent and accompanied fan object. Also, mass flow should not need to be set here but I left those lines of code, mass flow should get overwritten later unless that is somehow protected. Notice here too that the fan's m_flowFractionAtSpeed had to be made public.
Defect file results in this branch (not sure what warnings were present in 23.1):
|
Thanks @rraustad !! If CI is happy, I'm merging this and the miktex fix and taking rc2 either later tonight or in the morning. That should do it. |
Oops, I didn't see your comment. My warning fix erased the previous CI results. |
@Myoldmopar merge in #10242 while your at it. |
FYI, the err diff (1 test warning) here is adding a
|
I ran the 23.1 defect file with results showing even more warnings than this branch:
Used Chicago Ohare Intl Ap weather for these (and above) test results. Defect file shows Denver Intl Ap_CO_USA. |
Pull request overview
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.