<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=496002119-19112008><FONT face=Univers color=#0000ff size=2>Ok I
found my mistake.</FONT></SPAN></DIV>
<DIV><SPAN class=496002119-19112008><FONT face=Univers color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=496002119-19112008><FONT face=Univers color=#0000ff size=2>It's
unnecessary to use "#L("Y") " to define the value of Y. I think I ended up
getting into a circular reference problem. </FONT></SPAN></DIV>
<DIV><SPAN class=496002119-19112008><FONT face=Univers color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=496002119-19112008><FONT face=Univers color=#0000ff size=2>The
correct expressions is:</FONT></SPAN></DIV>
<DIV><SPAN class=496002119-19112008><FONT face=Univers color=#0000ff size=2>if
(#PA("Glazing Percentage") == 0.4)<BR>then 4.37<BR>else 4.37 -
1.12*(#PA("Glazing Percentage") - 0.4)<BR>endif</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Matutinovic, Luka <BR><B>Sent:</B>
Wednesday, November 19, 2008 2:16 PM<BR><B>To:</B> Matutinovic, Luka;
equest-users@lists.onebuilding.org<BR><B>Subject:</B> RE: [Equest-users]
Defining window properties using if-then statements<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff
size=2>Sorry, I fixed the typo in the expression. It should
say:</FONT></SPAN></DIV>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff size=2>if
(#PA("Glazing Percentage") == 0.4)<BR>then #L("Y") = 4.37<BR>else #L("Y") = 4.37
- 1.12*(#PA("Glazing Percentage") - 0.4)<BR>endif</FONT></SPAN></DIV>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff size=2>And
no, that didn't fix it.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> equest-users-bounces@lists.onebuilding.org
[mailto:equest-users-bounces@lists.onebuilding.org] <B>On Behalf Of
</B>Matutinovic, Luka<BR><B>Sent:</B> Wednesday, November 19, 2008 1:47
PM<BR><B>To:</B> equest-users@lists.onebuilding.org<BR><B>Subject:</B>
[Equest-users] Defining window properties using if-then
statements<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>4.47*(#PA("Glazing
Percentage")/0.4)</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>if (#PA("Glazing
Percentage") == 0.4)<BR>then #L("Y") = 4.37<BR>else #L("Y") = 4.37 -
(1.12*("#PA("Glazing Percentage) - 0.4))<BR>endif</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>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. </FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>The math is
correct, but there's something wrong with my syntax. Can anyone please
help?</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>I've attached the
pd2 and inp files for reference.</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2>Luka</FONT></SPAN></DIV></BODY></HTML>