[Radiance-general] Five-phase Method Tutorial: Errors in generating direct sun coefficient matrix

Alireza Hashemloo alireh at uw.edu
Sun Mar 20 13:54:42 PDT 2016


Andy,

Thank you for your response. I have migrated to Mac in order to complete
this step of the Five phase method tutorial.
I have pursued the tutorial with the exact scene descriptions and
simulation settings.
I have encountered the following warning/error as follows:

after increasing the limit on the open files in Terminal via the "ulimit -n
9999" command, I have called the following command as shown in the tutorial:

Five-phase Method Tutoiral | Example 2 - Rendering | Direct Sun Coefficient
Matrix (page 19) :

command:

$ vwrays -c 4 -pj 1 -fa -vf views/back.vf -x 500 -y 500 | \
rtrace -h- -opn -faa -ab 0 octs/model_nosuns.oct | \
rcontrib `vwrays -vf views/back.vf -x 500 -y 500 -d` -n $procs -fac -fo \
-o viewpics_ds/back_%04d.hdr -e MF:6 -f reinhart.cal -b rbin -bn Nrbins -m
solar \
-c 4 -I -ab 1 -ad 100 -dt 0 -dc 1 -lw 1e-2 octs/model_suns.oct

Warnings:

rcontrib: warning - BSDF "bsdf/fullwindow_t45" has 169.4 % front reflection
rcontrib: warning - BSDF "bsdf/fullwindow_t45" has 218.8% rear reflection


Error Description:

Although the given rcontrib warnings do not terminate the command call, it
does not appear to me that any progress is made leaving the command running
for over 24 hours.


Question:

1- What would be the reason for the tensor-tree BSDF file
(fullwindow_t45.xml) generated in the previous steps of the tutorial  to
have over 100% reflection as shown in the rcontrib warnings?
2- How can I remedy this problem in this stage of the tutorial to generate
the 5185 direct sun coefficient images?

Best Regards,
Alireza


On Wed, Mar 9, 2016 at 7:25 AM, Andy McNeil <mcneil.andrew at gmail.com> wrote:

> Alireza,
>
> This behavior is consistent with running up against limitations on open
> files. I don't know how to change the limit on Windows, but found this:
>
> http://stackoverflow.com/questions/870173/is-there-a-limit-on-number-of-open-files-in-windows
>
> Andy
>
>
> On Mar 9, 2016, at 12:53 AM, Alireza Hashemloo <alireh at uw.edu> wrote:
>
> Hi Greg and Rob,
>
> Thank you for your responses:
>
> - It does not appear that the single back quotes are the source of the
> problem as I tested the command following your recommendation without
> passing the `vwrays -vf views/view_A.vf -x 600 -y 600 -d` to "rcontrib" and
> the rtrace "invalid argument" error still appears.
>
> - I have tested the approach to split the command into two parts as you
> had suggested:
>
> part 1:   vwrays -c 4 -pj 1 -fa -vf views/view_A.vf -x 600 -y 600 | rtrace
> -h -opN -fa -ab 0 model_nosuns.oct > points.txt
> part 2:   rcontrib -x 600 -y 600 -fac -fo -o viewpics_ds/back_%04d.hdr -e
> MF:4 -f reinhart.cal -b rbin -bn Nrbins -m solar -c 4 -I -ab 1 -ad 100 -dt
> 0 -dc 1 -lw 1e-2 model_suns.oct < points.txt
>
> the part 1 appears to work properly considering that a "points.txt" file
> is generated. The part 2, however, does not appear to work: although I do
> not receive any error messages on my command line, the rcontrib call is
> completed immediately after it is run and 508 hdr images are generated in
> the given directory. However, each .hdr file is only 1 KB and the attempt
> to opening any of them is failed. It does not appear that the files have
> actually been written successfully.
>
> In addition, could you elaborate about your suggestion to  *" Replace the
> "-x 600 -y 600" with the output of "vwrays -vf views/view_A.vf -x 600 -y
> 600 -d*" " in part 2 of the command?
> Finally,  I was wondering where the definition for the "solar" modifier as
> the target light source passed to the 'rcontrib' call (-m solar) is made in
> the previous steps of the tutorial?
>
> Thank you for your help.
> Best Regards,
>
> Alireza
>
>
>
>
>
>
>
> On Mon, Mar 7, 2016 at 8:17 AM, Guglielmetti, Robert <
> Robert.Guglielmetti at nrel.gov> wrote:
>
>> On 3/6/16, 9:53 AM, "Greg Ward" <gregoryjward at gmail.com<mailto:
>> gregoryjward at gmail.com>> wrote:
>>
>> I do not think you can have multiple processes under Windows using
>> rcontrib, no matter which shell you use, so -n 1 (the default) is all you
>> get.
>>
>>
>> That is true; rcontrib on Windows will silently ignore -n settings > 1.
>> On OpenStudio, you will get a heads up about this.
>>
>> _______________________________________________
>> Radiance-general mailing list
>> Radiance-general at radiance-online.org
>> http://www.radiance-online.org/mailman/listinfo/radiance-general
>>
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20160320/d8368fa2/attachment.html>


More information about the Radiance-general mailing list