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

Revision history [back]

click to hide/show revision 1
initial version

Below It's My solution:

Firstly,set WWR to value as large as possible in wizard mode,and then enter the detailed mode.

Secondly,create four global parameters,named E,S,W and N ,which represent for East,South,West and North WWR respectively.

Thirdly,default the height of all windows using follwing expression.

if (MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360) >= 0

  && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<60 ) then  

#PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")  

else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 300 

    && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<360 )

    then #PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")       

        else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 60

            && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<150 ) 

            then  #PA("E")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")           

                else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 150 

                    && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<210 )  

                    then  #PA("S")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                

                    else  #PA("W")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                

                    endif           

                endif       

        endif 

endif

If you want to change WWR,you can only change the global parameters.For example:

In your project,

East WWR is 30 %,

South WWR is 50 %,

West WWR is 20 %,

and North WWR is 40 %.

In eQUEST detailed mode,you can modify global parameter E to 0.3,S to 0.5,W to 0.2 and N to 0.4.

Below It's My solution:

Firstly,set WWR to value as large as possible in wizard mode,and then enter the detailed mode.

Secondly,create four global parameters,named E,S,W and N ,which represent for East,South,West and North WWR respectively.

Thirdly,default the height of all windows using follwing expression.

if (MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360) >= 0

  && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<60 ) then  

#PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")  

else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 300 

    && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<360 )

    then #PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")       

        else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 60

            && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<150 ) 

            then  #PA("E")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")           

                else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 150 

                    && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<210 )  

                    then  #PA("S")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                

                    else  #PA("W")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                

                    endif           

                endif       

        endif 

endif

If you want to change WWR,you can only change the global parameters.For example:

In your project,

East WWR is 30 %,

South WWR is 50 %,

West WWR is 20 %,

and North WWR is 40 %.

In eQUEST detailed mode,you can modify global parameter E to 0.3,S to 0.5,W to 0.2 and N to 0.4.

Though above expression can implement the WWR setting.A warning "expression too long" will occur.So I modify the expression to solve it,Which is shown as following:

 if (MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360) >= 0
  && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<60 ) then  
#PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")  
else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 300 
&& MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<360 )
then #PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")       
else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 60
&& MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<150 ) 
then  #PA("E")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")           
else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 150 
&& MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<210 )  
then  #PA("S")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                
else  #PA("W")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                
endif           
endif       
endif 
endif

Below It's My solution:

Firstly,set WWR to value as large as possible in wizard mode,and then enter the detailed mode.

Secondly,create four global parameters,named E,S,W and N ,which represent for East,South,West and North WWR respectively.

Thirdly,default the height of all windows using follwing expression.

if (MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360) >= 0

  && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<60 ) then  

#PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")  

else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 300 

    && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<360 )

    then #PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")       

        else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 60

            && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<150 ) 

            then  #PA("E")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")           

                else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 150 

                    && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<210 )  

                    then  #PA("S")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                

                    else  #PA("W")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                

                    endif           

                endif       

        endif 

endif

If you want to change WWR,you can only change the global parameters.For example:

In your project,

East WWR is 30 %,

South WWR is 50 %,

West WWR is 20 %,

and North WWR is 40 %.

In eQUEST detailed mode,you can modify global parameter E to 0.3,S to 0.5,W to 0.2 and N to 0.4.

Though above expression can implement the WWR setting.A setting,a warning "expression too long" will occur.So I modify the expression to solve it,Which is shown as following:

 if (MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360) >= 0
  && MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<60 ) then  
#PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")  
else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 300 
&& MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<360 )
then #PA("N")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")       
else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 60
&& MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<150 ) 
then  #PA("E")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")           
else if(MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)  >= 150 
&& MOD(#p3("AZIMUTH")+#p2("AZIMUTH")+#p("AZIMUTH"),360)<210 )  
then  #PA("S")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                
else  #PA("W")*#P3("FLOOR-HEIGHT")*#P("WIDTH")/#L("WIDTH")                
endif           
endif       
endif 
endif