ladybug-tools / honeybee-dynamo

:honeybee: :blue_book: Honeybee library and plugin for Dynamo
GNU General Public License v3.0
17 stars 8 forks source link

Radiance Opaque material #28

Closed andrewkukla closed 7 years ago

andrewkukla commented 7 years ago

Hi,

I was wondering whether is is possible to define the properties of the opaque Honeybee surfaces? Does anyone know what are the default values for floors, walls and roofs? Honeybee surface seems to need a Radiance material. Is using glass with transmittance=0.0 for opaque surfaces allowed? image

sariths commented 7 years ago

Hi @andrewkukla , assuming that you are are working on a Daylighting simulation, you should use the plastic material to define an opaque surface. Glass with zero transmittance will absorb all the energy that is incident on it.

andrewkukla commented 7 years ago

There isn't such node in Honeybee. Does any one know whether this and other day lighting functionality is coming in the next version?

mostaphaRoudsari commented 7 years ago

Hi @andrewkukla,

Sorry for the late reply. We don't have a node currently that exposes the opaque materials but you can create your own by using the API. Copy these lines in a Python node with two inputs. The first input is the name and the second is the reflectivity of the surface. Also change %USERNAME% in line 3 to your username.

We will add a node for this in the next release.

import sys
# replace %USERNAME% with your username
sys.path.append(r'C:\Users\%USERNAME%\AppData\Roaming\Dynamo\Dynamo Revit\1.2\packages\Honeybee\extra')
sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib')

from honeybeex.radiance.material.plastic import PlasticMaterial
_name, _ref = IN[0], IN[1]
if _name and _ref is not None:
    OUT = PlasticMaterial.bySingleReflectValue(_name, _ref)

image

andrewkukla commented 7 years ago

Hi @mostaphaRoudsari, I did as instructed and it worked. Thank You!