Skip to content

Commit

Permalink
add assert statement to screen model
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasverleyen committed Jun 19, 2024
1 parent 6ec6057 commit 1f45fb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IDEAS/Buildings/Components/Shading/Screen.mo
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ initial equation
assert(shaCorr + epsSw_shading <= 1, "In " + getInstanceName() +
": The sum of the screen transmittance 'shaCorr' and absorptance 'epsSw_shading' is larger than one. This is non-physical.");
equation
assert(Ctrl >=0, "The control input to the screen is negative, which is non-physical and leads to unrealistic results. Please check the screen input.");
HShaDirTil = HDirTil*(1 - Ctrl);
HShaSkyDifTil = HSkyDifTil*(1 - Ctrl) + HSkyDifTil*Ctrl*shaCorr + HDirTil*Ctrl*shaCorr;
HShaGroDifTil = HGroDifTil*(1 - Ctrl) + HGroDifTil*Ctrl*shaCorr;
Expand Down

0 comments on commit 1f45fb3

Please sign in to comment.