Skip to content

Commit

Permalink
Update docs for AOI methods (#96)
Browse files Browse the repository at this point in the history
* Fix names of faoi dictionaries in irradiance models

* Start tutorial on using AOI losses

* Updated AOI loss tutorial with lots of info

* Fixes for the new tutorial after review

* Add section on using the run functions

* Typo fix

* Clean up
  • Loading branch information
anomam authored Nov 21, 2019
1 parent ffe0c02 commit 97b8945
Show file tree
Hide file tree
Showing 5 changed files with 2,270 additions and 5 deletions.
1,132 changes: 1,132 additions & 0 deletions docs/sphinx/tutorials/Account_for_AOI_losses.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/sphinx/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ In the "full mode", ``pvfactors`` calculates the equilibrium of reflections betw
Calculate_view_factors
Run_full_timeseries_simulations
Run_full_parallel_simulations
Account_for_AOI_losses


Details on the "fast mode" simulations
Expand Down
1,132 changes: 1,132 additions & 0 deletions docs/tutorials/Account_for_AOI_losses.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pvfactors/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def run_full_mode(self, fn_build_report=None):
vf_aoi_matrix = (self.vf_calculator
.build_ts_vf_aoi_matrix(pvarray, rho_mat))
pvarray.ts_vf_aoi_matrix = vf_aoi_matrix
# shape [n_surfaces, n_surfaces]
# shape [n_surfaces, n_timestamps]
irradiance_abs_mat = (
self.irradiance.get_summed_components(pvarray, absorbed=True))
# Calculate absorbed irradiance
Expand Down
8 changes: 4 additions & 4 deletions pvfactors/irradiance/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def __init__(self, rho_front=0.01, rho_back=0.03, module_transparency=0.,
"""
self.direct = dict.fromkeys(self.cats)
self.total_perez = dict.fromkeys(self.cats)
self.faoi_front = dict.fromkeys(self.cats)
self.faoi_back = dict.fromkeys(self.cats)
self.faoi_front = dict.fromkeys(self.irradiance_comp)
self.faoi_back = dict.fromkeys(self.irradiance_comp)
self.faoi_ground = None
self.module_transparency = module_transparency
self.module_spacing_ratio = module_spacing_ratio
Expand Down Expand Up @@ -453,8 +453,8 @@ def __init__(self, horizon_band_angle=DEFAULT_HORIZON_BAND_ANGLE,
self.circumsolar = dict.fromkeys(self.cats)
self.horizon = dict.fromkeys(self.cats)
self.total_perez = dict.fromkeys(self.cats)
self.faoi_front = dict.fromkeys(self.cats)
self.faoi_back = dict.fromkeys(self.cats)
self.faoi_front = dict.fromkeys(self.irradiance_comp)
self.faoi_back = dict.fromkeys(self.irradiance_comp)
self.faoi_ground = None
self.horizon_band_angle = horizon_band_angle
self.circumsolar_angle = circumsolar_angle
Expand Down

0 comments on commit 97b8945

Please sign in to comment.