Skip to content

Instantly share code, notes, and snippets.

@sariths
Created July 18, 2019 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sariths/d9bd6d7e442ee5b16e7c8c29f8d44ec9 to your computer and use it in GitHub Desktop.
Save sariths/d9bd6d7e442ee5b16e7c8c29f8d44ec9 to your computer and use it in GitHub Desktop.
echo Create octree
oconv materials.rad room.rad objects/Glazing.rad > octrees/roomDC.oct
echo Steps for creating daylight coefficients for images
vwrays -vf views/south.vf -x 400 -y 400 -pj 0.7 -c 4 -ff > matrices/south.rays
vwrays -vf views/south.vf -x 400 -y 400 -d > matrices/southDimensions.txt
echo Step for creating daylight coefficients for illuminace calculations.
rfluxmtx -ffc -v -n 16 -x 400 -y 222 -ld- -c 4 -ab 2 -ad 1000 -lw 0.001 -o matrices/dc/hdr/south%%03d.hdr - skyDomes/skyglow.rad -i octrees/roomDC.oct < matrices/south.rays
echo Create sky-vectors
##Point-in-time sky vector
gendaylit 3 20 10:30EDT -m 75 -o 73.96 -a 40.78 -W 706 162 > nyc.sky
"C:\Radiance\perl\bin\perl.exe" C:\Radiance\bin\genskyvec.pl -m 1 < nyc.sky > skyVectors/NYC_Per.vec
echo RESULTS
echo Images
echo For a point-in-time calculation using a skyvector
dctimestep matrices/dc/hdr/south%%03d.hdr skyVectors/NYC_Per.vec > results/dc/south.hdr
echo Optional step for generating a falsecolor image from the simulation result.
"C:\Radiance\perl\bin\perl.exe" C:\Radiance\bin\falsecolor.pl <results/dc/south.hdr> results/dc/southF.hdr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment