Problem of DaylightSim.rb in Window 7

Hi all:

I made a preliminary run using OpenStudio V 0.9 DaylightSim.rb in Window 7.

The #{outPath} in DaylightSim.rb uses forward slash which is OK for
most commands, but I find the following code shows incorrect syntax
because of using forward slash in outPath and "type" (i.e.,
catCommand) command..

system("#{catCommand} #{outPath}/materials/materials_vmx.rad
#{outPath}/scene/glazing/#{space_name}_glaz_#{aziVector}.rad >
window_temp.rad")

Thanks,

Jia

Hi all

Another question about the DaylightSim.rb. In Window 7, view matrix for
the three phase method is not generated using "--dc --z", and I add the
following code in line #590 for generating the view matrix.

#add following code in line #590:
exec_statement("type #{outPath}\\numeric\\#{space_name}.map | rcontrib
#{rtrace_args} -f klems_int.cal -bn Nkbins -I+ -fa -o
#{outPath}\\output\\dc\\#{space_name}\\maps\\%s_#{space_name}.vmx
#{binPairs} #{outPath}\\octrees\\model_dc.oct")

Besides, the following code in Line # 581:

binPairs << " -b
'kbin(#{viewVectorX.round_to_str(2)},#{viewVectorY.round_to_str(2)},0,0,0,1)'
-m glaz_#{aziVector}_#{glazingTransmissivity}"

is changed to:

binPairs << " -b
kbin(#{viewVectorX.round_to_str(2)},#{viewVectorY.round_to_str(2)},0,0,0,1)
-m glaz_#{aziVector}_#{glazingTransmissivity}"

Thanks,

Jia

Hi all:

I made a preliminary run using OpenStudio V 0.9 DaylightSim.rb in Window

7.

···

On Wed, Oct 3, 2012 at 3:53 PM, Jia Hu <hujia06@gmail.com> wrote:

The #{outPath} in DaylightSim.rb uses forward slash which is OK for
most commands, but I find the following code shows incorrect syntax
because of using forward slash in outPath and "type" (i.e.,
catCommand) command..

system("#{catCommand} #{outPath}/materials/materials_vmx.rad
#{outPath}/scene/glazing/#{space_name}_glaz_#{aziVector}.rad >
window_temp.rad")

Thanks,

Jia

Hi all:

I made a preliminary run using OpenStudio V 0.9 DaylightSim.rb in Window 7.

The #{outPath} in DaylightSim.rb uses forward slash which is OK for
most commands, but I find the following code shows incorrect syntax
because of using forward slash in outPath and "type" (i.e.,
catCommand) command..

system("#{catCommand} #{outPath}/materials/materials_vmx.rad
#{outPath}/scene/glazing/#{space_name}_glaz_#{aziVector}.rad >
window_temp.rad")

···

======================

Another question about the DaylightSim.rb. In Window 7, view matrix for
the three phase method is not generated using "--dc --z", and I add the
following code in line #590 for generating the view matrix.

#add following code in line #590:
exec_statement("type #{outPath}\\numeric\\#{space_name}.map | rcontrib
#{rtrace_args} -f klems_int.cal -bn Nkbins -I+ -fa -o
#{outPath}\\output\\dc\\#{space_name}\\maps\\%s_#{space_name}.vmx
#{binPairs} #{outPath}\\octrees\\model_dc.oct")

Besides, the following code in Line # 581:

binPairs << " -b
'kbin(#{viewVectorX.round_to_str(2)},#{viewVectorY.round_to_str(2)},0,0,0,1)'
-m glaz_#{aziVector}_#{glazingTransmissivity}"

is changed to:

binPairs << " -b
kbin(#{viewVectorX.round_to_str(2)},#{viewVectorY.round_to_str(2)},0,0,0,1)
-m glaz_#{aziVector}_#{glazingTransmissivity}"

Thanks,

Jia

Hi Jia,

Thanks for reposting this to the dedicated OpenStudio-Radiance list. Yep, looks like you found a couple more path/character issues with the three-phase pat of the DaylightSim.rb script. We'll get a cross-platform solution in there for the next iteration release. Thanks for finding these and reporting them!

- Rob

Rob Guglielmetti
National Renewable Energy Laboratory (NREL)
Commercial Buildings Research Group
15013 Denver West Parkway MS:RSF202
Golden, CO 80401
303.275.4319
robert.guglielmetti@nrel.gov

···

On 10/3/12 4:44 PM, "Jia Hu" <hujia06@gmail.com<mailto:hujia06@gmail.com>> wrote:

Hi all:

I made a preliminary run using OpenStudio V 0.9 DaylightSim.rb in Window 7.

The #{outPath} in DaylightSim.rb uses forward slash which is OK for
most commands, but I find the following code shows incorrect syntax
because of using forward slash in outPath and "type" (i.e.,
catCommand) command..

system("#{catCommand} #{outPath}/materials/materials_vmx.rad
#{outPath}/scene/glazing/#{space_name}_glaz_#{aziVector}.rad >
window_temp.rad")

======================

Another question about the DaylightSim.rb. In Window 7, view matrix for the three phase method is not generated using "--dc --z", and I add the following code in line #590 for generating the view matrix.

#add following code in line #590:
exec_statement("type #{outPath}\\numeric\\#{space_name}.map | rcontrib #{rtrace_args} -f klems_int.cal -bn Nkbins -I+ -fa -o #{outPath}\\output\\dc\\#{space_name}\\maps\\%s_#{space_name}.vmx #{binPairs} #{outPath}\\octrees\\model_dc.oct")

Besides, the following code in Line # 581:

binPairs << " -b 'kbin(#{viewVectorX.round_to_str(2)},#{viewVectorY.round_to_str(2)},0,0,0,1)' -m glaz_#{aziVector}_#{glazingTransmissivity}"

is changed to:

binPairs << " -b kbin(#{viewVectorX.round_to_str(2)},#{viewVectorY.round_to_str(2)},0,0,0,1) -m glaz_#{aziVector}_#{glazingTransmissivity}"

Thanks,

Jia