Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Here is an expression example that sets WINDOW:HEIGHT based on the parent keyword EXTERIOR-WALL:DEG-FROM-NORTH and other global parameters. This could just as easily be written using if statements with ranges for the resulting angle.

   HEIGHT           = 
{ switch (#p("DEG-FROM-NORTH"))
       case 315 : (#pa("L6GlzgHt_North")*#pa("ResAWWGlzgMult"))
       case 225 : (#pa("L6GlzgHt_East")*#pa("ResAWWGlzgMult"))
       case 135 : (#pa("L6GlzgHt_South")*#pa("ResAWWGlzgMult"))
       case  45 : (#pa("L6GlzgHt_West")*#pa("ResAWWGlzgMult"))
       default : 0.0
  endswitch

The DEG-FROM-NORTH property is documented in the DOE-2.2 help, and is populated using the #CDN BDL function. Here is the expression for the property located in BDLdft.dat:

DEG-FROM-NORTH                                       
{#CDN(#L("AZIMUTH")+#P("AZIMUTH")+#P2("AZIMUTH")+    
      #G("BUILD-PARAMETERS","AZIMUTH"), #L("TILT"))}

For buildings that will be rotated, the resulting DEG-FROM-NORTH value may need to be adjusted to compensate for the rotation.