From 423c4bb057817529bdafd86fb3b2f56a47ef7211 Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen <mkklpdrsn@gmail.com> Date: Mon, 29 Jul 2024 13:25:11 +0200 Subject: [PATCH] fix(multiphase): Add diffuse transmission function input --- pollination/honeybee_radiance/multiphase.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pollination/honeybee_radiance/multiphase.py b/pollination/honeybee_radiance/multiphase.py index 41660b5..cbf11b2 100644 --- a/pollination/honeybee_radiance/multiphase.py +++ b/pollination/honeybee_radiance/multiphase.py @@ -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 @@ -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.', @@ -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(