-
Notifications
You must be signed in to change notification settings - Fork 82
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
1492 window ventilation #1495
1492 window ventilation #1495
Conversation
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
@Jun-Jiang-92 Thanks for the big new package! I would suggest to split up the review, so that others get customed to review, as well. @MZuschlag, are you interested in the review of this? |
…lation Corrected HTML Code in branch correct_HTML_1492-window-ventilation
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
@FWuellhorst I renewed (almost) all the code in this new package to meet the rules of namespace. At the same time, some models were reconstructed and debugged for a more stable performance. |
@Jun-Jiang-92 : I will update this branch with the latest branch in #1500, as here the CI works with regard to HTML errors and simulation checks. |
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.
@Jun-Jiang-92 The model looks really nice, thanks for your work!
Beside the inline comments, I have some general requests:
- The examples produce warnings, which should not be the case. The error messages look more like "debug" messages, which may confuse users. Is this message really necessary?
Warning: The following was detected at time: 0
The polynomial under the square root to calculate V_flow_th is less than 0, the V_flow_th will be set to 0
Failed condition: warrenParkins.intRes > 1E-15
- You have a lot of assertions, which are fine. But you can move the ones which depend on parameters to "initial equation" or "initial algorithm" section to indicate those are design assertations not triggered during simulation.
- You use some if else with
>=
, e.g. on the incidence angleAixLib.Airflow.WindowVentilation.EmpiricalExpressions.LarsenHeiselberg
. If users control the window opening based on the value and set the set value of the control to e.g. 105 in this case, you will get a lot of state events. So double check if greater equal comparisons are "robust" in the way that the variables are not going to be controlled. Else, don't use the "equal" part or even better, a small hysteresis. - Can you add "simulate and plot" scripts for your examples? This way, you ensure the results won't change in future commits or at least you get an error and can check what did change.
- Increase the diagram size in the examples to fit all model instances
AixLib/Airflow/WindowVentilation/BaseClasses/PartialEmpiricalFlowStack.mo
Show resolved
Hide resolved
AixLib/Airflow/WindowVentilation/BaseClasses/PartialEmpiricalFlowStack.mo
Show resolved
Hide resolved
AixLib/Airflow/WindowVentilation/BaseClasses/Types/SmallestAngleDifferenceTypes.mo
Show resolved
Hide resolved
AixLib/Airflow/WindowVentilation/Utilities/WindProfilePowerLaw.mo
Outdated
Show resolved
Hide resolved
AixLib/Airflow/WindowVentilation/BaseClasses/PartialOpeningArea.mo
Outdated
Show resolved
Hide resolved
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
…into 1492-window-ventilation
@FWuellhorst Thank you for your review! I already pushed the revised version. Regarding your questions:
They are not debug-msgs but indeed necessary warning-msgs. A lot of empirical models in the literature do not consider the sign of polynomial under the square root, because this polynomial is always positive with their measurment data (also used as training data), which are conducted with limited boundary conditions that did not cover all the temperauture and wind ranges. By negative polynomial, I replace it to 0, in order to keep the simulation running.
Good point. I already moved assertations depended on params to "initial equation".
I changed '>=' to '>'. The incidence angle is the difference of wind direction (from weather data) and the azimut of window / facade (parameter, fixed). The zero crossing will happen by intepolating the weather data. So, there will not be lots of event. The most other comparisons, specially comparing the "polynomial under square root" with 0, are all set with
I added them and hope they work well.
Done. If you have any questions, feel free to ge in touch with me. |
@Jun-Jiang-92 , ok, regarding the example with the warnings: Can you modify the input range so that the warnings occurs only once and document this in the example itself? |
Signed-off-by: Jun Jiang <[email protected]>
@FWuellhorst It's impossible to adjust the range to trigger warning only once for each model. So, I changed the ranges so that no warnings will be triggered. |
ah ok, because you have multiple instances of the model? Well, you could add an assertion counter and only trigger the warning once. Also, the warnings may be used in the partial model as far as I can see. I will implement an example and you can revert if you don't like the change. |
I changed all models except your own expression, as this extends
|
This reverts commit 16b75dd.
This reverts commit f170771.
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
…ion reference files. Please pull the new files before push again. Plottet Results /1492-window-ventilation/charts/
@FWuellhorst I rebuilt the assertion check into |
@Jun-Jiang-92 My last comments, as I had a closer look at the examples to implement the assertion:
|
Signed-off-by: Jun Jiang <[email protected]>
Signed-off-by: Jun Jiang <[email protected]>
@FWuellhorst I reconnected all of the inputs directly to sources. Thank you for reminding. Regarding the huge amount of events, they are because I set the examples again into 'stress test' with large ranges of input conditions (see the first explanation in #1495 (comment)). In practice use, this will not happen. I already added more DocStr into examples to explain it. If you like, I can revert the boudary condition settings back to |
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.
Not necessary, it looks good! Thank you for this big work, they seem like really cool models :) Let's wait approx 30 min to see if the CI still passes, which it looks like. Then you can merge.
Add the package "WindowVentilation" under "AixLib.Airflow". This package provides several empirical expressions based on the literature to estimate the air volume flow by single-sided window opening.
Link to issue #1492.