power_loss_phys: Physical Model Power Loss Modes of Single period

Description Usage Arguments Value Examples

View source: R/tpk-power_loss-phys.R

Description

This function decouples power loss to different loss modes, specifically current mismatch, recombination, uniform current loss, and Rs loss, from the changes in IV features for a given period, used internally for power_loss_phys_bat function.

Usage

1
power_loss_phys(init_piv, init_isc1sun, init_prs, degr_row)

Arguments

init_piv

Dataframe containing current andvolatge psuedo-IV curves of initial period, calculated from the the result of p_iv.week function applied to timeseries dataframe of initial period.

init_isc1sun

1 sun isc generated from the p_iv.week output from the initial period dataframe.

init_prs

extracted rs from the psuedo-IV curve of the initial period.

degr_row

one row of output from IVXbyX function.

Value

dataframe containing information about power loss due to various power loss modes for one given period

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
df <- read_df_raw(df_wbw,0.02,7)
df_init <- select_init_df(df, days = 21)
init <- p_iv.week(df_init, temp = 30, N_c = 60)
init_piv <- data.frame(V = init$voc_corr, I = init$isc_1sun - init$isc)
init_piv <- dplyr::arrange(init_piv, .data$V)
init_pivf <- ddiv::IVfeature(I = init_piv$I, V = init_piv$V, crtvalb = 0.06)
init_prs <- init_pivf$Rs
init_isc1sun <- init$isc_1sun
df_full <- IVXbyX(df, corr_temp = 30, 60)
power_loss_phys(init_piv,init_isc1sun, init_prs,df_full[1,])

SunsVoc documentation built on April 30, 2021, 5:07 p.m.