Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

You can use the API to do so, using SurfacePropertyOtherSideCoefficients.

Here's the second example from the I/O reference guide here

model = OpenStudio::Model::Model.new

sprop = OpenStudio::Model::SurfacePropertyOtherSideCoefficients.new(model)
sprop.setCombinedConvectiveRadiativeFilmCoefficient(1.23)
sprop.constantTemperature
sprop.constantTemperatureCoefficient
sprop.setConstantTemperature(0)
sprop.setConstantTemperatureCoefficient(0)
sprop.setExternalDryBulbTemperatureCoefficient(1)
sprop.setGroundTemperatureCoefficient(0)
sprop.setZoneAirTemperatureCoefficient(0)
sprop.sinusoidalVariationofConstantTemperatureCoefficient
sprop.setSinusoidalVariationofConstantTemperatureCoefficient(false)
sprop.setPeriodofSinusoidalVariation(24)
sprop.previousOtherSideTemperatureCoefficient(0)
sprop.setPreviousOtherSideTemperatureCoefficient(0)
sprop.resetMinimumOtherSideTemperatureLimit
sprop.resetMaximumOtherSideTemperatureLimit
puts sprop

Out:

OS:SurfaceProperty:OtherSideCoefficients,
  {0080fb86-3998-4681-ae5c-908610b02e6b}, !- Handle
  Surface Property Other Side Coefficients 2, !- Name
  1.23,                                   !- Combined Convective/Radiative Film Coefficient {W/m2-K}
  0,                                      !- Constant Temperature {C}
  0,                                      !- Constant Temperature Coefficient
  1,                                      !- External Dry-Bulb Temperature Coefficient
  0,                                      !- Ground Temperature Coefficient
  ,                                       !- Wind Speed Coefficient
  0,                                      !- Zone Air Temperature Coefficient
  ,                                       !- Constant Temperature Schedule Name
  No,                                     !- Sinusoidal Variation of Constant Temperature Coefficient
  24,                                     !- Period of Sinusoidal Variation {hr}
  0,                                      !- Previous Other Side Temperature Coefficient
  ,                                       !- Minimum Other Side Temperature Limit {C}
  ;                                       !- Maximum Other Side Temperature Limit {C}

If s is an OpenStudio::Model::Surface, to set the property:

s.setSurfacePropertyOtherSideCoefficients(sprop)

You can use the API to do so, using SurfacePropertyOtherSideCoefficients.

Here's the second example from the I/O reference guide here

model = OpenStudio::Model::Model.new

sprop = OpenStudio::Model::SurfacePropertyOtherSideCoefficients.new(model)
sprop.setName("OSCCoef:Zn005:Wall004")
sprop.setCombinedConvectiveRadiativeFilmCoefficient(1.23)
sprop.constantTemperature
sprop.constantTemperatureCoefficient
sprop.setConstantTemperature(0)
sprop.setConstantTemperatureCoefficient(0)
sprop.setExternalDryBulbTemperatureCoefficient(1)
sprop.setGroundTemperatureCoefficient(0)
sprop.setZoneAirTemperatureCoefficient(0)
sprop.sinusoidalVariationofConstantTemperatureCoefficient
sprop.setSinusoidalVariationofConstantTemperatureCoefficient(false)
sprop.setPeriodofSinusoidalVariation(24)
sprop.previousOtherSideTemperatureCoefficient(0)
sprop.setPreviousOtherSideTemperatureCoefficient(0)
sprop.resetMinimumOtherSideTemperatureLimit
sprop.resetMaximumOtherSideTemperatureLimit
puts sprop

Out:

OS:SurfaceProperty:OtherSideCoefficients,
  {0080fb86-3998-4681-ae5c-908610b02e6b}, !- Handle
  Surface Property Other Side Coefficients 2, OSCCoef:Zn005:Wall004, !- Name
  1.23,                                   !- Combined Convective/Radiative Film Coefficient {W/m2-K}
  0,                                      !- Constant Temperature {C}
  0,                                      !- Constant Temperature Coefficient
  1,                                      !- External Dry-Bulb Temperature Coefficient
  0,                                      !- Ground Temperature Coefficient
  ,                                       !- Wind Speed Coefficient
  0,                                      !- Zone Air Temperature Coefficient
  ,                                       !- Constant Temperature Schedule Name
  No,                                     !- Sinusoidal Variation of Constant Temperature Coefficient
  24,                                     !- Period of Sinusoidal Variation {hr}
  0,                                      !- Previous Other Side Temperature Coefficient
  ,                                       !- Minimum Other Side Temperature Limit {C}
  ;                                       !- Maximum Other Side Temperature Limit {C}

If s is an OpenStudio::Model::Surface, to set the property:

s.setSurfacePropertyOtherSideCoefficients(sprop)