accim package

Subpackages

Submodules

accim.lists module

Lists to be used in the whole project.

accim.utils module

accim.utils.amend_idf_version_from_dsb(file_path: str)[source]

Amends the idf version of the Designbuilder-sourced idf file, for Designbuilder v7.X. Replaces the string ‘Version, 9.4.0.002’ with ‘Version, 9.4’.

Parameters:

idf_path (str) – the path to the idf

accim.utils.get_accim_args(idf_object: <module 'besos.IDF_class' from '/home/docs/checkouts/readthedocs.org/user_builds/accim/envs/v0.7.5/lib/python3.9/site-packages/besos/IDF_class.py'>) dict[source]

Collects all the EnergyManagementSystem:Program Program lines used to set the values for the arguments of ACCIS, and saves them in a dictionary.

Parameters:

idf_object – the besos.IDF_class instance

Returns:

a dictionary

accim.utils.get_accim_args_flattened(idf_object)[source]
accim.utils.get_idd_path_from_ep_version(EnergyPlus_version: str)[source]
accim.utils.modify_timesteps(idf_object: IDF, timesteps: int) IDF[source]

Modifies the timesteps of the idf object.

Parameters:
  • idf_object (IDF) – the IDF class from besos or eppy

  • timesteps (int) – The number of timesteps. Allowable values include 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60

accim.utils.modify_timesteps_path(idfpath: str, timesteps: int)[source]

Modifies the timesteps of the idf.

Parameters:
  • idfpath (str) – the path to the idf

  • timesteps (int) – The number of timesteps. Allowable values include 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60

class accim.utils.print_available_outputs_mod(building, version=None, name=None, frequency=None)[source]

Bases: object

accim.utils.reduce_runtime(idf_object: IDF, minimal_shadowing: bool = True, shading_calculation_update_frequency: int = 20, maximum_figures_in_shadow_overlap_calculations: int = 200, timesteps: int = 6, runperiod_begin_month: int = 1, runperiod_begin_day_of_month: int = 1, runperiod_end_month: int = 1, runperiod_end_day_of_month: int = 1) IDF[source]

Modifies the idf to reduce the simulation runtime.

Parameters:
  • idf_object

  • minimal_shadowing – True or False. If True, applies minimal shadowing setting.

  • shading_calculation_update_frequency – An integer. Sets the intervals for the shading calculation update

  • maximum_figures_in_shadow_overlap_calculations – An integer. Applies the number to the maximum figures in shadow overlap calculations.

  • timesteps – An integer. Sets the number of timesteps.

  • runperiod_begin_day_of_month – the day of the month to start the simulation

  • runperiod_begin_month – the month to start the simulation

  • runperiod_end_day_of_month – the day of the month to end the simulation

  • runperiod_end_month – the month to end the simulation

accim.utils.remove_accents(input_str: str) str[source]
accim.utils.remove_accents_in_idf(idf_path: str)[source]

Replaces all letters with accent with the same letter without accent.

accim.utils.set_occupancy_to_always(idf_object: IDF) IDF[source]

Sets the occupancy to always occupied for all zones with people object.

Parameters:

idf_object (IDF) – the IDF class from besos or eppy

accim.utils.set_occupancy_to_always_path(idfpath: str)[source]

Sets the occupancy to always occupied for all zones with people object.

Parameters:

idfpath (str) – the path to the idf

accim.utils.transform_ddmm_to_int(string_date: str) int[source]

This function converts a date string in the format “dd/mm” to the day of the year as an integer.

Parameters:

string_date – A string representing the date in format “dd/mm”

Returns:

The day of the year as an integer

Return type:

int

Module contents