Closed aegis1980 closed 1 year ago
Sorry for the delayed response. September is the "end of the year" here and as such a very busy time.
Also mea culpa. I believe the only thing you did wrong was follow an example that had positional arguments in the wrong order when calling pywincalc.ProductDataOpticalNBand.
I have updated the custom_glazing_single_layer.py and custom_perforated.py examples to correct the order and also pass the parameters by keyword.
E.g. the call to pywincalc.ProductDataOpticalNBand in custom_glazing_single_layer.py now looks like
glass_n_band_optical_data = pywincalc.ProductDataOpticalNBand(material_type=glass_material_type,
thickness_meters=glass_material_thickness,
wavelength_data=glass_wavelength_measurements,
coated_side=glass_coated_side,
ir_transmittance_front=glass_ir_transmittance_front,
ir_transmittance_back=glass_ir_transmittance_back,
emissivity_front=glass_emissivity_front,
emissivity_back=glass_emissivity_back,
permeability_factor=glass_permeability_factor,
flipped=flipped)
Now if I run single_clear.py and custom_glazing_single_layer.py the same data but in different forms both give the same U-value of 5.91251455879485.
Hopefully this resolves things for you. If not, or if you notice anything else, please let us know.
Thanks
Perfect. I will give it a go.
I had work around whereby I wrote optics tempfile and using parse_optics_file
. Works fine but doing it the proper wall will be much more succinct.
If I run a modified version of
examples/custom_glazing_single_layer.py
but importing measured wavelength data fromCLEAR_6.DAT
(rather than using dictionary values in example), I get an incorrect set of results (U value and SHGC at least). U = 7.0 and SHGC = 0.799.Values ought to be U = 5.818 and SHGC =0.818 (which I get running
examples/single_clear.py
withCLEAR_6.DAT
, or in WINDOW7.7)What am I doing wrong? I get same issue whatever the optics file I use.
My modified version of
examples/custom_glazing_single_layer.py
to read in spectral data from optics file: