lib/openstudio-standards/btap/geometry.rb in openstudio-standards-0.1.3 vs lib/openstudio-standards/btap/geometry.rb in openstudio-standards-0.1.4
- old
+ new
@@ -2110,10 +2110,20 @@
space1.matchSurfaces(space2)
end
end
return model
end
+
+ def self.intersect_surfaces(model)
+ model.getSpaces.each do |space1|
+ model.getSpaces.each do |space2|
+ space1.intersectSurfaces(space2)
+ end
+ end
+ return model
+ end
+
# This method will scale the model
# @param model [OpenStudio::Model::Model] the model object.
# @param x [Float] x scalar multiplier.
# @param y [Float] y scalar multiplier.
# @param z [Float] z scalar multiplier.
@@ -2710,10 +2720,10 @@
end
#This method creates a new construction based on the current, changes the rsi and assign the construction to the current surface.
#Most of the meat of this method is in the construction class. Testing is done there.
- def self.set_surfaces_construction_conductance(surfaces , conductance)
+ def self.set_surfaces_construction_conductance(surfaces,conductance)
surfaces.each do |surface|
#a bit of acrobatics to get the construction object from the ConstrustionBase object's name.
construction = OpenStudio::Model::getConstructionByName(surface.model,surface.construction.get.name.to_s).get
#create a new construction with the requested conductance value based on the current construction.
\ No newline at end of file