honeybee_plus.radiance.recipe.recipexphaseutil module

A collection of useful methods for multi-phase recipes.

honeybee_plus.radiance.recipe.recipexphaseutil.get_commands_direct_view_daylight_matrices(project_folder, window_group, count, inputfiles, points_file, number_of_points, sky_density, view_mtx_parameters, daylight_mtx_parameters, reuse_view_mtx=False, reuse_daylight_mtx=False)[source]

Get commnds, view matrix file and daylight matrix file for direct calculation.

honeybee_plus.radiance.recipe.recipexphaseutil.get_commands_view_daylight_matrices(project_folder, window_group, count, inputfiles, points_file, number_of_points, sky_density, view_mtx_parameters, daylight_mtx_parameters, reuse_view_mtx=False, reuse_daylight_mtx=False, phases_count=3)[source]

Get commnds, view matrix file and daylight matrix file.

honeybee_plus.radiance.recipe.recipexphaseutil.matrix_calculation_five_phase(project_name, sky_density, project_folder, window_group, skyfiles, inputfiles, points_file, total_point_count, rfluxmtx_parameters, v_matrix, d_matrix, dv_matrix, dd_matrix, window_group_count=0, reuse_view_mtx=False, reuse_daylight_mtx=False, counter=None, transpose=False)[source]

Get commands for the five phase recipe.

This function takes the result_files from 3phase calculation and adds direct calculation phases to it.

honeybee_plus.radiance.recipe.recipexphaseutil.matrix_calculation_three_phase(project_folder, window_group, v_matrix, d_matrix, sky_mtx_total, transpose=False)[source]

Three phase matrix calculation.

Parameters
  • project_folder – Full path to project folder.

  • window_group – A window_group.

  • v_matrix – Path to view matrix.

  • d_matrix – Path to daylight matrix.

  • sky_mtx_total – Path to sky matrix.

Returns

commands, result_files

honeybee_plus.radiance.recipe.recipexphaseutil.write_rad_files_multi_phase(working_dir, project_name, opq, glz, wgs)[source]

Write files to a target directory for multi-phase method.

This method should only be used for daylight coefficeint and multi-phase daylight simulations. The files will be written under

working_dir/opaque working_dir/glazing working_dir/wgroup

Parameters
  • working_dir – Path to working directory.

  • opq – A RadFile for opaque surfaces.

  • glz – A RadFile for glazing surfaces.

  • wgs – A collection of RadFiles for window-groups.

Returns

A named tuple for each RadFile as (fp, fpblk, fpglw) fp returns the file path to the list of radiance files. It will be glowed

files for window_groups.

fpblk returns the file path to the list of blacked radiance files.