Skip to content

Commit

Permalink
fix(multiphase): Add diffuse transmission function input
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Jul 29, 2024
1 parent b4a6c49 commit 423c4bb
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pollination/honeybee_radiance/multiphase.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def prepare_multiphase(self):
class AddApertureGroupBlinds(Function):
"""Add a state geometry to aperture groups.
This function adds state geometry to all aperture groups in the model. The
This command adds state geometry to all aperture groups in the model. The
geometry is the same as the aperture geometry but the modifier is changed.
The geometry is translated by a distance which by default is 0.001 in model
units.
The geometry is translated inward by a distance which by default is 0.001
in model units.
"""

# inputs
Expand All @@ -336,6 +336,12 @@ class AddApertureGroupBlinds(Function):
path='model.hbjson'
)

diffuse_transmission = Inputs.float(
description='Diffuse transmission of the aperture group blinds. Default '
'is 0.05 (5%).',
default=0.05
)

distance = Inputs.float(
description='Distance from the aperture parent surface to the blind '
'surface.',
Expand All @@ -351,8 +357,9 @@ class AddApertureGroupBlinds(Function):
@command
def add_aperture_group_blinds(self):
return 'honeybee-radiance multi-phase add-aperture-group-blinds ' \
'model.hbjson --distance {{self.distance}} --scale ' \
'{{self.scale}} --output-model model_blinds.hbjson'
'model.hbjson --diffuse-transmission {{self.diffuse_transmission}} ' \
'--distance {{self.distance}} --scale {{self.scale}} ' \
'--output-model model_blinds.hbjson'

# outputs
output_model = Outputs.file(
Expand Down

0 comments on commit 423c4bb

Please sign in to comment.