The Three-Phase Method for Simulating Complex Fenestration with Radiance

Dear list,

I am trying to use the three phase method to calculate dynamic daylight
performance metrics for a dynamic shading device. Similar to the example 2
in the three phase method tutorial, I have two sets of windows
(clerestories and windows). I want to first calculate the annual
illuminance levels on a 6 by 8 grid. Then filter the data by occupancy
(normal working hours) and calculate the dynamic daylight metrics.

Since is the shading device in my model is dynamic and has to change based
on the incident light, I have two BSDF files for each window (e.g.
tinted.xml and untinted.xml).

I have created the vmx, dmx, xml, and smx files. But I am confused on how
to write the dctimestep and the rest of the calculations. Bellow is what I
have typed so far. I'd truly appreciate it if you could help me from this
point on.

Thank you,

Leyla Sanati

oconv materials/room.mat objects/room.rad objects/windows.rad
objects/clerestories.rad objects/ground.rad > model_vmx.oct

rcontrib -f klems_int.cal -bn Nkbins -fo -o results/photocells_%s.vmx -b
kbinS -m windowglow_W -b kbinS -m windowglow_C -I+ -ab 12 -ad 50000 -lw
2e-5 model_vmx.oct < data/photocells.pts

oconv materials/room.mat objects/room.rad objects/ground.rad
objects/sky_white1.rad > model_dmx.oct

genklemsamp -vd 0 -1 0 objects/windows.rad | rcontrib -c 1000 -e MF:4 -f
reinhart.cal -b rbin -bn Nrbins -m sky_glow -faf model_dmx.oct >
results/windows.dmx

genklemsamp -vd 0 -1 0 objects/clerestories.rad | rcontrib -c 1000 -e MF:4
-f reinhart.cal -b rbin -bn Nrbins -m sky_glow -faf model_dmx.oct >
results/clerestories.dmx

epw2wea USA_WI_Milwaukee_TMY3.epw Milwaukee.wea

gendaymtx -m 4 Milwaukee.wea > Milwaukee.smx

rlam '!dctimestep -n 8760 results/photocells_windowglow_W.vmx
xml/venetain80.xml results/windows.dmx Milwaukee.smx' '!dctimestep -n 8760
results/photocells_windowglow_C.vmx xml/tinted.xml results/clerestories.dmx
Milwaukee.smx' > results/venetain80_tinted.dat

rlam '!dctimestep -n 8760 results/photocells_windowglow_W.vmx
xml/venetain80.xml results/windows.dmx Milwaukee.smx' '!dctimestep -n 8760
results/photocells_windowglow_C.vmx xml/untinted.xml
results/clerestories.dmx Milwaukee.smx' > results/venetain80_untinted.dat