[Radiance-general] su2rad import numeric results

Thomas Bleicher tbleicher at googlemail.com
Fri Mar 12 14:49:27 PST 2010


Hi Cramer.

On Fri, Mar 12, 2010 at 10:11 PM, Cramer Silkworth
<silkworth at transsolar.com> wrote:
> Hi Thomas & All
>
> I'm experimenting with su2rad as a new way of doing our daylight studies
> (second time actually, hopefully i get a good workflow fully developed this
> time). I don't have it fully working yet, but I do have useful radiance
> geometry exports that i can use with our existing radiance (linux) setup.

Great. Exporting geometry is more or less what su2rad is all about. If
that works you can use any common way to run the actual calculations.

> Now I just need to get results back into SketchUp. I see that su2rad can
> import "numeric results," but what format are these supposed to be?

The data files have to be in a plain ascii format that can be produced
by rtrace and rcalc. Records are stored in the file one per line. The
lines can be of the format "x y z value" or "x y z dx dy dz value".
You can produce this output with the "-oodv" option for rtrace and a
bit of rcalc:

cat field.fld | rtrace -ab 4 ... -I -oodv scene.oct | rcalc -e
'$1=$1;$2=$2;$3=$3-1;$4=$4;$5=$5;$6=$6*-1;$7=($7*0.265+$8*0.67+$9*0.065)*179
> field.lux

The corrections for $3 and $6 is necessary because rtrace with -I
option reports origin and direction differently.

> I'm not running radiance from sketchup yet, but I ought to be able to
> reformat the results I do have to view in SketchUp (if it's plain text).

If you prefer a shorter command line you can calculate only lux (or df
or whatever) values in a separate file and then use rlam to combine
them:

rlam field.fld field.lux > field_import.lux

(that last one is untested).

> Or do I really need to get the windows-based radiance side of things up
> and running? I may be trying to put a square peg into a round hole...

su2rad doesn't offer an option to run Radiance from within SketchUp
(yet). I do my programming on a Mac so things get developed and tested
on a Unix type system first and then I work on making them work on
Windows. su2rad will also always export data in a format that can be
used with the basic Radiance tools.

Cheers,
Thomas



More information about the Radiance-general mailing list