Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Couldnt wrap BSDF

Hi all, Ive been playing around with the genBSDF on windows on rad files generated through HoneyBee legacy in grasshopper.

i use the msh2rad in HB and this generated two radiance files, one for materials and one for the geometry. I then merge the two files in a text editor, adding the material before the geometry. this can be done in windows through a batch command:

copy material_testrad001.rad+testrad001.rad testrad001combined.rad

I saw John's post here

I tried running genBSDF through perl and radiance included in Openstudio 2.4.

C:\openstudio-2.4.0\Perl\perl\bin\perl.exe c:\radiance\bin\ -r "-ad 10000 -ab 3" +b -t4 7 -c 160000 +forward +backward +geom meter material_testrad001.rad testrad001.rad> myBSDF_t4_test.xml

When i run genBSDF with a fairly simple geometry the output is "Recover using <filepath>". When i run the recovery file, then i'm getting this error:

rcontrib: fatal - cannot recover ASCII output Failure running rfluxmtx at C:\radiance\bin\ line 357.

Any clues what this may be?


Got rid of this error by calling the perl script directly (I have strawberry Perl installed):

SET RAYPATH=.;c:\radiance\lib
::Merging the two honeybee rad files
copy material_testrad001.rad+testrad001.rad testrad001combined.rad -r "-ad 1000 -ab 1" +b +geom meter testrad001combined.rad > myBSDF_klems.xml

Now it runs for a while and then outputting errors:

C:\ladybug\BSDF_test\testrad001\MSH2RADFiles> -r "-ad 1000 -ab 1" +b +geom meter testrad001combined.rad 1>myBSDF_klems.xml wrapBSDF: only one XML input allowed Usage: wrapBSDF [-W][-c][-a {kf|kh|kq|t3|t4}][-u unit][-g geom][-f 'x=string;y=string'] [-s spectr][-tb inp][-tf inp][-rb inp][-rf inp][-C comm] [input.xml] Could not wrap BSDF data

Any clues why this may be? I was guessing regional/formatting settings but i might be completely wrong.

I tried the "simple mirror" example from Greg from here, and that worked fine, so guess my installations and path etc should be OK.

I've attached all my working files here:

Screenshot of setup in HoneyBee:

Thanks very much - hopyfully more people get a hang of combining HoneyBee with BSDF generation.

/Mathias S√łnderskov Nielsen