simulation

content to come :)

aixlib

aixlib.py

This module contains functions to sort and partly rewrite zone attributes specific for AixLib simulation, including the export of boundary conditions and AHU operation values

teaser.logic.simulation.aixlib.compare_orientation(bldg, number_of_elements=2)

Fills the zone weightfactors according to orientation and tilt of building

compares orientation and tilt of all outer building elements and then creates lists for zone weightfactors and building orientation and tilt

Parameters:

bldg: Building()

TEASER instance of Building()

number_of_elements: int()

The number of elements calculated

teaser.logic.simulation.aixlib.create_timeline(bldg, duration_profile=86400, time_step=3600)

Creates a timeline for building boundary conditions

This function creates a list with a equidistant timeline given the duration of the profile in seconds (default one day, 86400 s) and the time_step in seconds (default one hour, 3600 s). Needed for boundary input of the building for Modelica simulation

Parameters:

duration_profile : int

duration of the profile in seconds (default one day, 86400 s)

time_step : int

time step used in the profile in seconds (default one hour, 3600 s)

Returns:

time_line : [[int]]

list of time steps as preparation for the output of boundary conditions

teaser.logic.simulation.aixlib.modelica_AHU_boundary(bldg, time_line=None, path=None)

creates .mat file for AHU boundary conditions (building)

This function creates a matfile (-v4) for building AHU boundary conditions

!AixLib sepcific!

Known limitation:

  1. Column : time step
  2. Column : desired AHU profile temperature
  3. Column : Desired minimal relative humidity
  4. Column : desired maximal relative humidity
  5. Columb : AHU status (On/Off)
Parameters:

time_line :[[int]]

list of time steps

path : str

optional path, when matfile is exported seperately

Attributes

profile_temperature ([float]) timeline of temperatures requirements for AHU simulation
profile_min_relative_humidity ([float]) timeline of relative humidity requirements for AHU simulation
profile_max_relative_humidity ([float]) timeline of relative humidity requirements for AHU simulation
profile_v_flow ([int]) timeline of desired relative v_flow of the AHU simulation (0..1)
teaser.logic.simulation.aixlib.modelica_gains_boundary(bldg, time_line=None, path=None)

creates .mat file for internal gains boundary conditions (building)

This function creates a matfile (-v4) for building internal gains boundary conditions. It collects all internal gain profiles of the zones and stores them into one file. The file is extended for each zone. Only applicable if zones are defined

!AixLib sepcific!

1. Column : time step 2,5,8,... Column : profile_persons 3,6,9,... Column : profile_machines 4,7,10,... Column : profile_lighting

Parameters:

time_line :[[int]]

list of time steps

path : str

optional path, when matfile is exported seperately

teaser.logic.simulation.aixlib.modelica_set_temp(bldg, path=None)

creates .mat file for set temperatures for each zone

This function creates a matfile (-v4) for set temperatures of each zone

!AixLib sepcific!

  1. Row: heat set temperature of all zones
  2. Row: cool set temperature of all zones
Parameters:

path : str

optional path, when matfile is exported seperately

annex60

Created May 2016

@author: TEASER Development Team

teaser.logic.simulation.annex.compare_orientation(bldg, number_of_elements=2)

Fills the zone weightfactors according to orientation and tilt of building

compares orientation and tilt of all outer building elements and then creates lists for zone weightfactors and building orientation and tilt

Parameters:

bldg: Building()

TEASER instance of Building()

number_of_elements: int()

The number of elements calculated