uwg.simparam module

Class for simulation time parameters.

class uwg.simparam.SimParam(dt, timefor, M, DAY, days)[source]

Bases: object

Calculates simulation time parameters.

Simulation time parameters are calculated based on initial date and weather data time step, and simulation timestep.

Parameters:
  • dt – Number for simulation time step in seconds.

  • timefor – Number for weather data time-step in seconds.

  • M – Number between 1 and 12 indicating the simulation start month.

  • DAY – Number between 1 and 31 indicating the simulation start day.

  • days – Number indicating number of days to simulate.

Properties:
  • dt – uwg time simulation time step

  • timeForcing – weather data timestep

  • month – start month

  • day – start day

  • days – number of days in simulation

  • timePrint – weather data timestep

  • timeDay – number of times weather senses in a day

  • timeSim – number of steps in weather data simulation

  • timeMax – total seconds in simulation days

  • nt – total number of timesteps

  • inobis – list of julian dates for the start of the months

  • julian – simulation start julian date

  • timeInitial – epw sensor data for initial time based on julian day & timesteps

  • timeFinal – epw sensor data for final time based on julian day & timesteps

  • secDay – current seconds in day

  • hourDay – current hours in day

update_date()[source]
TIMESTEP_CONFLICT_MSG = 'TIMESTEP ERROR! Timestep must be a factor of 3600.'