Class: BTAP::EQuest::DOEExteriorWall
- Inherits:
-
DOESurface
- Object
- DOECommand
- DOESurface
- BTAP::EQuest::DOEExteriorWall
- Defined in:
- lib/openstudio-standards/btap/equest.rb
Overview
class that
Instance Attribute Summary
Attributes inherited from DOESurface
Attributes inherited from DOECommand
#building, #children, #commandName, #commandType, #comments, #exempt, #keywordPairs, #non_utype_commands, #one_line_commands, #parents, #utype, #uvalue
Instance Method Summary collapse
-
#get_area ⇒ Object
This method finds the area of the exterior wall.
-
#get_children_area(scommand_name) ⇒ Object
This method returns the area of the children classes based on the given commandname.
-
#get_construction_name ⇒ Object
This method gets the construction command.
-
#get_door_area ⇒ Object
This method returns the door area.
-
#get_floor ⇒ Object
This method finds the floor parent.
-
#get_fwr ⇒ Object
This method returns the fraction of the wall dominated by the window.
-
#get_opaque_area ⇒ Object
This method returns the difference between the wall area and the window and door.
-
#get_space ⇒ Object
This method finds the space parent command.
-
#get_window_area ⇒ Object
This method returns the window area.
-
#initialize ⇒ DOEExteriorWall
constructor
A new instance of DOEExteriorWall.
-
#just_u_value? ⇒ Boolean
This method checks if the construction only has a defined U-value.
Methods inherited from DOESurface
#convert_to_openstudio, #determine_user_defined_construction, #get_3d_polygon, #get_azimuth, #get_doors, #get_origin, #get_sub_surface_origin, #get_tilt, #get_transformation_matrix, #get_windows
Methods inherited from DOECommand
#basic_output, #check_keyword?, #depth, #doe_scope, #get_children, #get_children_of_command, #get_command_from_string, #get_keyword_value, #get_name, #get_parent, #get_parents, #name, #output, #remove, #remove_keyword_pair, #set_keyword_value, #set_parent
Constructor Details
#initialize ⇒ DOEExteriorWall
Returns a new instance of DOEExteriorWall.
1229 1230 1231 1232 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1229 def initialize #call the parent class. super() end |
Instance Method Details
#get_area ⇒ Object
This method finds the area of the exterior wall
1235 1236 1237 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1235 def get_area() OpenStudio::getArea(self.get_3d_polygon()) end |
#get_children_area(scommand_name) ⇒ Object
This method returns the area of the children classes based on the given commandname. Input => A command_name as a String Output => Total area as a float
1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1279 def get_children_area(scommand_name) area = 0.0 @children.each do |child| if child.commandName == scommand_name area = child.get_area() + area end end return area end |
#get_construction_name ⇒ Object
This method gets the construction command
1250 1251 1252 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1250 def get_construction_name() get_keyword_value("CONSTRUCTION") end |
#get_door_area ⇒ Object
This method returns the door area
1260 1261 1262 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1260 def get_door_area() get_children_area("DOOR") end |
#get_floor ⇒ Object
This method finds the floor parent
1240 1241 1242 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1240 def get_floor() get_parent("FLOOR") end |
#get_fwr ⇒ Object
This method returns the fraction of the wall dominated by the window
1271 1272 1273 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1271 def get_fwr() get_window_area().to_f / get_area.to_f end |
#get_opaque_area ⇒ Object
This method returns the difference between the wall area and the window and door
1266 1267 1268 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1266 def get_opaque_area() get_area.to_f - get_window_area().to_f - get_door_area().to_f end |
#get_space ⇒ Object
This method finds the space parent command
1245 1246 1247 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1245 def get_space() get_parent("SPACE") end |
#get_window_area ⇒ Object
This method returns the window area
1255 1256 1257 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1255 def get_window_area() get_children_area("WINDOW") end |
#just_u_value? ⇒ Boolean
This method checks if the construction only has a defined U-value
1291 1292 1293 |
# File 'lib/openstudio-standards/btap/equest.rb', line 1291 def just_u_value?() @construction.check_keyword?("U-VALUE") end |