Hi Elise,
I'm beginning to work with GenOpt as well, so I'm not sure if I will be able to help but I'll try...
I believe in order to vary the window size, you should vary as well the wall size that contains it...
For example (Just to explain the concept):
If you have a wall area of 10m^2 and you want to have a window that is 2m^2 and then 4m^2 and then 6m^2... In this case, the wall area should be 10-2 = 8m^2 and consequently 6m^2 and 4m^2, right?
So in this case, you need to define a function that relates both window and wall area ratios... Let's call the wall variable %wall%.. In this case would be:
%wall% = 10 - %window%
Below you can see the code I used:
In the .bui file:
*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
* Z o n e GF_01 / A i r n o d e GF_01
*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ZONE GF_01
AIRNODE GF_01
WALL =WE_M : SURF= 1 : AREA= 12 : EXTERNAL : ORI=NORTH : FSKY=0.5
WALL =WE_M : SURF= 3 : AREA= 24 : EXTERNAL : ORI=WEST : FSKY=0.5
WALL =WE_M : SURF= 4 : AREA= %aWall% : EXTERNAL : ORI=SOUTH : FSKY=0.5
WINDOW=WIN : SURF= 5 : AREA= %aWin% : EXTERNAL : ORI=SOUTH : FSKY=0.5 : ESHADE=INPUT 1*SHADE
WALL =WI_L : SURF= 6 : AREA= 24 : ADJACENT=GF_02 : FRONT
WALL =SE_L : SURF= 7 : AREA= 32 : BOUNDARY=INPUT 1*TEMP_GROUND
WALL =SI_L : SURF=145 : AREA= 32 : ADJACENT=1F_01 : FRONT
REGIME
GAIN = PERS_ISO01 : SCALE= SCHEDULE 2*OCC_BEDR
GAIN = LIGHT01_01 : SCALE= 1
VENTILATION = VENT0.5
CAPACITANCE = 115.2 : VOLUME= 96 : TINITIAL= 20 : PHINITIAL= 50 : WCAPR= 1
In the optimization commands .txt file I wrote
Vary {
Parameter {
Name = aWin;
Ini = 1;
Values = " 7.2, 5.4 , 3 ";
Type = SET;
}
Function {
Name = aWall;
Function = "subtract( 12, %aWin% )";
}
}
I hope this helped... Let me know if it worked well for you!
All the best,
Amr Alaaeldin