-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'resources/hpxml-measures/' changes from dffe8f6ef..fb589646a
fb589646a Merge branch 'master' into build-res-hpxml 4f2c56a34 Few updates to resource files. a8b37258f Merge pull request #323 from NREL/check_for_errors ddfb6b677 Skip schema validation for invalid files. a953c5ff7 Adds error checking into HPXML class. Adds a couple more invalid tests. Some misc code cleanup. d06474307 Merge pull request #322 from NREL/partition_surfaces e2570124a Additional delete methods. ef4bb5b28 Automatically remove partition surfaces (defined as interior_adjacent_to == exterior_adjacent_to) during creation of the HPXML object, unless disabled. Also adds delete() methods for all surfaces, which includes automatic deleting of subsurfaces. git-subtree-dir: resources/hpxml-measures git-subtree-split: fb589646a36cab76e54d9009cf405d073f5054a8
- Loading branch information
1 parent
60c64d8
commit 7b316f1
Showing
190 changed files
with
8,975 additions
and
7,522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
class Simulation | ||
def self.apply(model, runner, timesteps_per_hr = 1, min_system_timestep_mins = nil, begin_month = 1, begin_day_of_month = 1, end_month = 12, end_day_of_month = 31, calendar_year = 2007) | ||
sim = model.getSimulationControl | ||
sim.setRunSimulationforSizingPeriods(false) | ||
|
||
tstep = model.getTimestep | ||
tstep.setNumberOfTimestepsPerHour(timesteps_per_hr) # Timesteps/hour | ||
|
||
shad = model.getShadowCalculation | ||
shad.setShadingCalculationUpdateFrequency(20) | ||
shad.setMaximumFiguresInShadowOverlapCalculations(200) | ||
|
||
outsurf = model.getOutsideSurfaceConvectionAlgorithm | ||
outsurf.setAlgorithm('DOE-2') | ||
|
||
insurf = model.getInsideSurfaceConvectionAlgorithm | ||
insurf.setAlgorithm('TARP') | ||
|
||
zonecap = model.getZoneCapacitanceMultiplierResearchSpecial | ||
zonecap.setHumidityCapacityMultiplier(15) | ||
|
||
if not min_system_timestep_mins.nil? | ||
convlim = model.getConvergenceLimits | ||
convlim.setMinimumSystemTimestep(min_system_timestep_mins) # Minutes | ||
end | ||
|
||
run_period = model.getRunPeriod | ||
run_period.setBeginMonth(begin_month) | ||
run_period.setBeginDayOfMonth(begin_day_of_month) | ||
run_period.setEndMonth(end_month) | ||
run_period.setEndDayOfMonth(end_day_of_month) | ||
|
||
year_description = model.getYearDescription | ||
year_description.setCalendarYear(calendar_year) | ||
|
||
return true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.