Sha256: de397d25ab770fc84f94809fae9c7fc25ae70f3432f346627176cc523c03b32a
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
# frozen_string_literal: true class SimControls def self.apply(model, hpxml_header) sim = model.getSimulationControl sim.setRunSimulationforSizingPeriods(false) tstep = model.getTimestep tstep.setNumberOfTimestepsPerHour(60 / hpxml_header.timestep) shad = model.getShadowCalculation shad.setMaximumFiguresInShadowOverlapCalculations(200) # Use EnergyPlus default of 20 days for update frequency; it is a reasonable balance # between speed and accuracy (e.g., sun position, picking up any change in window # interior shading transmittance, etc.). shad.setShadingCalculationUpdateFrequency(20) outsurf = model.getOutsideSurfaceConvectionAlgorithm outsurf.setAlgorithm('DOE-2') insurf = model.getInsideSurfaceConvectionAlgorithm insurf.setAlgorithm('TARP') zonecap = model.getZoneCapacitanceMultiplierResearchSpecial zonecap.setTemperatureCapacityMultiplier(hpxml_header.temperature_capacitance_multiplier) zonecap.setHumidityCapacityMultiplier(15) convlim = model.getConvergenceLimits convlim.setMinimumSystemTimestep(0) run_period = model.getRunPeriod run_period.setBeginMonth(hpxml_header.sim_begin_month) run_period.setBeginDayOfMonth(hpxml_header.sim_begin_day) run_period.setEndMonth(hpxml_header.sim_end_month) run_period.setEndDayOfMonth(hpxml_header.sim_end_day) ppt = model.getPerformancePrecisionTradeoffs ppt.setZoneRadiantExchangeAlgorithm('CarrollMRT') end end
Version data entries
2 entries across 2 versions & 1 rubygems