Class: BTAP::EQuest::ConstructionManager::Construction
- Inherits:
-
Object
- Object
- BTAP::EQuest::ConstructionManager::Construction
- Defined in:
- lib/openstudio-standards/btap/equest.rb
Instance Attribute Summary collapse
-
#layers ⇒ Object
The array which contains the material layers of the construction.
-
#name ⇒ Object
The unique name for the construction.
Instance Method Summary collapse
-
#add_air_space(thickness, resistance) ⇒ Object
Adds an airspace to the construction based on the thickness and Resistances.
-
#add_layer(thickness, conductivity, density, specific_heat) ⇒ Object
Adds a layer based on the physical properties list.
-
#add_layer_object(object) ⇒ Object
Adds a layer object to the construction.
-
#initialize ⇒ Construction
constructor
A new instance of Construction.
- #output ⇒ Object
Constructor Details
#initialize ⇒ Construction
Returns a new instance of Construction.
2454 2455 2456 2457 |
# File 'lib/openstudio-standards/btap/equest.rb', line 2454 def initialize #Set up the array for the layers. @layers = Array.new() end |
Instance Attribute Details
#layers ⇒ Object
The array which contains the material layers of the construction.
2452 2453 2454 |
# File 'lib/openstudio-standards/btap/equest.rb', line 2452 def layers @layers end |
#name ⇒ Object
The unique name for the construction.
2450 2451 2452 |
# File 'lib/openstudio-standards/btap/equest.rb', line 2450 def name @name end |
Instance Method Details
#add_air_space(thickness, resistance) ⇒ Object
Adds an airspace to the construction based on the thickness and Resistances. All units are based on the simulators input.
2476 2477 2478 2479 2480 |
# File 'lib/openstudio-standards/btap/equest.rb', line 2476 def add_air_space(thickness, resistance ) layer = Layer.new() layer.set_air_space(thickness, resistance) @layers.push(layer) end |
#add_layer(thickness, conductivity, density, specific_heat) ⇒ Object
Adds a layer based on the physical properties list. All units are based on the simulators input.
2467 2468 2469 2470 2471 2472 |
# File 'lib/openstudio-standards/btap/equest.rb', line 2467 def add_layer(thickness, conductivity, density, specific_heat) layer = Layer.new() # Make sure all the values are > 0. layer.set(thickness, conductivity, density, specific_heat) @layers.push(layer) end |
#add_layer_object(object) ⇒ Object
Adds a layer object to the construction. Must pass a Layer object as an arg.
2461 2462 2463 |
# File 'lib/openstudio-standards/btap/equest.rb', line 2461 def add_layer_object( object ) layers.push( object ) end |
#output ⇒ Object
2482 2483 2484 2485 2486 2487 2488 |
# File 'lib/openstudio-standards/btap/equest.rb', line 2482 def output() soutput = "" @layers.each do|layer| soutput = soutput + layer.output() + "\n" end soutput end |