# Create a glazing system using the NFRC U environment in order to get NFRC U results
# U and SHGC can be caculated for any given environment but in order to get results
# The NFRC U and SHGC environments are provided as already constructed environments and Glazing_System
# defaults to using the NFRC U environments

glazing_system_u_environment = pywincalc.GlazingSystem(
    optical_standard=optical_standard,
    solid_layers=[slim_white_pella_venetian_blind, generic_clear_3mm_glass],
    gap_layers=[gap_1],
    width_meters=glazing_system_width,
    height_meters=glazing_system_height,
    environment=pywincalc.nfrc_u_environments(),
    bsdf_hemisphere=bsdf_hemisphere)

glazing_system_shgc_environment = pywincalc.GlazingSystem(
    optical_standard=optical_standard,
    solid_layers=[slim_white_pella_venetian_blind, generic_clear_3mm_glass],
    gap_layers=[gap_1],
    width_meters=glazing_system_width,
    height_meters=glazing_system_height,
    environment=pywincalc.nfrc_shgc_environments(),
    bsdf_hemisphere=bsdf_hemisphere)

results_name = "Results for a double-layer system with exterior Venetian blind downloaded from the IGSDB"
print("*" * len(results_name))
print(results_name)
print("*" * len(results_name))
results_printer.print_results(glazing_system_u_environment,
                              glazing_system_shgc_environment)
예제 #2
0
print("\tU: {val}".format(val=glazing_system.u()))
print("\tSHGC: {val}".format(val=glazing_system.shgc()))
print("\tLayer temperatures (U): {val}".format(
    val=glazing_system.layer_temperatures(pywincalc.TarcogSystemType.U)))
print("\tLayer temperatures (SHGC): {val}".format(
    val=glazing_system.layer_temperatures(pywincalc.TarcogSystemType.SHGC)))
visible_results = glazing_system.optical_method_results("PHOTOPIC")
print("\tVT: {val}".format(val=visible_results.system_results.front.
                           transmittance.direct_hemispherical))

# Rather than setting all the parameters for a custom environment it may be easier to start with
# an existing environment and only change what is needed

# Start from the NFRC SHGC environment and add 500 pascals to the outside pressure
# and subtract 200 from the inside pressure
custom_env_2 = pywincalc.nfrc_shgc_environments()
custom_env_2.outside.pressure += 500
custom_env_2.inside.pressure -= 200

glazing_system = pywincalc.GlazingSystem(optical_standard=optical_standard,
                                         solid_layers=solid_layers,
                                         gap_layers=gaps,
                                         width_meters=width,
                                         height_meters=height,
                                         tilt_degrees=tilt,
                                         environment=custom_env_2)

glazing_system.enable_deflection(True)
glazing_system.set_deflection_properties(temperature_initial=273,
                                         pressure_initial=1013200)
deflection_results = glazing_system.calc_deflection_properties(