-
Notifications
You must be signed in to change notification settings - Fork 421
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
Add density option to ZoneInfiltration:DesignFlowRate and ZoneVentilation:DesignFlowRate #10929
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.
Kind of slipping this in at the last minute while everyone else is busy with ASHRAE, but the time is ripe (way past ripe) to add this option. If you don't like the field name or choices, please speak up.
@@ -908,6 +911,10 @@ void GetSimpleAirModelInputs(EnergyPlusData &state, bool &ErrorsFound) // IF err | |||
ShowContinueError(state, "Infiltration Coefficients are all zero. No Infiltration will be reported."); | |||
} | |||
} | |||
if (!lAlphaFieldBlanks(5)) { |
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.
Process new input
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.
Since #10295, and when using getObjectItem, you don't have to check if the field is blank if it has a default, even if the field is not present. I know it's a little scary to go there but the field will get stuffed with the default even after min fields (A5 is past min-fields = 12). 5ZoneEndUses - but any file will show this result. I'm not asking for a change here just pointing out a new field rule.
Real64 AirDensity = 0.0; // Density of air for converting from volume flow to mass flow (kg/m^3) | ||
switch (thisVentilation.densityBasis) { | ||
case DataHeatBalance::InfVentDensityBasis::Standard: { |
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.
Add switch to set desired density for ventilation calculation.
Real64 AirDensity = 0.0; // Density of air for converting from volume flow to mass flow (kg/m^3) | ||
switch (thisInfiltration.densityBasis) { | ||
case DataHeatBalance::InfVentDensityBasis::Standard: { |
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.
And here for infiltration.
@@ -219,6 +219,21 @@ TEST_F(EnergyPlusFixture, InfiltrationObjectLevelReport) | |||
" 0, !- Velocity Term Coefficient", | |||
" 0; !- Velocity Squared Term Coefficient", | |||
|
|||
"ZoneInfiltration:DesignFlowRate,", |
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.
And then extend some unit tests.
|
|
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.
Great set of changes here, thanks @mjwitte. This is nice.
Passes happily with latest develop, thanks @mjwitte |
Pull request overview
Description of the purpose of this PR
Add new field for Density Basis to ZoneInfiltration:DesignFlowRate and ZoneVentilation:DesignFlowRate objects.
Pull Request Author
If any defect files are updated to a more recent version, upload new versions here or on DevSupportIf IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange labelIf structural output changes, add to output rules file and add OutputChange labelIf adding/removing any LaTeX docs or figures, update that document's CMakeLists file dependenciesReviewer