User-Defined Default Expressions - GLASS-TYPE

1 post / 0 new

Since we have a good thread going with expressions, I'll share an expression that assigns GLASS-TYPE based on WINDOW-TYPE and window orientation. In this case, south-facing windows (180 degrees, +/- 20 degrees) are assigned their own glass type. The part of the expression that determines orientation (in bold) can be used in other expressions for WINDOW keywords as you see fit.
~Bill

GLASS-TYPE =
{if(#L("WINDOW-TYPE")!=#SI("STANDARD","WINDOW","WINDOW-TYPE"))
then #SI("2Dome Acrylc White, Alum no Brk", "WINDOW", "GLASS-TYPE") else
if(#L("WIN-SPEC-METHOD")==#SI("GLASS-TYPE-INPUT","WINDOW","WIN-SPEC-METHOD"))
then if (ABS(#CDN(#P("AZIMUTH")+#P2("AZIMUTH")+
#G("BUILD-PARAMETERS","AZIMUTH"), #P("TILT")) - 180) <20)
then #SI("Type South U .19 SHGC .58", "WINDOW", "GLASS-TYPE")
else #SI("Type Other U .22 SHGC .36", "WINDOW", "GLASS-TYPE") endif
else unused endif endif}

William Bishop, PE, BEMP, BEAP, CEM, LEED AP | Pathfinder Engineers & Architects LLP
Senior Energy Engineer

[cid:image004.jpg at 01D29746.CD6E2BA0] [cid:image006.jpg at 01D29746.CD6E2BA0]

134 South Fitzhugh Street Rochester, NY 14608

T: (585) 698-1956 F: (585) 325-6005

bbishop at pathfinder-ea.com www.pathfinder-ea.com

[http://png-5.findicons.com/files/icons/977/rrze/720/globe.png]Carbon Fee and Dividend - simple, effective, and market-based.

via Equest-users's picture
Joined: 2016-07-15
Reputation: 400