-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.AnnulusCylinderPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
inner_radius=0.01e-3, outer_radius=0.25e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.CylindricalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
radius=0.25e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.LinearBearingPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, width=0.01e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import pywincalc | ||
|
||
glass_1 = pywincalc.Glass(thickness=0.05, conductivity=1, emissivity=0.8) | ||
glass_2 = pywincalc.Glass(thickness=0.05, conductivity=1, emissivity=0.8) | ||
measured_pillar = pywincalc.PillarMeasurement(total_thickness=0.12, conductivity=0.3, temperature_surface_1=295, | ||
temperature_surface_4=305, glass_1=glass_1, glass_2=glass_2) | ||
|
||
gap = pywincalc.Layers.create_pillar(pillar=measured_pillar) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.PolygonalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, polygon_type=pywincalc.PolygonType.PENTAGON) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.RectangularPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, width=0.05e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.SphericalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
radius_of_contact=0.25e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.PolygonalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, polygon_type=pywincalc.PolygonType.TRIANGLE) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.TruncatedConePillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
radius_1=0.25e-3, radius_2=0.01e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |