First time here? Check out the Help page!
1 | initial version |
This is easy, since you can only have one Site:GroundTemperature:BuildingSurface object.
Say you have your monthly temperatures in an array data
, you just need to do:
# create ground temperature object
groundtemps = OpenStudio::Model::SiteGroundTemperatureBuildingSurface.new(model)
# add monthly temperatures
groundtemps.setAllMonthlyTemperature(data)
Here are the rest of the class methods, if you need to assign temperatures to specific months or get already assigned temperatures. If you want the measure to take user input of monthly temperatures, you can either push those argument values to an array and use the 'setAll..' method, or set them individually by month.
2 | No.2 Revision |
This is easy, since you can only have one Site:GroundTemperature:BuildingSurface object.
Say you have your monthly temperatures in an array data
, you just need to do:
# create ground temperature object
groundtemps = OpenStudio::Model::SiteGroundTemperatureBuildingSurface.new(model)
# add monthly temperatures
groundtemps.setAllMonthlyTemperature(data)
groundtemps.setAllMonthlyTemperatures(data)
Here are the rest of the class methods, if you need to assign temperatures to specific months or get already assigned temperatures. If you want the measure to take user input of monthly temperatures, you can either push those argument values to an array and use the 'setAll..' method, or set them individually by month.