File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
docs/examples/agrivoltaics Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1010# for an agriPV system using pvlib's infinite sheds model.
1111# For an overview of agrivPV concepts and performance, the reader
1212# is referred to :doi:`10.69766/XAEU5008`.
13-
13+ #
1414# The first steps is to define the plant location and calculate solar position
1515# and clearsky irradiance for a single day as an example.
1616#
2323# *Source: Adam R. Jensen*
2424
2525import pvlib
26+ from pvlib .tools import cosd
2627import pandas as pd
2728import matplotlib .pyplot as plt
2829
5556 max_angle = max_angle ,
5657 backtrack = True ,
5758 gcr = gcr ,
58- )
59+ )
5960
6061# %%
6162# For agrivPV systems, the local albedo is dependent on crop growth and thus
125126# ground and second we calculate the fraction of the ground that is unshaded
126127# (i.e., receives DNI).
127128
128- from pvlib .tools import cosd
129-
130129vf_ground_sky = pvlib .bifacial .utils .vf_ground_sky_2d_integ (
131130 surface_tilt = tracking_orientations ['surface_tilt' ],
132131 gcr = gcr ,
142141 gcr = gcr ,
143142)
144143
145- crop_avg_irradiance = (
146- unshaded_ground_fraction * clearsky [ 'dni' ] * cosd (solpos ['apparent_zenith' ])
147- + vf_ground_sky * clearsky ['dhi' ])
144+ crop_avg_irradiance = (unshaded_ground_fraction * clearsky [ 'dni' ]
145+ * cosd (solpos ['apparent_zenith' ])
146+ + vf_ground_sky * clearsky ['dhi' ])
148147
149148fig , ax = plt .subplots ()
150149clearsky ['ghi' ].plot (ax = ax , label = 'Horizontal irradiance above panels' )
You can’t perform that action at this time.
0 commit comments