[Radiance-general] BSDF with rtcontrib

Andrew McNeil amcneil at lbl.gov
Thu Jul 12 12:32:08 PDT 2012


I should have tested BEFORE sending.  Here it is again with about 12 errors
fixed...

count=-8
while read line ; do
count=$((count+1))
if [ $count -gt 0 ] ; then
daytime=`echo $line | awk -F, '{print $2,$3,$4-0.5}'`
alt=`gensky $daytime  | awk '{if(NR==3) print int($6) }'`
if [ $alt -gt 5 ]; then
dir=`echo $line | awk -F, '{print $15}'`
dif=`echo $line | awk -F, '{print $16}'`
gendaylit $daytime -W $dir $dif | genskyvec | dctimestep V.vmx T.xml D.dmx
> output_$count.txt
fi
fi
done < myweather.epw



On Thu, Jul 12, 2012 at 12:25 PM, Andrew McNeil <amcneil at lbl.gov> wrote:

> Hi Nassif,
> Data in the BSDF isn't specific to a date or time, so yes it is possible
> to do an annual simulation with the xml file from window.
>
> There are two official options and one un-official option:
>
> 1 - As Rob mentioned, you can use OpenStudio which does a lot of this for
> you.
>
> 2 - you can loop through hours of the weather data file. Following is a
> bash/awk example (add your weather data file at the end and include -a -o
> and -m in the gensky and gendaylit command):
> count=-8
> while read line ; do
> count=$((count+1))
> if [ count -gt 0 ] ; then
> daytime=`echo $line | awk -F, '{print $2,$3,$4-0.5}'`
> alt=`gensky $daytime  | awk '{if(NR==3) print $6}'
> if [ alt -gt 2 ]; then
> dir=`echo $line | awk -F, '{print $14}'`
> dif=`echo $line | awk -F, '{print $15}'`
> gendaylit $daytime -W $dir $dif | genskyvec | dctimestep V.vmx T.xml D.dmx
> >> output_$count.txt
> fi
> fi
> done < myweather.epw
>
> 3 - Unofficial - you can use our annual utility (dctimestepcpu) that takes
> a sky matrix file (list of annual sky vectors) and multiplies a whole year
> in one go.  Let me know if you want to go this route, I can send you the
> code for you to compile on your system.  This isn't a straight forward
> compile process though, it may require some tweaking on your end.
> http://simulationresearch.lbl.gov/sites/simulationresearch.lbl.gov/files/2011-ibpsa-radiance.pdf
>
>
> Andy
>
>
>
> On Thu, Jul 12, 2012 at 12:46 AM, nassif nassif <nynassif at gmail.com>wrote:
>
>> Hallo Andy,
>>
>> thank you for your reply.
>>
>> I looked through the Tutorial you advised about. I realised the generated
>> results are for one day. In our office we are using the .EPW to generate
>> the results for the whole year. (as used in the tutorial in rtcontrib). Is
>> it possible with BSDF somehow? if yes, Is there any hints or tips to insert
>> the .xml format generated by window7beta into the rtcontrib process?
>>
>> Thanks in advance!
>>
>> N.Nassif
>>
>> On Tue, Jun 12, 2012 at 6:21 PM, <
>> radiance-general-request at radiance-online.org> wrote:
>>
>>> Send Radiance-general mailing list submissions to
>>>         radiance-general at radiance-online.org
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>         http://www.radiance-online.org/mailman/listinfo/radiance-general
>>> or, via email, send a message with subject or body 'help' to
>>>         radiance-general-request at radiance-online.org
>>>
>>> You can reach the person managing the list at
>>>         radiance-general-owner at radiance-online.org
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Radiance-general digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>    1. Re: BSDF xml into Radiance (Andrew McNeil)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Tue, 12 Jun 2012 08:43:53 -0700
>>> From: Andrew McNeil <amcneil at lbl.gov>
>>> To: Radiance general discussion <radiance-general at radiance-online.org>
>>> Subject: Re: [Radiance-general] BSDF xml into Radiance
>>> Message-ID:
>>>         <CAOG+Nizc0-+xrNry_qVJh6-hoA0C-=
>>> P5EVTYuc7AiZuD9yqyVQ at mail.gmail.com>
>>> Content-Type: text/plain; charset="iso-8859-1"
>>>
>>> Hi Nasif,
>>>
>>> Information for the BSDF material is at the bottom of page 12:
>>> http://radsite.lbl.gov/radiance/refer/refman.pdf
>>>
>>> Though I've found that the BSDF material doesn't work well for
>>> daylight coefficient based annual simulations (I'm assuming dds.bash is a
>>> dynamic daylight simulation script).  Putting the solar radiance into
>>> skypatches relies on probabilistic sampling to find patches containing
>>> the
>>> sun, and if you don't have much direct transmission from the direction of
>>> the sun, you aren't likely to find the sun.  Not finding the sun causes
>>> big
>>> errors.  For now, the three-phase method is a better alternative for
>>> annual
>>> simulation of BSDF materials (you can find a tutorial at the bottom of
>>> this
>>> page: http://www.radiance-online.org:82/learning/tutorials - if you're
>>> at
>>> work, your company's firewall might block access to port 82 - the
>>> temporary
>>> location of the new radiance online).
>>>
>>> Andy
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Jun 12, 2012 at 8:18 AM, nassif nassif <nynassif at gmail.com>
>>> wrote:
>>>
>>> > Hallo,
>>> >
>>> > I manage to obtain bsdf in xml Format using Window7beta, but i couldn't
>>> > know how to insert it in radiance. Is there somewhere an example how to
>>> > embed or convert it into radiance material? I need to use it in
>>> dds.bash (
>>> > or rtcontrib).
>>> >
>>> > Thanks in advance
>>> >
>>> > --
>>> > *N.Nassif
>>> >
>>> > Lighting Designer***
>>> > *PLDA Member
>>> >
>>> > Neue Str. 55
>>> > 21073, Hamburg
>>> > Deutschland
>>> >
>>> > +49 162 6050060
>>> > nynassif at gmail.com*
>>> >
>>> > _______________________________________________
>>> > 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/20120712/15e23925/attachment-0001.html>


More information about the Radiance-general mailing list