[Equest-users] Defining window properties using if-then statements

Matutinovic, Luka LMatutinovic at halsall.com
Wed Nov 19 11:22:50 PST 2008


Ok I found my mistake.
 
It's unnecessary to use "#L("Y") " to define the value of Y.  I think I
ended up getting into a circular reference problem. 
 
The correct expressions is:
if (#PA("Glazing Percentage") == 0.4)
then 4.37
else 4.37 - 1.12*(#PA("Glazing Percentage") - 0.4)
endif

________________________________

From: Matutinovic, Luka 
Sent: Wednesday, November 19, 2008 2:16 PM
To: Matutinovic, Luka; equest-users at lists.onebuilding.org
Subject: RE: [Equest-users] Defining window properties using if-then
statements


Sorry, I fixed the typo in the expression. It should say:
if (#PA("Glazing Percentage") == 0.4)
then #L("Y") = 4.37
else #L("Y") = 4.37 - 1.12*(#PA("Glazing Percentage") - 0.4)
endif
 
And no, that didn't fix it.

________________________________

From: equest-users-bounces at lists.onebuilding.org
[mailto:equest-users-bounces at lists.onebuilding.org] On Behalf Of
Matutinovic, Luka
Sent: Wednesday, November 19, 2008 1:47 PM
To: equest-users at lists.onebuilding.org
Subject: [Equest-users] Defining window properties using if-then
statements


I'm trying to automatically adjust my window size based on a global
parameter called "Glazing Percentage".  The width of the window is fixed
and the height is defined by the following expression:
 
4.47*(#PA("Glazing Percentage")/0.4)
 
However, a large glazing percentage leads to problems since the larger
window takes up space in the plenum.  So I want to fix this by adjusting
the Y coordinate of the window.  To do this, I tried creating the
following expression:
 
if (#PA("Glazing Percentage") == 0.4)
then #L("Y") = 4.37
else #L("Y") = 4.37 - (1.12*("#PA("Glazing Percentage) - 0.4))
endif
 
When glazing percentage is set to 0.4, the above expression sets Y to
0.00.  As soon as I change it to says 0.5, eQuest crashes. 
The math is correct, but there's something wrong with my syntax.  Can
anyone please help?
 
I've attached the pd2 and inp files for reference.
 
Thanks,
Luka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20081119/367485bf/attachment-0002.htm>


More information about the Equest-users mailing list