[Radiance-general] Artificial lighting_lumen output multiplier in a continuing loop

sokol dervishi dervishi_sokol at yahoo.com
Sun Jan 13 09:02:01 PST 2008


Thank you very much for your help Thomas, It was very helpful for me... 
   
  Best Regards, 
   
  Sokol 

Thomas Bleicher <tbleicher at arcor.de> wrote:
  
On 11 Jan 2008, at 16:35, sokol dervishi wrote:

> Hello everyone,
>
> I have a question regarding the luminaire output multiplier and I 
> would really appreciate your help.
>
> I am doing an experiment in a testbed, however, the inside natural 
> lighting is very low, because of the sorrounding neightbouring 
> walls so we decided to use an artificial uniform light (160x 160 
> cm) in the window as the light source,

I assume you had your reasons but I'd have used something like a
glow rectangle to create a non-specific light source.

> -looking at the values for different blind positions and based on a 
> controller, some decisions are made regarding the blind position 
> and the lighting inside the space.
>
> My question is how to continuously change the lumen multiplier 
> output (-m) , so without entering the -m value every time 
> manually. I am an researcher in architecture, and I do not have 
> good knowledge in programming.
>
> ies2rad -dm -t default -m 1.0 TPH710_8xTL5-28W_827_865_HFR.ies
>
> xform -rx 90 -t 4.52 -0.05 1.455 TPH710_8xTL5-28W_827_865_HFR.rad 
> > artificial light.rad


You can pack these two lines in a script an surround them with a 
"for ..." loop:

#!!WARNING: untested bash script with gaps to fill!!

for MF in 1.0 0.9 0.8 0.7 0.6 0.5 0.5 0.4 4 0.3 0.2 0.1
do
ies2rad -dm -t default -m ${MF} TPH...HFR.ies
xform -rx 90 -t 4.52 -0.05 1.455 TPH...HFR.rad > 
artificial_light.rad
rm -f lab.oct # delete old octree if it exists
oconv env.rad ... > lab.oct
rm -f /tmp/bpi.amb # delete old ambient file if it exists
echo my_data_points.dat | rtrace ... | rcalc -e ... > results_$ 
{MF}.out
done


> and here is my script
>
> "oconv env.rad lab_surfaces_corrected_moved.rad 
> lab_windows_and_doors.rad artificial light.rad> lab.oct",

Loose the spaces in the file names! The shell will see "artificial" 
and "light.rad"
as two file names to search for. Use "artificial_light.rad" instead.

> "echo '4.52 0.85 0.74 0 0 1 " +
> "3.74 1.13 0.74 0 0 1 " +
> "4.52 1.13 0.74 0 0 1 " +
> "5.30 1.13 0.74 0 0 1 " +
> "3.74 2.13 0.74 0 0 1 " +
> "4.52 2.13 0.74 0 0 1 " +
> "5.30 2.13 0.74 0 0 1 " +
> "3.74 3.13 0.74 0 0 1 " +
> "4.52 3.13 0.74 0 0 1 " +
> "5.30 3.13 0.74 0 0 1 " +

Suggestion: save your data point one per line in a file 
"my_data_points.dat"
and read from the file. "echo" will do that, too.

> "' | rtrace -w -af /tmp/bpi.amb -as 512 -ar 64 -aa 0.15 
> -ab 3 -I+ -h lab.oct | rcalc -e '$1=($1*0.265+$2*0.670+$3*0.065)*179'"
>
> ]
>
> Thank you very much,

Hope that helps and have fun,
Thomas


_______________________________________________
Radiance-general mailing list
Radiance-general at radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-general


       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20080113/d7715e07/attachment.html


More information about the Radiance-general mailing list