Class: BTAP::EQuest::DOEZone
- Inherits:
-
DOECommand
- Object
- DOECommand
- BTAP::EQuest::DOEZone
- Defined in:
- lib/openstudio-standards/btap/equest.rb
Instance Attribute Summary collapse
-
#air_leakage ⇒ Object
stores a constant floating value of the amount of air leakage, accoriding to rule #4.3.5.9.
-
#heat_transfers ⇒ Object
this will be a vector consisting of heat transfer objects, which contains a pointer to the adjacent thermal block and a pointer to the wall in between them.
-
#lighting ⇒ Object
a lighting object which stores the lighting characteristics of each zone.
-
#space ⇒ Object
Returns the value of attribute space.
-
#space_uses ⇒ Object
a vector of spaces used when the declaration of space is “combined”.
-
#thermal_mass ⇒ Object
defines the thermal mass characteristics of the zone.
Attributes inherited from DOECommand
#building, #children, #commandName, #commandType, #comments, #exempt, #keywordPairs, #non_utype_commands, #one_line_commands, #parents, #utype, #uvalue
Instance Method Summary collapse
- #convert_to_openstudio(model, runner = nil) ⇒ Object
-
#get_area ⇒ Object
This method returns the area of the space.
-
#get_children ⇒ Object
This method returns all the children of the space.
-
#get_exterior_surfaces ⇒ Object
This method finds all the exterior surfaces, ie.
-
#initialize ⇒ DOEZone
constructor
A new instance of DOEZone.
- #output ⇒ Object
Methods inherited from DOECommand
#basic_output, #check_keyword?, #depth, #doe_scope, #get_children_of_command, #get_command_from_string, #get_keyword_value, #get_name, #get_parent, #get_parents, #name, #remove, #remove_keyword_pair, #set_keyword_value, #set_parent
Constructor Details
#initialize ⇒ DOEZone
Returns a new instance of DOEZone.
412 413 414 |
# File 'lib/openstudio-standards/btap/equest.rb', line 412 def initialize super() end |
Instance Attribute Details
#air_leakage ⇒ Object
stores a constant floating value of the amount of air leakage, accoriding to rule #4.3.5.9.
407 408 409 |
# File 'lib/openstudio-standards/btap/equest.rb', line 407 def air_leakage @air_leakage end |
#heat_transfers ⇒ Object
this will be a vector consisting of heat transfer objects, which contains a pointer to the adjacent thermal block and a pointer to the wall in between them
411 412 413 |
# File 'lib/openstudio-standards/btap/equest.rb', line 411 def heat_transfers @heat_transfers end |
#lighting ⇒ Object
a lighting object which stores the lighting characteristics of each zone
401 402 403 |
# File 'lib/openstudio-standards/btap/equest.rb', line 401 def lighting @lighting end |
#space ⇒ Object
Returns the value of attribute space.
397 398 399 |
# File 'lib/openstudio-standards/btap/equest.rb', line 397 def space @space end |
#space_uses ⇒ Object
a vector of spaces used when the declaration of space is “combined”
399 400 401 |
# File 'lib/openstudio-standards/btap/equest.rb', line 399 def space_uses @space_uses end |
#thermal_mass ⇒ Object
defines the thermal mass characteristics of the zone. could be a string object or a user defined object
404 405 406 |
# File 'lib/openstudio-standards/btap/equest.rb', line 404 def thermal_mass @thermal_mass end |
Instance Method Details
#convert_to_openstudio(model, runner = nil) ⇒ Object
457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/openstudio-standards/btap/equest.rb', line 457 def convert_to_openstudio(model,runner = nil) if self.space.get_shape() == "NO-SHAPE" BTAP::runner_register("Info", "Thermal Zone contains a NO-SHAPE space named. OS does not support no shape spaces. Thermal Zone will not be created.",runner) else os_zone = OpenStudio::Model::ThermalZone.new(model) os_zone.setName(self.name) #set space to thermal zone OpenStudio::Model::getSpaceByName(model,self.space.name).get.setThermalZone(os_zone) BTAP::runner_register("Info", "\tThermalZone: " + self.name + " created",runner) end end |
#get_area ⇒ Object
This method returns the area of the space
450 451 452 |
# File 'lib/openstudio-standards/btap/equest.rb', line 450 def get_area() @space.get_area() end |
#get_children ⇒ Object
This method returns all the children of the space
443 444 445 |
# File 'lib/openstudio-standards/btap/equest.rb', line 443 def get_children() return @space.get_children() end |
#get_exterior_surfaces ⇒ Object
This method finds all the exterior surfaces, ie. Exterior Wall and Roof Output => surfaces as an Array of commands
430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/openstudio-standards/btap/equest.rb', line 430 def get_exterior_surfaces() surfaces = Array.new() @space.get_children().each do |child| if child.commandName == "EXTERIOR-WALL" || child.commandName == "ROOF" surfaces.push(child) end end return surfaces end |
#output ⇒ Object
416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/openstudio-standards/btap/equest.rb', line 416 def output temp_string = basic_output() if (@space == nil) temp_string = temp_string + "$ No space found to match zone!\n" else temp_string = temp_string + "$Space\n" temp_string = temp_string + "$\t#{@space.utype} = #{@space.commandName}\n" end return temp_string end |