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

Couldnt wrap BSDF

asked 2019-03-27 03:57:21 -0600

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 https://unmethours.com/question/32101...

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\genBSDF.pl -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\genBSDF.pl line 357.

Any clues what this may be?

Edit:

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

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

Now it runs for a while and then outputting errors:

C:\ladybug\BSDF_test\testrad001\MSH2RADFiles>genBSDF.pl -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. https://www.radiance-online.org/commu...

I've attached all my working files here: https://www.dropbox.com/s/lzechie85p9...

Screenshot of setup in HoneyBee: https://www.dropbox.com/s/ejroqgoufw1...

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

/Mathias Sønderskov Nielsen

edit retag flag offensive close merge delete

Comments

A better place to post this question is Radiance forum: https://discourse.radiance-online.org/

Mostapha Roudsari's avatar Mostapha Roudsari  ( 2019-03-27 13:44:53 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2019-03-28 09:21:48 -0600

rcontrib can only recover from binary output formats, not ASCII.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

Stats

Asked: 2019-03-27 03:57:21 -0600

Seen: 336 times

Last updated: Mar 28 '19