multiphase

honeybee-radiance multi_phase

Commands to run multi-phase operations in Radiance.

honeybee-radiance multi_phase [OPTIONS] COMMAND [ARGS]...

dmtx-group

Calculate aperture groups for daylight matrix purposes. This command calculates view factor from apertures to sky patches (rfluxmtx). Each aperture is represented by a sensor grid, and the view factor for the whole aperture is the average of the grid. The apertures are grouped based on the threshold. | Args: | folder: Path to a Radiance model folder. | octree: Path to octree file. | rflux_sky: Path to rflux sky file.

honeybee-radiance multi_phase dmtx-group [OPTIONS] FOLDER OCTREE RFLUX_SKY

Options

--name <name>

Name of output JSON file.

Default

dmx_aperture_groups

-s, --size <size>

Aperture grid size. A lower number will give a finer grid and more accurate results but the calculation time will increase.

Default

0.2

-t, --threshold <threshold>

A number that determines if two apertures/aperture groups can be clustered. A higher number is more accurate but will also increase the number of aperture groups.

Default

0.001

-ad, --ambient-division <ambient_division>

Number of ambient divisions (-ad) for view factor calculation in rfluxmtx. Increasing the number will give more accurate results but also increase the calculation time.

Default

1000

--output-folder <output_folder>

Output folder into which the files be written.

Default

dmtx_aperture_groups

Arguments

FOLDER

Required argument

OCTREE

Required argument

RFLUX_SKY

Required argument

flux-transfer

Calculate flux transfer matrix for a sender file per receiver.

This command calculates a flux transfer matrix for the given sender and receiver files. This can be used to calculate a flux transfer matrix for input and output apertures on a light pipe, or a flux transfer matrix from an aperture to a discretized sky (daylight matrix).

Args:
sender_file: Path to sender file. The controlling parameters in the sender file
must follow the form: #@rfluxmtx variable=value. At minimum it must specify
a hemisphere sampling type. If the command is used to calculate e.g. daylight
matrix the sender file represents an aperture or multiple apertures.
receiver_file: Path to receiver file. The controlling parameters in the receiver
file must follow the form: #@rfluxmtx variable=value. At minimum it must
specify a hemisphere sampling type. If the command is used to calculate e.g.
daylight matrix the receiver file represents the ground and sky.
octree: Path to octree file.
honeybee-radiance multi_phase flux-transfer [OPTIONS] SENDER_FILE
                                            RECEIVER_FILE OCTREE

Options

--rad-params <rad_params>

Radiance parameters.

--rad-params-locked <rad_params_locked>

Protected Radiance parameters. These values will overwrite user input rad parameters.

-o, --output <output>

Path to output file. If a relative path is provided it should be relative to project folder.

--dry-run

A flag to show the command without running it.

Default

False

Arguments

SENDER_FILE

Required argument

RECEIVER_FILE

Required argument

OCTREE

Required argument

prepare-multiphase

This command prepares the model folder for simulations with aperture groups. It will generate a set of octrees and sensor grids that are unique to each state of each aperture group.

This command will generate octrees for both default and direct studies for aperture groups, creating one octree for each light path, i.e., all other light paths are blacked.

Sensor grids will be redistributed if they are to be used in a two phase simulation. A subfolder for each light path will be created. In this folder the redistributed grids are found.

If the model folder have aperture groups, a file with states information for each grid will be written.

Args:
folder: Path to a Radiance model folder.
grid_count: Number of output sensor grids to be created. This number
is usually equivalent to the number of processes that will be used to run
the simulations in parallel.
honeybee-radiance multi_phase prepare-multiphase [OPTIONS] FOLDER GRID_COUNT

Options

-d, --grid-divisor <grid_divisor>

An optional integer to be divided by the grid-count to yield a final number of grids to generate. This is useful in workflows where the grid-count is being interpreted as a cpu-count but there are multiple processors acting on a single grid. To ignore this limitation set the value to 1. Default: 1.

-msc, --min-sensor-count <min_sensor_count>

Minimum number of sensors in each output grid. Use this number to ensure the number of sensors in output grids never gets very small. This input will override the input grid-count when specified. To ignore this limitation, set the value to 1. Default: 1.

--sun-path <sun_path>

Path for a sun-path file that will be added to octrees for direct sunlight studies. If sunpath is provided an extra octree for direct_sun will be created.

--phase <phase>

Select a multiphase study for which octrees will be created. 3-phase includes 2-phase, and 5-phase includes 3-phase and 2-phase.

Default

5

Options

2 | 3 | 5

--octree-folder <octree_folder>

Output folder into which the octree files be written.

Default

octree

--grid-folder <grid_folder>

Output folder into which the grid files be written.

Default

grid

--exclude-static, --include-static

A flag to indicate if static apertures should be excluded or included. If excluded static apertures will not be treated as its own dynamic state.

--default-states, --all-states

A flag to indicate if the command should generate octrees and grids for all aperture group states or just the default states of aperture groups.

Arguments

FOLDER

Required argument

GRID_COUNT

Required argument

three-phase

Commands to do matrix operations for three-phase.

honeybee-radiance multi_phase three-phase [OPTIONS] COMMAND [ARGS]...

combinations

Matrix multiplication for view matrix, transmission matrix, daylight matrix and sky matrix.

args:
sender_info: A JSON file that includes the information for senders. This file
is created as an output of the daylight matrix grouping command.
receiver_info: A JSON file that includes the information for receivers. This
file is written to model/receiver folder.
states_info: A JSON file that includes the state information for all the
aperture groups. This file is created under model/aperture_groups.
honeybee-radiance multi_phase three-phase combinations [OPTIONS] SENDER_INFO
                                                       RECEIVER_INFO
                                                       STATES_INFO

Options

--folder <folder>

Path to target folder. The command will create two JSON files in this folder.

Default

.

-cn, --combinations-name <combinations_name>

Output file name for 3 phase multiplication combinations.

Default

3phase_multiplication_info

-rn, --result-mapper-name <result_mapper_name>

Output file name for results mapper file.

Default

3phase_results_info

Arguments

SENDER_INFO

Required argument

RECEIVER_INFO

Required argument

STATES_INFO

Required argument

multiplication

Matrix multiplication for view matrix, transmission matrix, daylight matrix and sky matrix.

honeybee-radiance multi_phase three-phase multiplication [OPTIONS] SKY_VECTOR
                                                         VIEW_MATRIX T_MATRIX
                                                         DAYLIGHT_MATRIX
                                                         OUTPUT_MATRIX

Options

--options <options>

a string that will be passed to dctimestep for setting options such as output file format (-o), input data format(-i) etc.

--dry-run

A flag to show the command without running it.

Default

False

Arguments

SKY_VECTOR

Required argument

VIEW_MATRIX

Required argument

T_MATRIX

Required argument

DAYLIGHT_MATRIX

Required argument

OUTPUT_MATRIX

Required argument

rmtxop

Matrix multiplication for view matrix, transmission matrix, daylight matrix and sky matrix.

honeybee-radiance multi_phase three-phase rmtxop [OPTIONS] VIEW_MATRIX
                                                 T_MATRIX DAYLIGHT_MATRIX
                                                 SKY_VECTOR OUTPUT_MATRIX

Options

--output-format <output_format>

Output format for output matrix. Valid inputs are a, f, d and c for ASCII, float, double or RGBE colors. If conversion is not provided you can change the output type using rad-params options.

Default

a

Options

a | f | d | c

--illuminance, --raw

A flag to convert the result to illuminance.

Default

True

--remove-header, --keep-header

A flag to keep or remove the header from the output file.

--dry-run

A flag to show the command without running it.

Default

False

Arguments

VIEW_MATRIX

Required argument

T_MATRIX

Required argument

DAYLIGHT_MATRIX

Required argument

SKY_VECTOR

Required argument

OUTPUT_MATRIX

Required argument

view-matrix

Calculate view matrix for a receiver file.

Args:
receiver_file: Path to receiver file.
octree: Path to octree file.
sensor_grid: Path to sensor grid file.
honeybee-radiance multi_phase view-matrix [OPTIONS] RECEIVER_FILE OCTREE
                                          SENSOR_GRID

Options

--sensor-count <sensor_count>

Number of sensors in sensor grid file. Number of sensors will be parsed form the sensor file if not provided.

--rad-params <rad_params>

Radiance parameters.

--rad-params-locked <rad_params_locked>

Protected Radiance parameters. These values will overwrite user input rad parameters.

-o, --output <output>

Path to output file. If a relative path is provided it should be relative to project folder.

--dry-run

A flag to show the command without running it.

Default

False

Arguments

RECEIVER_FILE

Required argument

OCTREE

Required argument

SENSOR_GRID

Required argument