Skip to content

Commit 65c6cd3

Browse files
Added exampes for dir-dif
1 parent ab538db commit 65c6cd3

3 files changed

Lines changed: 789 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import pywincalc
2+
3+
# Load solid layer measured values. Solid layer information can come from either igsdb.lbl.gov or files generate
4+
# by the Optics program. Since igsdb.lbl.gov requires registration some optics files are provided for example
5+
# purposes
6+
product_path = "products/sample_dir_dif.txt"
7+
product = pywincalc.parse_optics_file(product_path)
8+
9+
solid_layers = [product]
10+
11+
# Create a glazing system. This only shows an example of getting one result from a glazing system
12+
# created using default environmental conditions.
13+
#
14+
# For more possible results see optical_results_NFRC.py
15+
#
16+
# For more on environmental conditions see environmental_conditions_user_defined.py
17+
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers)
18+
19+
u_value = glazing_system.u()
20+
print("U-value for a single-layer system with a direct-diffuse layer: {v}".format(v=u_value))

0 commit comments

Comments
 (0)