Rtace simulation: why does summing individual artificial lighting and daylihting contributions exceeds the combined result?

Hi everyone,

I have been running a simulation in Radiance for a room with both an artificial lighting system and daylight, using a consistent set of calculation points. I used the following rtace command for lighting simulation

rtrace -h -I -ov -ab 3 -aa 0 l7_whole.oct  < points_whole.pts | rcalc -e '$1=179*(.265*$1+.670*$2+.065*$3)')

The .oct files are l7_whole.oct l7_daylight.oct, and l7_led.oct.

I noticed that the results of the full simulation ( including LED and daylight) are consistently about 55 units lower than the sum of the results from separate simulations (one with only LED and one with only daylight).

Are there any adjustments to the rtrace command that might alleviate this difference?

Cheers,
Hao

Hi Hao,

55 units out of how many? What is the percentage difference?

The likely issue is inadequate settings with -aa 0. While -aa 0 is a fine choice, you should alter other default values at the same time. I suggest trying:

rtrace -h -I -pY -ab 3 -aa 0 -ad 8192 -as 4096 -lw 1e-6 l7_whole.oct < points_whole.pts

Using the new rtrace -pY option, you won’t need the rcalc filter on the output, as it accomplishes the same thing. (The “-ov” option is the default, so I left it off.)

See if this helps.

Best,
-Greg

Hi Greg,

Regarding the 55 units – they represent the average illuminance difference computed with the same .pts file for the different simulations mentioned above.

Can you let me know where I can find the manpage for the new rtrace -pY option? I installed the Radiance 6.0a (2025-03-14), but I haven’t been able to locate the updated documentation for rtrace.

Thank you for your help.

Cheers,
Hao

Hi Hao,

It looks like the online manual page is still on the last official release. The new manpages are included with the distribution in the ray/doc/man/man1/ directory. You can copy these pages to a standard man page location such as /usr/local/man/man1, put the /full/path/ray/doc/man folder in your MANPATH environment variable, or use them directly with:

nroff -man ray/doc/man/man1/rtrace.1 | more -s

I hope this helps.

Best,
-Greg

1 Like

Hi @Greg_Ward,

I followed your suggestion and executed the following command:

rtrace -h -I -ab 3 -aa 0 -ad 8192 -as 4096 -lw 1e-6 l7_whole.oct < points_whole.pts  | rcalc -e '$1=179*(.265*$1+.670*$2+.065*$3)')

With the same points grid (points_whole.pts), the average illuminance of the full simulation ( including LED and daylight) is consistently about 55 units lower than the sum of the results from separate simulations (one with only LED and one with only daylight).

I also adjusted the values of -lw :
when the value increased from 1e-4 to 1, the difference increased;
When the value decreased from 1e-4to1e-20`, the difference stabilized around 55.

It seems that the discrepancy remains as a fixed bias.
here is a fixed bias.

Would you have any insights on what might be causing this issue?

Best regards,
Hao

I would still like to know what fraction of the average 55 represents. Is it 1%? Is it 10%? Is it more? Knowing the difference in values doesn’t tell me much.

The only other suggestion I can offer is to set “-dt 0” as this can affect the result in scenes with many light sources. Since you have daylight in one scene and not in the other, the scene with daylight could be under- or over-estimating the contribution from your LED lights.

Cheers,
-Greg