clear_3 = pywincalc.parse_optics_file(clear_3_path) clear_6_path = "products/CLEAR_6.DAT" clear_6 = pywincalc.parse_optics_file(clear_6_path) # Create a list of solid layers in order from outside to inside # This is a triple glazing where the outside and inside are the glass # that was just loaded and the middle is the same glass as the single clear example above solid_layers = [clear_6, clear_3, clear_6] # Solid layers must be separated by gap layers # Currently there are four pre-defined gases available: Air, Argon, Krypton, and Xenon # Vacuum gaps are not yet supported # To create a gap with 100% of a predefined gas create a Gap_Data object with the gas type # and thickness in meters gap_1 = pywincalc.Gap(pywincalc.PredefinedGasType.AIR, .0127) # .0127 is gap thickness in meters # To create a mixture of predefined gases first create the components with the gas type and portion of the mixture # The following creates a gas that is 70% Krypton and 30% Xenon and 2cm thick gap_2_component_1 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.KRYPTON, .7) gap_2_component_2 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.XENON, .3) gap_2 = pywincalc.Gap([gap_2_component_1, gap_2_component_2], .02) # .02 is gap thickness in meters # Put all gaps into a list ordered from outside to inside # Note: This is only specifying gaps between solid layers # Gases on the interior and exterior of the glazing system are more fixed and only subject to # change based on the properties in the environmental conditions gaps = [gap_1, gap_2] # 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
from igsdb_interaction import url_single_product, headers, url_single_product_datafile import results_printer # Path to the optical standard file. All other files referenced by the standard file must be in the same directory # Note: While all optical standards packaged with WINDOW should work with optical calculations care should be # taken to use NFRC standards if NFRC thermal results are desired. This is because for thermal calculations currently # only ISO 15099 is supported. While it is possible to use EN optical standards and create thermal results # those results will not be based on EN 673 optical_standard_path = "standards/W5_NFRC_2003.std" optical_standard = pywincalc.load_standard(optical_standard_path) glazing_system_width = 1.0 # width of the glazing system in meters glazing_system_height = 1.0 # height of the glazing system in meters # Define the gap between the shade and the glazing gap_1 = pywincalc.Gap(pywincalc.PredefinedGasType.AIR, .0127) # .0127 is gap thickness in meters # Since these products use at least one layer that requires a BSDF model a BSDF hemisphere must be # used. In this example a standard quarter basis is used. Other predefined basis include Small, Half, and Full # Custom BSDF basis is not yet supported in Python. Please contact us if your work requires calculations with # a custom BSDF basis. bsdf_hemisphere = pywincalc.BSDFHemisphere.create( pywincalc.BSDFBasisType.QUARTER) # Download some product data from the IGSDB. This example gets a generic single clear 3mm glazing (NFRC 102), # a venetian blind manufactured by Pella (CGDB ID 3000) and a perforated screen manufacturerd by Solar Comfort # (CGDB ID 18000) generic_clear_3mm_glass_igsdb_id = 363 slim_white_pella_venetian_blind_igsdb_id = 14684 generic_clear_3mm_glass_igsdb_response = requests.get(
import pywincalc import results_printer # Currently there are four pre-defined gases available: Air, Argon, Krypton, and Xenon # Vacuum gaps are not yet supported # To create a gap with 100% of a predefined gas create a Gap_Data object with the gas type # and thickness in meters gap_1 = pywincalc.Gap(pywincalc.PredefinedGasType.AIR, .0127) # .0127 is gap thickness in meters # Gaps may also contain a mixture of gases. # To create a mixture of predefined gases first create the # components with the gas type and portion of the mixture. # The following creates a gas that is 70% Krypton and 30% Xenon and 2cm thick gap_2_component_1 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.KRYPTON, .7) gap_2_component_2 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.XENON, .3) gap_2 = pywincalc.Gap([gap_2_component_1, gap_2_component_2], .02) # .02 is gap thickness in meters # Custom gases can be created from properties. The following creates sulfur hexafluoride as distributed with WINDOW 7 sulfur_hexafluoride_conductivity_a = 0.0130000002682209 sulfur_hexafluoride_conductivity_b = 0 sulfur_hexafluoride_conductivity_c = 0 sulfur_hexafluoride_conductivity_coefficients = pywincalc.GasCoefficients(sulfur_hexafluoride_conductivity_a, sulfur_hexafluoride_conductivity_b, sulfur_hexafluoride_conductivity_c) sulfur_hexafluoride_viscosity_a = 7.21399999292771E-7 sulfur_hexafluoride_viscosity_b = 4.92800005247318E-8 sulfur_hexafluoride_viscosity_c = 0 sulfur_hexafluoride_viscosity_coefficients = pywincalc.GasCoefficients(sulfur_hexafluoride_viscosity_a, sulfur_hexafluoride_viscosity_b, sulfur_hexafluoride_viscosity_c) sulfur_hexafluoride_Cp_a = 418.600006103516 sulfur_hexafluoride_Cp_b = 0