-
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.
Merge pull request #38 from LBNL-ETA/develop
Develop
- Loading branch information
Showing
169 changed files
with
3,964 additions
and
2,488 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
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
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
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
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,6 @@ | ||
include pywincalc/standards/*.dsp | ||
include pywincalc/standards/*.loc | ||
include pywincalc/standards/*.scc | ||
include pywincalc/standards/*.ssp | ||
include pywincalc/standards/*.std | ||
include pywincalc/standards/*.wvl |
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,18 @@ | ||
import pywincalc | ||
|
||
bsdf_hemisphere = pywincalc.BSDFHemisphere.create(pywincalc.BSDFBasisType.FULL) | ||
|
||
bsdf_path = "products/2011-SA1.XML" | ||
bsdf_shade = pywincalc.parse_bsdf_xml_file(bsdf_path) | ||
|
||
front_transmittance_matrix = pywincalc.SquareMatrix(bsdf_shade.measurements.solar.transmittance_front.data) | ||
front_reflectance_matrix = pywincalc.SquareMatrix(bsdf_shade.measurements.solar.reflectance_front.data) | ||
|
||
integrator = pywincalc.BSDFIntegrator(bsdf_hemisphere.get_directions(pywincalc.BSDFDirection.Incoming)) | ||
integrator.set_matrices(front_transmittance_matrix, front_reflectance_matrix, pywincalc.Side.Front) | ||
|
||
front_hemispheric_transmittances = integrator.direct_hemispheric(pywincalc.Side.Front, pywincalc.PropertySimple.T) | ||
front_hemispheric_reflectances = integrator.direct_hemispheric(pywincalc.Side.Front, pywincalc.PropertySimple.R) | ||
|
||
print("Front hemipsheric transmittances for each incoming angle: {v}".format(v=front_hemispheric_transmittances)) | ||
print("Front hemipsheric reflectances for each incoming angle: {v}".format(v=front_hemispheric_reflectances)) |
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 | ||
import requests | ||
from igsdb_interaction import url_single_product, headers, url_single_product_datafile | ||
|
||
bsdf_hemisphere = pywincalc.BSDFHemisphere.create(pywincalc.BSDFBasisType.FULL) | ||
|
||
bsdf_igsdb_id = 14710 | ||
|
||
bsdf_igsdb_response = requests.get(url_single_product_datafile.format(id=bsdf_igsdb_id), headers=headers) | ||
|
||
# The BSDF data is currently stored as XML on igsdb.lbl.gov. As a result it needs to be | ||
# parsed using the xml string parser instead of the json parser | ||
bsdf_shade = pywincalc.parse_bsdf_xml_string(bsdf_igsdb_response.content) | ||
|
||
# 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=[bsdf_shade], bsdf_hemisphere=bsdf_hemisphere) | ||
|
||
u_value = glazing_system.u() | ||
print("U-value for a BSDF shade downloaded from igsdb.lbl.glv: {v}".format(v=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,17 @@ | ||
import pywincalc | ||
|
||
bsdf_hemisphere = pywincalc.BSDFHemisphere.create(pywincalc.BSDFBasisType.FULL) | ||
|
||
bsdf_path = "products/2011-SA1.XML" | ||
bsdf_shade = pywincalc.parse_bsdf_xml_file(bsdf_path) | ||
|
||
# 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=[bsdf_shade], bsdf_hemisphere=bsdf_hemisphere) | ||
|
||
u_value = glazing_system.u() | ||
print("U-value for a BSDF shade created from a local file: {v}".format(v=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
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
Oops, something went wrong.