pvfactors.viewfactors.calculator.VFCalculator

class pvfactors.viewfactors.calculator.VFCalculator(faoi_fn_front=None, faoi_fn_back=None, n_aoi_integral_sections=300)[source]

This calculator class will be used for the calculation of view factors for OrderedPVArray, and it will rely on both VFTsMethods and AOIMethods

__init__(faoi_fn_front=None, faoi_fn_back=None, n_aoi_integral_sections=300)[source]

Initialize the view factor calculator with the calculation methods that will be used. The AOI methods will not be instantiated if an fAOI function is missing.

Parameters
  • faoi_fn_front (function or object, optional) – Function (or object containing faoi method) which takes a list (or numpy array) of incidence angles measured from the surface horizontal (with values from 0 to 180 deg) and returns the fAOI values for the front side of PV rows (default = None)

  • faoi_fn_back (function or object, optional) – Function (or object containing faoi method) which takes a list (or numpy array) of incidence angles measured from the surface horizontal (with values from 0 to 180 deg) and returns the fAOI values for the back side of PV rows (default = None)

  • n_integral_sections (int, optional) – Number of integral divisions of the 0 to 180 deg interval to use for the fAOI loss integral (default = 300)

Methods

__init__([faoi_fn_front, faoi_fn_back, ...])

Initialize the view factor calculator with the calculation methods that will be used.

build_ts_vf_aoi_matrix(pvarray, rho_mat)

Calculate the view factor aoi matrix elements from all PV row surfaces to all other surfaces, only.

build_ts_vf_matrix(pvarray)

Calculate timeseries view factor matrix for the given ordered pv array

fit(n_timestamps)

Fit the view factor calculator to the timeseries inputs.

get_vf_ts_pvrow_element(pvrow_idx, ...)

Calculate timeseries view factors of timeseries pvrow element (segment or surface) to all other elements of the PV array.